forked from Shinonome/dots-hyprland
hide settings when digital clock is selected
This commit is contained in:
@@ -71,6 +71,7 @@ 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")
|
||||||
@@ -110,6 +111,7 @@ ContentPage {
|
|||||||
ContentSubsection {
|
ContentSubsection {
|
||||||
enabled: Config.options.background.clock.style === "cookie"
|
enabled: Config.options.background.clock.style === "cookie"
|
||||||
title: Translation.tr("Seconds indicator style")
|
title: Translation.tr("Seconds indicator 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 => {
|
||||||
@@ -138,6 +140,7 @@ 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
|
||||||
@@ -161,6 +164,7 @@ 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
|
||||||
@@ -173,6 +177,7 @@ 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("Wave animation")
|
text: Translation.tr("Wave animation")
|
||||||
checked: Config.options.background.clock.cookie.waveAnimation
|
checked: Config.options.background.clock.cookie.waveAnimation
|
||||||
@@ -186,6 +191,7 @@ 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"
|
enabled: Config.options.background.clock.style === "cookie" && Config.options.background.clock.cookie.dialNumberStyle === "dots"
|
||||||
buttonIcon: "brightness_7"
|
buttonIcon: "brightness_7"
|
||||||
@@ -204,6 +210,7 @@ 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
|
||||||
@@ -219,6 +226,7 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
ConfigSwitch {
|
ConfigSwitch {
|
||||||
enabled: Config.options.background.clock.style === "cookie" && Config.options.background.clock.cookie.dialNumberStyle === "none"
|
enabled: Config.options.background.clock.style === "cookie" && Config.options.background.clock.cookie.dialNumberStyle === "none"
|
||||||
|
visible: Config.options.background.clock.style === "cookie"
|
||||||
buttonIcon: "farsight_digital"
|
buttonIcon: "farsight_digital"
|
||||||
text: Translation.tr("Date inside clock")
|
text: Translation.tr("Date inside clock")
|
||||||
checked: Config.options.background.clock.cookie.dateInClock
|
checked: Config.options.background.clock.cookie.dateInClock
|
||||||
|
|||||||
Reference in New Issue
Block a user