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:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user