background: add cookie clock style

This commit is contained in:
end-4
2025-09-22 20:25:46 +02:00
parent b90cf14228
commit 2237ec135c
6 changed files with 524 additions and 278 deletions
@@ -14,9 +14,31 @@ ContentPage {
ConfigSwitch {
text: Translation.tr("Show clock")
checked: Config.options.background.showClock
checked: Config.options.background.clock.show
onCheckedChanged: {
Config.options.background.showClock = checked;
Config.options.background.clock.show = checked;
}
}
ContentSubsection {
title: Translation.tr("Clock style")
ConfigSelectionArray {
currentValue: Config.options.background.clock.style
onSelected: newValue => {
Config.options.background.clock.style = newValue;
}
options: [
{
displayName: Translation.tr("Simple digital"),
icon: "timer_10",
value: "digital"
},
{
displayName: Translation.tr("Material cookie"),
icon: "cookie",
value: "cookie"
},
]
}
}