SessionMenu: add option to hide keybinds

This commit is contained in:
Lysec
2026-02-14 03:15:09 +01:00
parent 5ab600598d
commit 461545c05d
10 changed files with 30 additions and 9 deletions
+1 -1
View File
@@ -1049,7 +1049,7 @@
"keybinds-left": "Nach links",
"keybinds-modifier-description": "Tastenkürzel müssen eine Modifikatortaste (Strg oder Alt) enthalten.",
"keybinds-modifier-title": "Modifikator erforderlich",
"keybinds-remove": "Entfernen",
"keybinds-remove": "Entfernen / Löschen",
"keybinds-right": "Nach rechts",
"keybinds-title": "Navigations-Tastenkombinationen",
"keybinds-up": "Nach oben",
+4 -3
View File
@@ -1255,7 +1255,6 @@
"pin-instructions": "Please enter the PIN code displayed on your device.",
"title": "Connections",
"wifi-description": "Manage wireless networks (requires NetworkManager)."
},
"notifications": {
"duration-critical-urgency-description": "How long critical priority notifications stay visible.",
@@ -1449,7 +1448,9 @@
"large-buttons-style-label": "Large buttons style",
"position-description": "Choose where the session menu panel appears when opened.",
"show-header-description": "Display the title and close button at the top of the session menu.",
"show-header-label": "Show header"
"show-header-label": "Show header",
"show-keybinds-description": "Display keybind hints on session options.",
"show-keybinds-label": "Show keybinds"
},
"system-monitor": {
"critical-color-label": "Critical color",
@@ -1967,4 +1968,4 @@
"poor": "Poor"
}
}
}
}
+1 -1
View File
@@ -1049,7 +1049,7 @@
"keybinds-left": "Mover a la izquierda",
"keybinds-modifier-description": "Los atajos deben incluir una tecla modificadora (Ctrl o Alt).",
"keybinds-modifier-title": "Modificador requerido",
"keybinds-remove": "Eliminar",
"keybinds-remove": "Eliminar / Quitar",
"keybinds-right": "Mover a la derecha",
"keybinds-title": "Atajos de teclado de navegación",
"keybinds-up": "Mover arriba",
+1 -1
View File
@@ -1049,7 +1049,7 @@
"keybinds-left": "Przesuń w lewo",
"keybinds-modifier-description": "Skróty muszą zawierać klawisz modyfikujący (Ctrl lub Alt).",
"keybinds-modifier-title": "Wymagany modyfikator",
"keybinds-remove": "Usuń",
"keybinds-remove": "Usuń / Skasuj",
"keybinds-right": "Przesuń w prawo",
"keybinds-title": "Skróty klawiszowe nawigacji",
"keybinds-up": "Przenieś w górę",
+1 -1
View File
@@ -1049,7 +1049,7 @@
"keybinds-left": "Sola taşı",
"keybinds-modifier-description": "Kısayollar bir değiştirici tuş (Ctrl veya Alt) içermelidir.",
"keybinds-modifier-title": "Değiştirici gerekli",
"keybinds-remove": "Sil",
"keybinds-remove": "Kaldır / Sil",
"keybinds-right": "Sağa taşı",
"keybinds-title": "Gezinme tuş atamaları",
"keybinds-up": "Yukarı taşı",
+1
View File
@@ -348,6 +348,7 @@
"countdownDuration": 10000,
"position": "center",
"showHeader": true,
"showKeybinds": true,
"largeButtonsStyle": true,
"largeButtonsLayout": "single-row",
"powerOptions": [
+9
View File
@@ -1497,6 +1497,15 @@
"subTab": 0,
"subTabLabel": "common.general"
},
{
"labelKey": "panels.session-menu.show-keybinds-label",
"descriptionKey": "panels.session-menu.show-keybinds-description",
"widget": "NToggle",
"tab": 12,
"tabLabel": "session-menu.title",
"subTab": 0,
"subTabLabel": "common.general"
},
{
"labelKey": "panels.system-monitor.enable-dgpu-monitoring-label",
"descriptionKey": "panels.system-monitor.enable-dgpu-monitoring-description",
+1
View File
@@ -554,6 +554,7 @@ Singleton {
property int countdownDuration: 10000
property string position: "center"
property bool showHeader: true
property bool showKeybinds: true
property bool largeButtonsStyle: true
property string largeButtonsLayout: "single-row"
property list<var> powerOptions: [
+2 -2
View File
@@ -827,7 +827,7 @@ SmartPanel {
color: (buttonRoot.isSelected || buttonRoot.effectiveHover) ? Color.mOnPrimary : Qt.alpha(Color.mSurfaceVariant, 0.5)
border.width: Style.borderS
border.color: (buttonRoot.isSelected || buttonRoot.effectiveHover) ? Color.mOnPrimary : Color.mOutline
visible: (buttonRoot.keybind !== "") && !buttonRoot.pending
visible: Settings.data.sessionMenu.showKeybinds && (buttonRoot.keybind !== "") && !buttonRoot.pending
NText {
id: labelText
@@ -1064,7 +1064,7 @@ SmartPanel {
color: (largeButtonRoot.isSelected || largeButtonRoot.effectiveHover) ? Color.mOnPrimary : Qt.alpha(Color.mSurfaceVariant, 0.7)
border.width: Style.borderS
border.color: (largeButtonRoot.isSelected || largeButtonRoot.effectiveHover) ? Color.mOnPrimary : Color.mOutline
visible: (largeButtonRoot.keybind !== "") && !largeButtonRoot.pending
visible: Settings.data.sessionMenu.showKeybinds && (largeButtonRoot.keybind !== "") && !largeButtonRoot.pending
z: 10
NText {
@@ -87,6 +87,15 @@ ColumnLayout {
defaultValue: Settings.getDefaultValue("sessionMenu.showHeader")
}
NToggle {
Layout.fillWidth: true
label: I18n.tr("panels.session-menu.show-keybinds-label")
description: I18n.tr("panels.session-menu.show-keybinds-description")
checked: Settings.data.sessionMenu.showKeybinds
onToggled: checked => Settings.data.sessionMenu.showKeybinds = checked
defaultValue: Settings.getDefaultValue("sessionMenu.showKeybinds")
}
NToggle {
Layout.fillWidth: true
label: I18n.tr("panels.session-menu.enable-countdown-label")