1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 14:05:38 -05:00

Implement transparency background slider

This commit is contained in:
purian23
2025-07-12 04:07:25 -04:00
parent 959c8544bd
commit 2375b6e7bd
3 changed files with 77 additions and 3 deletions

View File

@@ -19,6 +19,16 @@ PanelWindow {
screen: modelData
property string screenName: modelData.name
// Transparency property for the top bar background
property real backgroundTransparency: Prefs.topBarTransparency
Connections {
target: Prefs
function onTopBarTransparencyChanged() {
topBar.backgroundTransparency = Prefs.topBarTransparency
}
}
// Properties exposed to shell
property bool hasActiveMedia: false
property var activePlayer: null
@@ -94,7 +104,7 @@ PanelWindow {
Rectangle {
anchors.fill: parent
radius: Theme.cornerRadiusXLarge
color: Qt.rgba(Theme.surfaceContainer.r, Theme.surfaceContainer.g, Theme.surfaceContainer.b, 0.75)
color: Qt.rgba(Theme.surfaceContainer.r, Theme.surfaceContainer.g, Theme.surfaceContainer.b, topBar.backgroundTransparency)
layer.enabled: true
layer.effect: DropShadow {