mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
SessionMenu: add option to hide keybinds
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -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ę",
|
||||
|
||||
@@ -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şı",
|
||||
|
||||
@@ -348,6 +348,7 @@
|
||||
"countdownDuration": 10000,
|
||||
"position": "center",
|
||||
"showHeader": true,
|
||||
"showKeybinds": true,
|
||||
"largeButtonsStyle": true,
|
||||
"largeButtonsLayout": "single-row",
|
||||
"powerOptions": [
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user