forked from Shinonome/dots-hyprland
settings: remove redundant enableds
This commit is contained in:
@@ -43,10 +43,6 @@ ContentPage {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ContentSubsection {
|
||||
title: Translation.tr("Clock style")
|
||||
ConfigSelectionArray {
|
||||
@@ -69,11 +65,8 @@ ContentPage {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ConfigRow{
|
||||
visible: Config.options.background.clock.style === "cookie"
|
||||
ContentSubsection {
|
||||
enabled: Config.options.background.clock.style === "cookie"
|
||||
visible: Config.options.background.clock.style === "cookie"
|
||||
title: Translation.tr("Dial number style")
|
||||
ConfigSelectionArray {
|
||||
currentValue: Config.options.background.clock.cookie.dialNumberStyle
|
||||
@@ -113,18 +106,14 @@ ContentPage {
|
||||
icon: "123",
|
||||
value: "numbers"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
onSelected: newValue => {
|
||||
@@ -156,9 +145,9 @@ 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
|
||||
onSelected: newValue => {
|
||||
@@ -193,10 +182,11 @@ ContentPage {
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
ContentSubsection {
|
||||
enabled: Config.options.background.clock.style === "cookie"
|
||||
title: Translation.tr("Seconds hand style")
|
||||
visible: Config.options.background.clock.style === "cookie"
|
||||
title: Translation.tr("Seconds hand style")
|
||||
|
||||
ConfigSelectionArray {
|
||||
currentValue: Config.options.background.clock.cookie.secondHandStyle
|
||||
onSelected: newValue => {
|
||||
@@ -223,18 +213,14 @@ ContentPage {
|
||||
icon: "deselect",
|
||||
value: "hide"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
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
|
||||
onSelected: newValue => {
|
||||
@@ -269,17 +255,15 @@ ContentPage {
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
StyledText {
|
||||
visible: Config.options.background.clock.style === "cookie"
|
||||
Layout.leftMargin: 10
|
||||
color: Appearance.colors.colSubtext
|
||||
font.pixelSize: Appearance.font.pixelSize.smallie
|
||||
text: Translation.tr("'Rotating' and 'Square' styles are not compatible with dial styles for aesthetic reasons")
|
||||
}
|
||||
|
||||
|
||||
ConfigSpinBox {
|
||||
enabled: Config.options.background.clock.style === "cookie"
|
||||
visible: Config.options.background.clock.style === "cookie"
|
||||
icon: "support"
|
||||
text: Translation.tr("Clock sides")
|
||||
@@ -293,9 +277,8 @@ ContentPage {
|
||||
}
|
||||
|
||||
ConfigSwitch {
|
||||
enabled: Config.options.background.clock.style === "cookie"
|
||||
visible: Config.options.background.clock.style === "cookie"
|
||||
buttonIcon: "waves"
|
||||
buttonIcon: "autoplay"
|
||||
text: Translation.tr("Constantly rotate")
|
||||
checked: Config.options.background.clock.cookie.constantlyRotate
|
||||
onCheckedChanged: {
|
||||
@@ -307,15 +290,15 @@ 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"
|
||||
text: Translation.tr("Center glow")
|
||||
checked: Config.options.background.clock.cookie.centerGlow
|
||||
onEnabledChanged: {
|
||||
checked = Config.options.background.clock.cookie.centerGlow
|
||||
checked = Config.options.background.clock.cookie.centerGlow;
|
||||
}
|
||||
onCheckedChanged: {
|
||||
Config.options.background.clock.cookie.centerGlow = checked;
|
||||
@@ -326,13 +309,12 @@ ContentPage {
|
||||
}
|
||||
|
||||
ConfigSwitch {
|
||||
enabled: Config.options.background.clock.style === "cookie" && Config.options.background.clock.cookie.dialNumberStyle !== "numbers"
|
||||
visible: Config.options.background.clock.style === "cookie"
|
||||
visible: Config.options.background.clock.style === "cookie" && Config.options.background.clock.cookie.dialNumberStyle !== "numbers"
|
||||
buttonIcon: "farsight_digital"
|
||||
text: Translation.tr("Clock indicator")
|
||||
checked: Config.options.background.clock.cookie.timeIndicators
|
||||
onEnabledChanged: {
|
||||
checked = Config.options.background.clock.cookie.timeIndicators
|
||||
checked = Config.options.background.clock.cookie.timeIndicators;
|
||||
}
|
||||
onCheckedChanged: {
|
||||
Config.options.background.clock.cookie.timeIndicators = checked;
|
||||
@@ -341,10 +323,8 @@ ContentPage {
|
||||
text: "Can't be turned on when using 'Numbers' dial style for aesthetic reasons"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
ContentSubsection {
|
||||
title: Translation.tr("Quote settings")
|
||||
MaterialTextArea {
|
||||
@@ -424,7 +404,9 @@ ContentPage {
|
||||
font.pixelSize: Appearance.font.pixelSize.smallie
|
||||
text: Translation.tr("Press Super+G to toggle appearance")
|
||||
}
|
||||
Item { Layout.fillWidth: true }
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
RippleButtonWithIcon {
|
||||
id: editorButton
|
||||
buttonRadius: Appearance.rounding.full
|
||||
@@ -567,8 +549,6 @@ ContentPage {
|
||||
Config.options.lock.blur.extraZoom = value / 100;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -776,5 +756,4 @@ ContentPage {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user