mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Settings/SessionMenu: Hiding unecessary options when using large buttons.
This commit is contained in:
@@ -170,6 +170,14 @@ ColumnLayout {
|
||||
description: I18n.tr("settings.session-menu.general.section.description")
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("settings.session-menu.large-buttons-style.label")
|
||||
description: I18n.tr("settings.session-menu.large-buttons-style.description")
|
||||
checked: Settings.data.sessionMenu.largeButtonsStyle
|
||||
onToggled: checked => Settings.data.sessionMenu.largeButtonsStyle = checked
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("settings.session-menu.position.label")
|
||||
description: I18n.tr("settings.session-menu.position.description")
|
||||
@@ -205,9 +213,8 @@ ColumnLayout {
|
||||
}
|
||||
]
|
||||
currentKey: Settings.data.sessionMenu.position
|
||||
onSelected: function (key) {
|
||||
Settings.data.sessionMenu.position = key;
|
||||
}
|
||||
onSelected: key => Settings.data.sessionMenu.position = key
|
||||
visible: !Settings.data.sessionMenu.largeButtonsStyle
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -216,14 +223,7 @@ ColumnLayout {
|
||||
description: I18n.tr("settings.session-menu.show-header.description")
|
||||
checked: Settings.data.sessionMenu.showHeader
|
||||
onToggled: checked => Settings.data.sessionMenu.showHeader = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("settings.session-menu.large-buttons-style.label")
|
||||
description: I18n.tr("settings.session-menu.large-buttons-style.description")
|
||||
checked: Settings.data.sessionMenu.largeButtonsStyle
|
||||
onToggled: checked => Settings.data.sessionMenu.largeButtonsStyle = checked
|
||||
visible: !Settings.data.sessionMenu.largeButtonsStyle
|
||||
}
|
||||
|
||||
NToggle {
|
||||
|
||||
@@ -137,6 +137,8 @@ Singleton {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
${expandedPath}' ${tmpDir}/extension/themes/NoctaliaTheme-color-theme.json && cd ${tmpDir} && zip -q -r ${modifiedVsix} . && ${client.name} --install-extension ${modifiedVsix} 2>&1 && rm -rf ${tmpDir}; fi`;
|
||||
var updateSettingsJson = `if command -v ${client.name} >/dev/null 2>&1 && [ -f ${settingsPath} ]; then sed -i 's/\\\\\\"workbench.colorTheme\\\\\\":[[:space:]]*\\\\\\"[^\\\\\\"]*/\\\\\\"workbench.colorTheme\\\\\\": \\\\\\"NoctaliaTheme/' ${settingsPath}; fi`;
|
||||
lines.push(`post_hook = "sh -c \\"${reinstallVsix}; ${updateSettingsJson}\\""`);
|
||||
|
||||
Reference in New Issue
Block a user