diff options
| author | Nippy <nippy@rp1.hu> | 2026-05-08 19:50:49 +0200 |
|---|---|---|
| committer | Nippy <nippy@rp1.hu> | 2026-05-08 19:50:49 +0200 |
| commit | 3462bcc46ecf74f576ea4397f16492c16bd75b10 (patch) | |
| tree | c5ab7aef4498647e057bda8d49c11e5f9dda74c9 /raveos-hyprland-theme/theme-data/dms/Widgets/DankBackdrop.qml | |
| parent | 56616f693b4f263cbf0d47da43b67424efa6022d (diff) | |
| download | RaveOS-PKGBUILD-3462bcc46ecf74f576ea4397f16492c16bd75b10.tar.gz RaveOS-PKGBUILD-3462bcc46ecf74f576ea4397f16492c16bd75b10.zip | |
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/dms/Widgets/DankBackdrop.qml')
| -rw-r--r-- | raveos-hyprland-theme/theme-data/dms/Widgets/DankBackdrop.qml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/raveos-hyprland-theme/theme-data/dms/Widgets/DankBackdrop.qml b/raveos-hyprland-theme/theme-data/dms/Widgets/DankBackdrop.qml new file mode 100644 index 0000000..3db7c0c --- /dev/null +++ b/raveos-hyprland-theme/theme-data/dms/Widgets/DankBackdrop.qml @@ -0,0 +1,64 @@ +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 + } + } +} |