mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
dankbar: allow disabling title scrolling in the music display (#882)
This commit is contained in:
@@ -168,6 +168,7 @@ Singleton {
|
|||||||
property bool dwlShowAllTags: false
|
property bool dwlShowAllTags: false
|
||||||
property var workspaceNameIcons: ({})
|
property var workspaceNameIcons: ({})
|
||||||
property bool waveProgressEnabled: true
|
property bool waveProgressEnabled: true
|
||||||
|
property bool scrollTitleEnabled: true
|
||||||
property bool clockCompactMode: false
|
property bool clockCompactMode: false
|
||||||
property bool focusedWindowCompactMode: false
|
property bool focusedWindowCompactMode: false
|
||||||
property bool runningAppsCompactMode: true
|
property bool runningAppsCompactMode: true
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ var SPEC = {
|
|||||||
dwlShowAllTags: { def: false },
|
dwlShowAllTags: { def: false },
|
||||||
workspaceNameIcons: { def: {} },
|
workspaceNameIcons: { def: {} },
|
||||||
waveProgressEnabled: { def: true },
|
waveProgressEnabled: { def: true },
|
||||||
|
scrollTitleEnabled: {def: true},
|
||||||
clockCompactMode: { def: false },
|
clockCompactMode: { def: false },
|
||||||
focusedWindowCompactMode: { def: false },
|
focusedWindowCompactMode: { def: false },
|
||||||
runningAppsCompactMode: { def: true },
|
runningAppsCompactMode: { def: true },
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ BasePill {
|
|||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: mediaText
|
id: mediaText
|
||||||
property bool needsScrolling: implicitWidth > textContainer.width
|
property bool needsScrolling: implicitWidth > textContainer.width && SettingsData.scrollTitleEnabled
|
||||||
property real scrollOffset: 0
|
property real scrollOffset: 0
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|||||||
@@ -203,6 +203,15 @@ Item {
|
|||||||
return SettingsData.set("waveProgressEnabled", checked);
|
return SettingsData.set("waveProgressEnabled", checked);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DankToggle {
|
||||||
|
width: parent.width
|
||||||
|
text: I18n.tr("Scroll song title")
|
||||||
|
description: I18n.tr("Scroll title if it doesn't fit in widget")
|
||||||
|
checked: SettingsData.scrollTitleEnabled
|
||||||
|
onToggled: checked => {
|
||||||
|
return SettingsData.set("scrollTitleEnabled", checked);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user