mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-06 05:28:29 -04:00
fix(launcher): honor source badge setting (#3002)
This commit is contained in:
@@ -7,6 +7,7 @@ Item {
|
||||
|
||||
property string source: ""
|
||||
property int glyphSize: 14
|
||||
property bool badgeVisible: true
|
||||
|
||||
readonly property var sourceAsset: ({
|
||||
"flatpak": "../../assets/package-sources/flatpak.svg",
|
||||
@@ -17,7 +18,7 @@ Item {
|
||||
|
||||
readonly property string assetPath: sourceAsset[source] || ""
|
||||
|
||||
visible: SettingsData.dankLauncherV2ShowSourceBadges && assetPath.length > 0
|
||||
visible: badgeVisible && SettingsData.dankLauncherV2ShowSourceBadges && assetPath.length > 0
|
||||
implicitWidth: glyphSize
|
||||
implicitHeight: glyphSize
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ Rectangle {
|
||||
anchors.margins: Theme.spacingXS
|
||||
source: root.item?.type === "app" ? (root.item.source || "") : ""
|
||||
glyphSize: 16
|
||||
visible: !root.isSelected && !!source
|
||||
badgeVisible: !root.isSelected
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user