mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-29 22:47:47 -04:00
fix: Workspace padding settings
This commit is contained in:
1 parent
dfd5524516
commit
eda3ee8d3b
2 files changed
+11
-1
No files matched your search
@@ -277,7 +277,11 @@ Item {
|
||||
|
||||
anchors.centerIn: parent
|
||||
implicitSize: 40
|
||||
source: appData.appId !== "__SEPARATOR__" ? Quickshell.iconPath(DesktopEntries.byId(Paths.moddedAppId(appData.appId)).icon, true) : ""
|
||||
source: {
|
||||
if (appData.appId === "__SEPARATOR__") return ""
|
||||
var desktopEntry = DesktopEntries.byId(Paths.moddedAppId(appData.appId))
|
||||
return desktopEntry && desktopEntry.icon ? Quickshell.iconPath(desktopEntry.icon, true) : ""
|
||||
}
|
||||
mipmap: true
|
||||
smooth: true
|
||||
asynchronous: true
|
||||
|
||||
@@ -252,8 +252,14 @@ Rectangle {
|
||||
anchors.centerIn: parent
|
||||
text: {
|
||||
if (CompositorService.isHyprland) {
|
||||
if (modelData && modelData.id === -1) {
|
||||
return index + 1
|
||||
}
|
||||
return modelData && modelData.id ? modelData.id : ""
|
||||
}
|
||||
if (modelData === -1) {
|
||||
return index + 1
|
||||
}
|
||||
return modelData - 1
|
||||
}
|
||||
color: isActive ? Qt.rgba(
|
||||
|
||||
Reference in new issue
Block a user