mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
GeneralTab: move reverse scrolling toggle inside basics subtab
This commit is contained in:
@@ -705,17 +705,17 @@
|
||||
"subTab": null
|
||||
},
|
||||
{
|
||||
"labelKey": "panels.general.keybinds-title",
|
||||
"descriptionKey": "panels.general.keybinds-description",
|
||||
"widget": "NLabel",
|
||||
"labelKey": "panels.general.reverse-scrolling-label",
|
||||
"descriptionKey": "panels.general.reverse-scrolling-description",
|
||||
"widget": "NToggle",
|
||||
"tab": 0,
|
||||
"tabLabel": "common.general",
|
||||
"subTab": null
|
||||
},
|
||||
{
|
||||
"labelKey": "panels.general.reverse-scrolling-label",
|
||||
"descriptionKey": "panels.general.reverse-scrolling-description",
|
||||
"widget": "NToggle",
|
||||
"labelKey": "panels.general.keybinds-title",
|
||||
"descriptionKey": "panels.general.keybinds-description",
|
||||
"widget": "NLabel",
|
||||
"tab": 0,
|
||||
"tabLabel": "common.general",
|
||||
"subTab": null
|
||||
|
||||
@@ -179,6 +179,21 @@ ColumnLayout {
|
||||
Layout.bottomMargin: Style.marginM
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("panels.general.reverse-scrolling-label")
|
||||
description: I18n.tr("panels.general.reverse-scrolling-description")
|
||||
checked: Settings.data.general.reverseScroll
|
||||
defaultValue: Settings.getDefaultValue("general.reverseScroll")
|
||||
onToggled: checked => Settings.data.general.reverseScroll = checked
|
||||
}
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.marginM
|
||||
Layout.bottomMargin: Style.marginM
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
spacing: Style.marginL
|
||||
Layout.fillWidth: true
|
||||
|
||||
@@ -37,21 +37,6 @@ ColumnLayout {
|
||||
Layout.preferredHeight: Style.marginL
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("panels.general.reverse-scrolling-label")
|
||||
description: I18n.tr("panels.general.reverse-scrolling-description")
|
||||
checked: Settings.data.general.reverseScroll
|
||||
defaultValue: Settings.getDefaultValue("general.reverseScroll")
|
||||
onToggled: checked => Settings.data.general.reverseScroll = checked
|
||||
}
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.marginM
|
||||
Layout.bottomMargin: Style.marginM
|
||||
}
|
||||
|
||||
NTabView {
|
||||
id: tabView
|
||||
currentIndex: subTabBar.currentIndex
|
||||
|
||||
Reference in New Issue
Block a user