mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
feat(dock): add setting to use distro logo as launcher icon
This commit is contained in:
@@ -1141,6 +1141,8 @@
|
||||
"appearance-launcher-position-end": "End",
|
||||
"appearance-launcher-position-label": "Launcher position",
|
||||
"appearance-launcher-position-start": "Start",
|
||||
"appearance-launcher-use-distro-logo-description": "Use your distribution logo as the dock launcher icon.",
|
||||
"appearance-launcher-use-distro-logo-label": "Use distro logo instead of icon",
|
||||
"appearance-pinned-static-description": "Always push pinned app icons to the left in static order.",
|
||||
"appearance-pinned-static-label": "Static pinned apps",
|
||||
"appearance-position-description": "Choose where the dock appears on screen.",
|
||||
|
||||
@@ -361,6 +361,7 @@
|
||||
"colorizeIcons": false,
|
||||
"showLauncherIcon": false,
|
||||
"launcherPosition": "end",
|
||||
"launcherUseDistroLogo": false,
|
||||
"launcherIconColor": "none",
|
||||
"pinnedStatic": false,
|
||||
"inactiveIndicators": false,
|
||||
|
||||
@@ -555,6 +555,7 @@ Singleton {
|
||||
property bool colorizeIcons: false
|
||||
property bool showLauncherIcon: false
|
||||
property string launcherPosition: "end" // "start", "end"
|
||||
property bool launcherUseDistroLogo: false
|
||||
property string launcherIconColor: "none"
|
||||
property bool pinnedStatic: false
|
||||
property bool inactiveIndicators: false
|
||||
|
||||
@@ -350,6 +350,16 @@ ColumnLayout {
|
||||
onSelected: key => Settings.data.dock.launcherPosition = key
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
visible: Settings.data.dock.showLauncherIcon
|
||||
label: I18n.tr("panels.dock.appearance-launcher-use-distro-logo-label")
|
||||
description: I18n.tr("panels.dock.appearance-launcher-use-distro-logo-description")
|
||||
checked: Settings.data.dock.launcherUseDistroLogo
|
||||
defaultValue: Settings.getDefaultValue("dock.launcherUseDistroLogo")
|
||||
onToggled: checked => Settings.data.dock.launcherUseDistroLogo = checked
|
||||
}
|
||||
|
||||
NColorChoice {
|
||||
Layout.fillWidth: true
|
||||
visible: Settings.data.dock.showLauncherIcon
|
||||
|
||||
Reference in New Issue
Block a user