forked from Shinonome/dots-hyprland
fixed bad settings layout, still could be better though
This commit is contained in:
@@ -69,17 +69,28 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ConfigSpinBox {
|
||||||
|
enabled: Config.options.background.clock.style === "cookie"
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ConfigRow{
|
ConfigRow{
|
||||||
enabled: Config.options.background.clock.style === "cookie"
|
enabled: Config.options.background.clock.style === "cookie"
|
||||||
ConfigSpinBox {
|
ConfigSwitch {
|
||||||
icon: "support"
|
buttonIcon: "graph_6"
|
||||||
text: Translation.tr("Clock sides")
|
text: Translation.tr("Hour dots")
|
||||||
value: Config.options.background.clock.clockSides
|
checked: Config.options.background.clock.cookie.hourDots
|
||||||
from: 1
|
onCheckedChanged: {
|
||||||
to: 36
|
Config.options.background.clock.cookie.hourDots = checked;
|
||||||
stepSize: 1
|
Config.options.background.clock.cookie.centerGlow = checked ? Config.options.background.clock.cookie.centerGlow : false;
|
||||||
onValueChanged: {
|
|
||||||
Config.options.background.clock.clockSides = value;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ConfigSwitch {
|
ConfigSwitch {
|
||||||
@@ -94,29 +105,11 @@ ContentPage {
|
|||||||
Config.options.background.clock.cookie.centerGlow = checked;
|
Config.options.background.clock.cookie.centerGlow = checked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ConfigSwitch {
|
|
||||||
buttonIcon: "waves"
|
|
||||||
text: Translation.tr("Wave animation")
|
|
||||||
checked: Config.options.background.clock.cookie.waveAnimation
|
|
||||||
onCheckedChanged: {
|
|
||||||
Config.options.background.clock.cookie.waveAnimation = checked;
|
|
||||||
}
|
|
||||||
StyledToolTip {
|
|
||||||
text: "It may effect performance"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigRow{
|
ConfigRow{
|
||||||
enabled: Config.options.background.clock.style === "cookie"
|
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;
|
|
||||||
Config.options.background.clock.cookie.centerGlow = checked ? Config.options.background.clock.cookie.centerGlow : false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ConfigSwitch {
|
ConfigSwitch {
|
||||||
buttonIcon: "farsight_digital"
|
buttonIcon: "farsight_digital"
|
||||||
text: Translation.tr("Clock indicator")
|
text: Translation.tr("Clock indicator")
|
||||||
@@ -133,6 +126,17 @@ ContentPage {
|
|||||||
Config.options.background.clock.cookie.minuteHandSizeAdjust = checked;
|
Config.options.background.clock.cookie.minuteHandSizeAdjust = checked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ConfigSwitch {
|
||||||
|
buttonIcon: "waves"
|
||||||
|
text: Translation.tr("Wave animation")
|
||||||
|
checked: Config.options.background.clock.cookie.waveAnimation
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.background.clock.cookie.waveAnimation = checked;
|
||||||
|
}
|
||||||
|
StyledToolTip {
|
||||||
|
text: "It may effect performance"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user