change settings layout a little

This commit is contained in:
darksignal7
2025-10-04 14:58:32 +03:00
parent 67dd730666
commit 0f29869a76
@@ -31,31 +31,20 @@ ContentPage {
} }
} }
ConfigRow{ ConfigSpinBox {
ConfigSpinBox { icon: "loupe"
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 to: 200
to: 200 stepSize: 2
stepSize: 2 onValueChanged: {
onValueChanged: { Config.options.background.clock.scale = value / 100;
Config.options.background.clock.scale = value / 100;
}
}
ConfigSpinBox {
icon: "support"
text: Translation.tr("Clock sides")
value: Config.options.background.clock.clockSides
from: 1
to: 36
stepSize: 1
onValueChanged: {
Config.options.background.clock.clockSides = value;
}
} }
} }
ContentSubsection { ContentSubsection {
@@ -80,36 +69,46 @@ ContentPage {
} }
} }
ContentSubsection { ConfigSpinBox {
title: Translation.tr("Cookie clock options") enabled: Config.options.background.clock.style === "cookie"
ConfigRow{ icon: "support"
enabled: Config.options.background.clock.style === "cookie" text: Translation.tr("Clock sides")
ConfigSwitch { value: Config.options.background.clock.clockSides
buttonIcon: "graph_6" from: 1
text: Translation.tr("Hour dots") to: 36
checked: Config.options.background.clock.cookie.hourDots stepSize: 1
onCheckedChanged: { onValueChanged: {
Config.options.background.clock.cookie.hourDots = checked; Config.options.background.clock.clockSides = value;
} }
}
ConfigRow{
enabled: Config.options.background.clock.style === "cookie"
ConfigSwitch {
buttonIcon: "graph_6"
text: Translation.tr("Hour dots")
checked: Config.options.background.clock.cookie.hourDots
onCheckedChanged: {
Config.options.background.clock.cookie.hourDots = checked;
} }
ConfigSwitch { }
buttonIcon: "farsight_digital" ConfigSwitch {
text: Translation.tr("Clock indicator") buttonIcon: "farsight_digital"
checked: Config.options.background.clock.cookie.timeIndicators text: Translation.tr("Clock indicator")
onCheckedChanged: { checked: Config.options.background.clock.cookie.timeIndicators
Config.options.background.clock.cookie.timeIndicators = checked; onCheckedChanged: {
} Config.options.background.clock.cookie.timeIndicators = checked;
} }
ConfigSwitch { }
buttonIcon: "line_end" ConfigSwitch {
text: Translation.tr("Minute hand adjust") buttonIcon: "line_end"
checked: Config.options.background.clock.cookie.minuteHandSizeAdjust text: Translation.tr("Minute hand adjust")
onCheckedChanged: { checked: Config.options.background.clock.cookie.minuteHandSizeAdjust
Config.options.background.clock.cookie.minuteHandSizeAdjust = checked; onCheckedChanged: {
} Config.options.background.clock.cookie.minuteHandSizeAdjust = checked;
} }
} }
} }
ContentSubsection { ContentSubsection {
title: Translation.tr("Quote settings") title: Translation.tr("Quote settings")