mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-28 14:05:21 -04:00
feat: add option to hide package source badges in launcher (#2676)
This commit is contained in:
@@ -465,6 +465,7 @@ Singleton {
|
|||||||
onAppDrawerSectionViewModesChanged: saveSettings()
|
onAppDrawerSectionViewModesChanged: saveSettings()
|
||||||
property bool niriOverviewOverlayEnabled: true
|
property bool niriOverviewOverlayEnabled: true
|
||||||
property string dankLauncherV2Size: "compact"
|
property string dankLauncherV2Size: "compact"
|
||||||
|
property bool dankLauncherV2ShowSourceBadges: true
|
||||||
property bool dankLauncherV2BorderEnabled: false
|
property bool dankLauncherV2BorderEnabled: false
|
||||||
property int dankLauncherV2BorderThickness: 2
|
property int dankLauncherV2BorderThickness: 2
|
||||||
property string dankLauncherV2BorderColor: "primary"
|
property string dankLauncherV2BorderColor: "primary"
|
||||||
|
|||||||
@@ -227,6 +227,7 @@ var SPEC = {
|
|||||||
appDrawerSectionViewModes: { def: {} },
|
appDrawerSectionViewModes: { def: {} },
|
||||||
niriOverviewOverlayEnabled: { def: true },
|
niriOverviewOverlayEnabled: { def: true },
|
||||||
dankLauncherV2Size: { def: "compact" },
|
dankLauncherV2Size: { def: "compact" },
|
||||||
|
dankLauncherV2ShowSourceBadges: { def: true },
|
||||||
dankLauncherV2BorderEnabled: { def: false },
|
dankLauncherV2BorderEnabled: { def: false },
|
||||||
dankLauncherV2BorderThickness: { def: 2 },
|
dankLauncherV2BorderThickness: { def: 2 },
|
||||||
dankLauncherV2BorderColor: { def: "primary" },
|
dankLauncherV2BorderColor: { def: "primary" },
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell.Widgets
|
import Quickshell.Widgets
|
||||||
|
import qs.Common
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
@@ -16,7 +17,7 @@ Item {
|
|||||||
|
|
||||||
readonly property string assetPath: sourceAsset[source] || ""
|
readonly property string assetPath: sourceAsset[source] || ""
|
||||||
|
|
||||||
visible: assetPath.length > 0
|
visible: SettingsData.dankLauncherV2ShowSourceBadges && assetPath.length > 0
|
||||||
implicitWidth: glyphSize
|
implicitWidth: glyphSize
|
||||||
implicitHeight: glyphSize
|
implicitHeight: glyphSize
|
||||||
|
|
||||||
|
|||||||
@@ -671,6 +671,15 @@ Item {
|
|||||||
onToggled: checked => SettingsData.set("dankLauncherV2UnloadOnClose", checked)
|
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 {
|
SettingsToggleRow {
|
||||||
settingKey: "dankLauncherV2BorderEnabled"
|
settingKey: "dankLauncherV2BorderEnabled"
|
||||||
tags: ["launcher", "border", "outline"]
|
tags: ["launcher", "border", "outline"]
|
||||||
|
|||||||
@@ -2679,6 +2679,34 @@
|
|||||||
],
|
],
|
||||||
"description": "Show All, Apps, Files, and Plugins chips beside the Spotlight Bar input."
|
"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",
|
"section": "launcherLogoSizeOffset",
|
||||||
"label": "Size Offset",
|
"label": "Size Offset",
|
||||||
|
|||||||
Reference in New Issue
Block a user