add settings for clock, add quote for cookie clock, make quote editable from settings

This commit is contained in:
darksignal7
2025-10-04 13:47:40 +03:00
parent 2399600169
commit 26b9d8193c
4 changed files with 126 additions and 22 deletions
@@ -12,11 +12,20 @@ ContentPage {
icon: "wallpaper"
title: Translation.tr("Background")
ConfigSwitch {
text: Translation.tr("Show clock")
checked: Config.options.background.clock.show
onCheckedChanged: {
Config.options.background.clock.show = checked;
ConfigRow{
ConfigSwitch {
text: Translation.tr("Show clock")
checked: Config.options.background.clock.show
onCheckedChanged: {
Config.options.background.clock.show = checked;
}
}
ConfigSwitch {
text: Translation.tr("Show quote")
checked: Config.options.background.showQuote
onCheckedChanged: {
Config.options.background.showQuote = checked;
}
}
}
@@ -43,7 +52,8 @@ ContentPage {
}
}
}
ContentSubsection {
title: Translation.tr("Clock style")
ConfigSelectionArray {
@@ -61,16 +71,51 @@ ContentPage {
displayName: Translation.tr("Material cookie"),
icon: "cookie",
value: "cookie"
},
{
displayName: Translation.tr("Material simpler cookie"),
icon: "circle",
value: "simpler-cookie"
},
}
]
}
}
ContentSubsection {
title: Translation.tr("Cookie clock options")
ConfigRow{
ConfigSwitch {
text: Translation.tr("Hour dots")
checked: Config.options.background.clock.cookie.hourDots
onCheckedChanged: {
Config.options.background.clock.cookie.hourDots = checked;
}
}
ConfigSwitch {
text: Translation.tr("Time indicator")
checked: Config.options.background.clock.cookie.timeIndicators
onCheckedChanged: {
Config.options.background.clock.cookie.timeIndicators = checked;
}
}
ConfigSwitch {
text: Translation.tr("Minute hand adjust")
checked: Config.options.background.clock.cookie.minuteHandSizeAdjust
onCheckedChanged: {
Config.options.background.clock.cookie.minuteHandSizeAdjust = checked;
}
}
}
}
ContentSubsection {
title: Translation.tr("Quote settings")
MaterialTextArea {
Layout.fillWidth: true
placeholderText: Translation.tr("Quote")
text: Config.options.background.quote
wrapMode: TextEdit.Wrap
onTextChanged: {
Config.options.background.quote = text;
}
}
}
ContentSubsection {
title: Translation.tr("Wallpaper parallax")