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

Implement compact toggles for clock & media topbar widgets

This commit is contained in:
purian23
2025-08-05 20:33:01 -04:00
parent 1bd4eeb736
commit 7695078cb8
5 changed files with 95 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ Rectangle {
font.pixelSize: Theme.fontSizeSmall
color: Theme.outlineButton
anchors.verticalCenter: parent.verticalCenter
visible: !compactMode
visible: !Prefs.clockCompactMode
}
StyledText {
@@ -51,7 +51,7 @@ Rectangle {
font.pixelSize: Theme.fontSizeMedium - 1
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
visible: !compactMode
visible: !Prefs.clockCompactMode
}
}

View File

@@ -33,7 +33,7 @@ Rectangle {
PropertyChanges {
target: root
opacity: 1
width: compactMode ? compactContentWidth : normalContentWidth
width: Prefs.mediaCompactMode ? compactContentWidth : normalContentWidth
}
},
@@ -100,8 +100,8 @@ Rectangle {
id: mediaText
anchors.verticalCenter: parent.verticalCenter
width: compactMode ? 60 : 140
visible: !compactMode
width: Prefs.mediaCompactMode ? 60 : 140
visible: !Prefs.mediaCompactMode
text: {
if (!activePlayer || !activePlayer.trackTitle)
return "";