settings: more icons

This commit is contained in:
end-4
2025-10-04 12:54:34 +02:00
parent 81bdb352aa
commit 81287e9eb5
7 changed files with 51 additions and 3 deletions
@@ -19,12 +19,14 @@ RowLayout {
spacing: 10 spacing: 10
OptionalMaterialSymbol { OptionalMaterialSymbol {
icon: root.icon icon: root.icon
opacity: root.enabled ? 1 : 0.4
} }
StyledText { StyledText {
id: labelWidget id: labelWidget
Layout.fillWidth: true Layout.fillWidth: true
text: root.text text: root.text
color: Appearance.colors.colOnSecondaryContainer color: Appearance.colors.colOnSecondaryContainer
opacity: root.enabled ? 1 : 0.4
} }
} }
@@ -18,6 +18,7 @@ RippleButton {
spacing: 10 spacing: 10
OptionalMaterialSymbol { OptionalMaterialSymbol {
icon: root.buttonIcon icon: root.buttonIcon
opacity: root.enabled ? 1 : 0.4
iconSize: Appearance.font.pixelSize.larger iconSize: Appearance.font.pixelSize.larger
} }
StyledText { StyledText {
@@ -26,6 +27,7 @@ RippleButton {
text: root.text text: root.text
font: root.font font: root.font
color: Appearance.colors.colOnSecondaryContainer color: Appearance.colors.colOnSecondaryContainer
opacity: root.enabled ? 1 : 0.4
} }
StyledSwitch { StyledSwitch {
id: switchWidget id: switchWidget
@@ -14,6 +14,8 @@ SpinBox {
property real innerButtonRadius: Appearance.rounding.unsharpen property real innerButtonRadius: Appearance.rounding.unsharpen
editable: true editable: true
opacity: root.enabled ? 1 : 0.4
background: Rectangle { background: Rectangle {
color: Appearance.colors.colLayer2 color: Appearance.colors.colLayer2
radius: root.radius radius: root.radius
@@ -15,6 +15,7 @@ ContentPage {
title: Translation.tr("Audio") title: Translation.tr("Audio")
ConfigSwitch { ConfigSwitch {
buttonIcon: "hearing"
text: Translation.tr("Earbang protection") text: Translation.tr("Earbang protection")
checked: Config.options.audio.protection.enable checked: Config.options.audio.protection.enable
onCheckedChanged: { onCheckedChanged: {
@@ -25,8 +26,9 @@ ContentPage {
} }
} }
ConfigRow { ConfigRow {
// uniform: true enabled: Config.options.audio.protection.enable
ConfigSpinBox { ConfigSpinBox {
icon: "arrow_warm_up"
text: Translation.tr("Max allowed increase") text: Translation.tr("Max allowed increase")
value: Config.options.audio.protection.maxAllowedIncrease value: Config.options.audio.protection.maxAllowedIncrease
from: 0 from: 0
@@ -37,6 +39,7 @@ ContentPage {
} }
} }
ConfigSpinBox { ConfigSpinBox {
icon: "vertical_align_top"
text: Translation.tr("Volume limit") text: Translation.tr("Volume limit")
value: Config.options.audio.protection.maxAllowed value: Config.options.audio.protection.maxAllowed
from: 0 from: 0
@@ -56,6 +59,7 @@ ContentPage {
ConfigRow { ConfigRow {
uniform: true uniform: true
ConfigSpinBox { ConfigSpinBox {
icon: "warning"
text: Translation.tr("Low warning") text: Translation.tr("Low warning")
value: Config.options.battery.low value: Config.options.battery.low
from: 0 from: 0
@@ -66,6 +70,7 @@ ContentPage {
} }
} }
ConfigSpinBox { ConfigSpinBox {
icon: "dangerous"
text: Translation.tr("Critical warning") text: Translation.tr("Critical warning")
value: Config.options.battery.critical value: Config.options.battery.critical
from: 0 from: 0
@@ -77,8 +82,10 @@ ContentPage {
} }
} }
ConfigRow { ConfigRow {
uniform: true uniform: false
Layout.fillWidth: false
ConfigSwitch { ConfigSwitch {
buttonIcon: "pause"
text: Translation.tr("Automatic suspend") text: Translation.tr("Automatic suspend")
checked: Config.options.battery.automaticSuspend checked: Config.options.battery.automaticSuspend
onCheckedChanged: { onCheckedChanged: {
@@ -89,7 +96,8 @@ ContentPage {
} }
} }
ConfigSpinBox { ConfigSpinBox {
text: Translation.tr("Suspend at") enabled: Config.options.battery.automaticSuspend
text: Translation.tr("at")
value: Config.options.battery.suspend value: Config.options.battery.suspend
from: 0 from: 0
to: 100 to: 100
@@ -13,6 +13,7 @@ ContentPage {
title: Translation.tr("Background") title: Translation.tr("Background")
ConfigSwitch { ConfigSwitch {
buttonIcon: "nest_clock_farsight_analog"
text: Translation.tr("Show clock") text: Translation.tr("Show clock")
checked: Config.options.background.clock.show checked: Config.options.background.clock.show
onCheckedChanged: { onCheckedChanged: {
@@ -21,6 +22,7 @@ ContentPage {
} }
ConfigSpinBox { ConfigSpinBox {
icon: "loupe"
text: Translation.tr("Scale (%)") text: Translation.tr("Scale (%)")
value: Config.options.background.clock.scale * 100 value: Config.options.background.clock.scale * 100
from: 1 from: 1
@@ -57,6 +59,7 @@ ContentPage {
title: Translation.tr("Wallpaper parallax") title: Translation.tr("Wallpaper parallax")
ConfigSwitch { ConfigSwitch {
buttonIcon: "unfold_more_double"
text: Translation.tr("Vertical") text: Translation.tr("Vertical")
checked: Config.options.background.parallax.vertical checked: Config.options.background.parallax.vertical
onCheckedChanged: { onCheckedChanged: {
@@ -67,6 +70,7 @@ ContentPage {
ConfigRow { ConfigRow {
uniform: true uniform: true
ConfigSwitch { ConfigSwitch {
buttonIcon: "counter_1"
text: Translation.tr("Depends on workspace") text: Translation.tr("Depends on workspace")
checked: Config.options.background.parallax.enableWorkspace checked: Config.options.background.parallax.enableWorkspace
onCheckedChanged: { onCheckedChanged: {
@@ -74,6 +78,7 @@ ContentPage {
} }
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "side_navigation"
text: Translation.tr("Depends on sidebars") text: Translation.tr("Depends on sidebars")
checked: Config.options.background.parallax.enableSidebar checked: Config.options.background.parallax.enableSidebar
onCheckedChanged: { onCheckedChanged: {
@@ -82,6 +87,7 @@ ContentPage {
} }
} }
ConfigSpinBox { ConfigSpinBox {
icon: "loupe"
text: Translation.tr("Preferred wallpaper zoom (%)") text: Translation.tr("Preferred wallpaper zoom (%)")
value: Config.options.background.parallax.workspaceZoom * 100 value: Config.options.background.parallax.workspaceZoom * 100
from: 100 from: 100
@@ -136,6 +142,7 @@ ContentPage {
title: Translation.tr("Dock") title: Translation.tr("Dock")
ConfigSwitch { ConfigSwitch {
buttonIcon: "check"
text: Translation.tr("Enable") text: Translation.tr("Enable")
checked: Config.options.dock.enable checked: Config.options.dock.enable
onCheckedChanged: { onCheckedChanged: {
@@ -146,6 +153,7 @@ ContentPage {
ConfigRow { ConfigRow {
uniform: true uniform: true
ConfigSwitch { ConfigSwitch {
buttonIcon: "highlight_mouse_cursor"
text: Translation.tr("Hover to reveal") text: Translation.tr("Hover to reveal")
checked: Config.options.dock.hoverToReveal checked: Config.options.dock.hoverToReveal
onCheckedChanged: { onCheckedChanged: {
@@ -153,6 +161,7 @@ ContentPage {
} }
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "keep"
text: Translation.tr("Pinned on startup") text: Translation.tr("Pinned on startup")
checked: Config.options.dock.pinnedOnStartup checked: Config.options.dock.pinnedOnStartup
onCheckedChanged: { onCheckedChanged: {
@@ -161,6 +170,7 @@ ContentPage {
} }
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "colors"
text: Translation.tr("Tint app icons") text: Translation.tr("Tint app icons")
checked: Config.options.dock.monochromeIcons checked: Config.options.dock.monochromeIcons
onCheckedChanged: { onCheckedChanged: {
@@ -174,6 +184,7 @@ ContentPage {
title: Translation.tr("Lock screen") title: Translation.tr("Lock screen")
ConfigSwitch { ConfigSwitch {
buttonIcon: "account_circle"
text: Translation.tr('Launch on startup') text: Translation.tr('Launch on startup')
checked: Config.options.lock.launchOnStartup checked: Config.options.lock.launchOnStartup
onCheckedChanged: { onCheckedChanged: {
@@ -185,6 +196,7 @@ ContentPage {
title: Translation.tr("Security") title: Translation.tr("Security")
ConfigSwitch { ConfigSwitch {
buttonIcon: "settings_power"
text: Translation.tr('Require password to power off/restart') text: Translation.tr('Require password to power off/restart')
checked: Config.options.lock.security.requirePasswordToPower checked: Config.options.lock.security.requirePasswordToPower
onCheckedChanged: { onCheckedChanged: {
@@ -196,6 +208,7 @@ ContentPage {
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "key_vertical"
text: Translation.tr('Also unlock keyring') text: Translation.tr('Also unlock keyring')
checked: Config.options.lock.security.unlockKeyring checked: Config.options.lock.security.unlockKeyring
onCheckedChanged: { onCheckedChanged: {
@@ -211,6 +224,7 @@ ContentPage {
title: Translation.tr("Style: general") title: Translation.tr("Style: general")
ConfigSwitch { ConfigSwitch {
buttonIcon: "center_focus_weak"
text: Translation.tr('Center clock') text: Translation.tr('Center clock')
checked: Config.options.lock.centerClock checked: Config.options.lock.centerClock
onCheckedChanged: { onCheckedChanged: {
@@ -219,6 +233,7 @@ ContentPage {
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "info"
text: Translation.tr('Show "Locked" text') text: Translation.tr('Show "Locked" text')
checked: Config.options.lock.showLockedText checked: Config.options.lock.showLockedText
onCheckedChanged: { onCheckedChanged: {
@@ -230,6 +245,7 @@ ContentPage {
title: Translation.tr("Style: Blurred") title: Translation.tr("Style: Blurred")
ConfigSwitch { ConfigSwitch {
buttonIcon: "blur_on"
text: Translation.tr('Enable blur') text: Translation.tr('Enable blur')
checked: Config.options.lock.blur.enable checked: Config.options.lock.blur.enable
onCheckedChanged: { onCheckedChanged: {
@@ -238,6 +254,7 @@ ContentPage {
} }
ConfigSpinBox { ConfigSpinBox {
icon: "loupe"
text: Translation.tr("Extra wallpaper zoom (%)") text: Translation.tr("Extra wallpaper zoom (%)")
value: Config.options.lock.blur.extraZoom * 100 value: Config.options.lock.blur.extraZoom * 100
from: 1 from: 1
@@ -257,6 +274,7 @@ ContentPage {
title: Translation.tr("Notifications") title: Translation.tr("Notifications")
ConfigSpinBox { ConfigSpinBox {
icon: "av_timer"
text: Translation.tr("Timeout duration (if not defined by notification) (ms)") text: Translation.tr("Timeout duration (if not defined by notification) (ms)")
value: Config.options.notifications.timeout value: Config.options.notifications.timeout
from: 1000 from: 1000
@@ -273,6 +291,7 @@ ContentPage {
title: Translation.tr("Sidebars") title: Translation.tr("Sidebars")
ConfigSwitch { ConfigSwitch {
buttonIcon: "memory"
text: Translation.tr('Keep right sidebar loaded') text: Translation.tr('Keep right sidebar loaded')
checked: Config.options.sidebar.keepRightSidebarLoaded checked: Config.options.sidebar.keepRightSidebarLoaded
onCheckedChanged: { onCheckedChanged: {
@@ -289,6 +308,7 @@ ContentPage {
ConfigRow { ConfigRow {
uniform: true uniform: true
ConfigSwitch { ConfigSwitch {
buttonIcon: "check"
text: Translation.tr("Enable") text: Translation.tr("Enable")
checked: Config.options.sidebar.cornerOpen.enable checked: Config.options.sidebar.cornerOpen.enable
onCheckedChanged: { onCheckedChanged: {
@@ -296,6 +316,7 @@ ContentPage {
} }
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "highlight_mouse_cursor"
text: Translation.tr("Hover to trigger") text: Translation.tr("Hover to trigger")
checked: Config.options.sidebar.cornerOpen.clickless checked: Config.options.sidebar.cornerOpen.clickless
onCheckedChanged: { onCheckedChanged: {
@@ -310,6 +331,7 @@ ContentPage {
ConfigRow { ConfigRow {
uniform: true uniform: true
ConfigSwitch { ConfigSwitch {
buttonIcon: "vertical_align_bottom"
text: Translation.tr("Place at bottom") text: Translation.tr("Place at bottom")
checked: Config.options.sidebar.cornerOpen.bottom checked: Config.options.sidebar.cornerOpen.bottom
onCheckedChanged: { onCheckedChanged: {
@@ -321,6 +343,7 @@ ContentPage {
} }
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "unfold_more_double"
text: Translation.tr("Value scroll") text: Translation.tr("Value scroll")
checked: Config.options.sidebar.cornerOpen.valueScroll checked: Config.options.sidebar.cornerOpen.valueScroll
onCheckedChanged: { onCheckedChanged: {
@@ -333,6 +356,7 @@ ContentPage {
} }
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "visibility"
text: Translation.tr("Visualize region") text: Translation.tr("Visualize region")
checked: Config.options.sidebar.cornerOpen.visualize checked: Config.options.sidebar.cornerOpen.visualize
onCheckedChanged: { onCheckedChanged: {
@@ -341,6 +365,7 @@ ContentPage {
} }
ConfigRow { ConfigRow {
ConfigSpinBox { ConfigSpinBox {
icon: "arrow_range"
text: Translation.tr("Region width") text: Translation.tr("Region width")
value: Config.options.sidebar.cornerOpen.cornerRegionWidth value: Config.options.sidebar.cornerOpen.cornerRegionWidth
from: 1 from: 1
@@ -351,6 +376,7 @@ ContentPage {
} }
} }
ConfigSpinBox { ConfigSpinBox {
icon: "height"
text: Translation.tr("Region height") text: Translation.tr("Region height")
value: Config.options.sidebar.cornerOpen.cornerRegionHeight value: Config.options.sidebar.cornerOpen.cornerRegionHeight
from: 1 from: 1
@@ -369,6 +395,7 @@ ContentPage {
title: Translation.tr("On-screen display") title: Translation.tr("On-screen display")
ConfigSpinBox { ConfigSpinBox {
icon: "av_timer"
text: Translation.tr("Timeout (ms)") text: Translation.tr("Timeout (ms)")
value: Config.options.osd.timeout value: Config.options.osd.timeout
from: 100 from: 100
@@ -385,6 +412,7 @@ ContentPage {
title: Translation.tr("Overview") title: Translation.tr("Overview")
ConfigSwitch { ConfigSwitch {
buttonIcon: "check"
text: Translation.tr("Enable") text: Translation.tr("Enable")
checked: Config.options.overview.enable checked: Config.options.overview.enable
onCheckedChanged: { onCheckedChanged: {
@@ -392,6 +420,7 @@ ContentPage {
} }
} }
ConfigSpinBox { ConfigSpinBox {
icon: "loupe"
text: Translation.tr("Scale (%)") text: Translation.tr("Scale (%)")
value: Config.options.overview.scale * 100 value: Config.options.overview.scale * 100
from: 1 from: 1
@@ -404,6 +433,7 @@ ContentPage {
ConfigRow { ConfigRow {
uniform: true uniform: true
ConfigSpinBox { ConfigSpinBox {
icon: "splitscreen_bottom"
text: Translation.tr("Rows") text: Translation.tr("Rows")
value: Config.options.overview.rows value: Config.options.overview.rows
from: 1 from: 1
@@ -414,6 +444,7 @@ ContentPage {
} }
} }
ConfigSpinBox { ConfigSpinBox {
icon: "splitscreen_right"
text: Translation.tr("Columns") text: Translation.tr("Columns")
value: Config.options.overview.columns value: Config.options.overview.columns
from: 1 from: 1
@@ -431,6 +462,7 @@ ContentPage {
title: Translation.tr("Screenshot tool") title: Translation.tr("Screenshot tool")
ConfigSwitch { ConfigSwitch {
buttonIcon: "nearby"
text: Translation.tr('Show regions of potential interest') text: Translation.tr('Show regions of potential interest')
checked: Config.options.screenshotTool.showContentRegions checked: Config.options.screenshotTool.showContentRegions
onCheckedChanged: { onCheckedChanged: {
@@ -221,6 +221,7 @@ ContentPage {
} }
ConfigSwitch { ConfigSwitch {
buttonIcon: "ev_shadow"
text: Translation.tr("Transparency") text: Translation.tr("Transparency")
checked: Config.options.appearance.transparency.enable checked: Config.options.appearance.transparency.enable
onCheckedChanged: { onCheckedChanged: {
@@ -47,6 +47,7 @@ ContentPage {
title: Translation.tr("Resources") title: Translation.tr("Resources")
ConfigSpinBox { ConfigSpinBox {
icon: "av_timer"
text: Translation.tr("Polling interval (ms)") text: Translation.tr("Polling interval (ms)")
value: Config.options.resources.updateInterval value: Config.options.resources.updateInterval
from: 100 from: 100