Revert "remove visible's in config"

This reverts commit 20e1fa935a.
This commit is contained in:
end-4
2025-10-05 20:37:15 +02:00
parent 20e1fa935a
commit 865e8575b2
@@ -71,6 +71,7 @@ ContentPage {
ConfigRow{
visible: Config.options.background.clock.style === "cookie"
ContentSubsection {
enabled: Config.options.background.clock.style === "cookie"
title: Translation.tr("Dial number style")
@@ -122,6 +123,7 @@ ContentPage {
ContentSubsection {
enabled: Config.options.background.clock.style === "cookie"
visible: Config.options.background.clock.style === "cookie"
title: Translation.tr("Hour hand style")
ConfigSelectionArray {
currentValue: Config.options.background.clock.cookie.hourHandStyle
@@ -155,6 +157,7 @@ ContentPage {
ContentSubsection {
enabled: Config.options.background.clock.style === "cookie"
visible: Config.options.background.clock.style === "cookie"
title: Translation.tr("Minute hand style")
ConfigSelectionArray {
currentValue: Config.options.background.clock.cookie.minuteHandStyle
@@ -193,6 +196,7 @@ ContentPage {
ContentSubsection {
enabled: Config.options.background.clock.style === "cookie"
title: Translation.tr("Seconds hand style")
visible: Config.options.background.clock.style === "cookie"
ConfigSelectionArray {
currentValue: Config.options.background.clock.cookie.secondHandStyle
onSelected: newValue => {
@@ -229,6 +233,7 @@ ContentPage {
ContentSubsection {
enabled: Config.options.background.clock.style === "cookie"
visible: Config.options.background.clock.style === "cookie"
title: Translation.tr("Date style")
ConfigSelectionArray {
currentValue: Config.options.background.clock.cookie.dateStyle
@@ -265,6 +270,7 @@ ContentPage {
}
}
StyledText {
visible: Config.options.background.clock.style === "cookie"
Layout.leftMargin: 10
color: Appearance.colors.colSubtext
font.pixelSize: Appearance.font.pixelSize.smallie
@@ -274,6 +280,7 @@ ContentPage {
ConfigSpinBox {
enabled: Config.options.background.clock.style === "cookie"
visible: Config.options.background.clock.style === "cookie"
icon: "support"
text: Translation.tr("Clock sides")
value: Config.options.background.clock.clockSides
@@ -287,6 +294,7 @@ ContentPage {
ConfigSwitch {
enabled: Config.options.background.clock.style === "cookie"
visible: Config.options.background.clock.style === "cookie"
buttonIcon: "waves"
text: Translation.tr("Constantly rotate")
checked: Config.options.background.clock.cookie.constantlyRotate
@@ -300,6 +308,7 @@ ContentPage {
ConfigRow{
enabled: Config.options.background.clock.style === "cookie"
visible: Config.options.background.clock.style === "cookie"
ConfigSwitch {
enabled: Config.options.background.clock.style === "cookie" && Config.options.background.clock.cookie.dialNumberStyle === "dots" || Config.options.background.clock.cookie.dialNumberStyle === "full"
buttonIcon: "brightness_7"
@@ -318,6 +327,7 @@ ContentPage {
ConfigSwitch {
enabled: Config.options.background.clock.style === "cookie" && Config.options.background.clock.cookie.dialNumberStyle !== "numbers"
visible: Config.options.background.clock.style === "cookie"
buttonIcon: "farsight_digital"
text: Translation.tr("Clock indicator")
checked: Config.options.background.clock.cookie.timeIndicators