mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
65 lines
1.7 KiB
QML
65 lines
1.7 KiB
QML
import QtQuick
|
|
import QtQuick.Effects
|
|
import qs.Common
|
|
|
|
Item {
|
|
id: root
|
|
|
|
anchors.fill: parent
|
|
|
|
property string screenName: ""
|
|
property bool isColorWallpaper: {
|
|
var currentWallpaper = SessionData.getMonitorWallpaper(screenName)
|
|
return currentWallpaper && currentWallpaper.startsWith("#")
|
|
}
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: isColorWallpaper ? SessionData.getMonitorWallpaper(screenName) : Theme.background
|
|
}
|
|
|
|
Rectangle {
|
|
x: parent.width * 0.7
|
|
y: -parent.height * 0.3
|
|
width: parent.width * 0.8
|
|
height: parent.height * 1.5
|
|
color: Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.15)
|
|
rotation: 35
|
|
visible: !isColorWallpaper
|
|
}
|
|
|
|
Rectangle {
|
|
x: parent.width * 0.85
|
|
y: -parent.height * 0.2
|
|
width: parent.width * 0.4
|
|
height: parent.height * 1.2
|
|
color: Qt.rgba(Theme.secondary.r, Theme.secondary.g, Theme.secondary.b, 0.12)
|
|
rotation: 35
|
|
visible: !isColorWallpaper
|
|
}
|
|
|
|
Image {
|
|
anchors.left: parent.left
|
|
anchors.bottom: parent.bottom
|
|
anchors.leftMargin: Theme.spacingXL * 2
|
|
anchors.bottomMargin: Theme.spacingXL * 2
|
|
width: 200
|
|
height: width * (569.94629 / 506.50931)
|
|
fillMode: Image.PreserveAspectFit
|
|
smooth: true
|
|
mipmap: true
|
|
asynchronous: true
|
|
source: "file://" + Theme.shellDir + "/assets/danklogonormal.svg"
|
|
opacity: 0.25
|
|
visible: !isColorWallpaper
|
|
layer.enabled: true
|
|
layer.smooth: true
|
|
layer.mipmap: true
|
|
layer.effect: MultiEffect {
|
|
saturation: 0
|
|
colorization: 1
|
|
colorizationColor: Theme.primary
|
|
}
|
|
}
|
|
}
|