1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-21 10:35:26 -04:00

feat: add option to hide package source badges in launcher (#2676)

This commit is contained in:
Huỳnh Thiện Lộc
2026-06-21 14:51:44 +07:00
committed by GitHub
parent 59fd6db83e
commit 8610b915ec
5 changed files with 41 additions and 1 deletions
+1
View File
@@ -465,6 +465,7 @@ Singleton {
onAppDrawerSectionViewModesChanged: saveSettings()
property bool niriOverviewOverlayEnabled: true
property string dankLauncherV2Size: "compact"
property bool dankLauncherV2ShowSourceBadges: true
property bool dankLauncherV2BorderEnabled: false
property int dankLauncherV2BorderThickness: 2
property string dankLauncherV2BorderColor: "primary"
@@ -227,6 +227,7 @@ var SPEC = {
appDrawerSectionViewModes: { def: {} },
niriOverviewOverlayEnabled: { def: true },
dankLauncherV2Size: { def: "compact" },
dankLauncherV2ShowSourceBadges: { def: true },
dankLauncherV2BorderEnabled: { def: false },
dankLauncherV2BorderThickness: { def: 2 },
dankLauncherV2BorderColor: { def: "primary" },
@@ -1,5 +1,6 @@
import QtQuick
import Quickshell.Widgets
import qs.Common
Item {
id: root
@@ -16,7 +17,7 @@ Item {
readonly property string assetPath: sourceAsset[source] || ""
visible: assetPath.length > 0
visible: SettingsData.dankLauncherV2ShowSourceBadges && assetPath.length > 0
implicitWidth: glyphSize
implicitHeight: glyphSize
@@ -671,6 +671,15 @@ Item {
onToggled: checked => SettingsData.set("dankLauncherV2UnloadOnClose", checked)
}
SettingsToggleRow {
settingKey: "dankLauncherV2ShowSourceBadges"
tags: ["launcher", "appearance", "badge", "source", "flatpak"]
text: I18n.tr("Show Package Source Badges")
description: I18n.tr("Show Flatpak, Snap, AppImage, or Nix badge icons on launcher items.")
checked: SettingsData.dankLauncherV2ShowSourceBadges
onToggled: checked => SettingsData.set("dankLauncherV2ShowSourceBadges", checked)
}
SettingsToggleRow {
settingKey: "dankLauncherV2BorderEnabled"
tags: ["launcher", "border", "outline"]
@@ -2679,6 +2679,34 @@
],
"description": "Show All, Apps, Files, and Plugins chips beside the Spotlight Bar input."
},
{
"section": "dankLauncherV2ShowSourceBadges",
"label": "Show Package Source Badges",
"tabIndex": 9,
"category": "Launcher",
"keywords": [
"app drawer",
"app menu",
"appearance",
"appimage",
"applications",
"badge",
"badges",
"drawer",
"flatpak",
"icons",
"items",
"launcher",
"menu",
"package",
"show",
"snap",
"source",
"start",
"start menu"
],
"description": "Show Flatpak, Snap, AppImage, or Nix badge icons on launcher items."
},
{
"section": "launcherLogoSizeOffset",
"label": "Size Offset",