forked from Shinonome/dots-hyprland
background: fix cookie clock positioning when locked + wall safety
This commit is contained in:
@@ -339,6 +339,7 @@ Variants {
|
|||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: cookieClockLoader
|
id: cookieClockLoader
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
visible: root.clockStyle === "cookie"
|
visible: root.clockStyle === "cookie"
|
||||||
active: visible
|
active: visible
|
||||||
sourceComponent: CookieClock {}
|
sourceComponent: CookieClock {}
|
||||||
@@ -363,10 +364,11 @@ Variants {
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: statusTextBg
|
id: statusTextBg
|
||||||
|
clip: true
|
||||||
opacity: (safetyStatusText.shown || lockStatusText.shown) ? 1 : 0
|
opacity: (safetyStatusText.shown || lockStatusText.shown) ? 1 : 0
|
||||||
visible: opacity > 0
|
visible: opacity > 0
|
||||||
implicitHeight: statusTextRow.implicitHeight + 5 * 2
|
implicitHeight: statusTextRow.implicitHeight + 5 * 2
|
||||||
implicitWidth: statusTextRow.implicitWidth + 10 * 2
|
implicitWidth: statusTextRow.implicitWidth + 5 * 2
|
||||||
radius: Appearance.rounding.small
|
radius: Appearance.rounding.small
|
||||||
color: CF.ColorUtils.transparentize(Appearance.colors.colSecondaryContainer, cookieClockLoader.active ? 0 : 1)
|
color: CF.ColorUtils.transparentize(Appearance.colors.colSecondaryContainer, cookieClockLoader.active ? 0 : 1)
|
||||||
|
|
||||||
@@ -383,7 +385,7 @@ Variants {
|
|||||||
RowLayout {
|
RowLayout {
|
||||||
id: statusTextRow
|
id: statusTextRow
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 16
|
spacing: 14
|
||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: bgRoot.textHorizontalAlignment !== Text.AlignLeft
|
Layout.fillWidth: bgRoot.textHorizontalAlignment !== Text.AlignLeft
|
||||||
implicitWidth: 1
|
implicitWidth: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user