GeneralTab: move reverse scrolling toggle inside basics subtab

This commit is contained in:
Lysec
2026-02-16 18:48:21 +01:00
parent 181da4d3d0
commit c1c97fe1d8
3 changed files with 21 additions and 21 deletions
+6 -6
View File
@@ -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