remove visible's in config

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