forked from Shinonome/dots-hyprland
bg: clock: fix funny overlapping status row (#2413)
This commit is contained in:
@@ -38,13 +38,14 @@ AbstractBackgroundWidget {
|
|||||||
Column {
|
Column {
|
||||||
id: contentColumn
|
id: contentColumn
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 6
|
spacing: 10
|
||||||
|
|
||||||
FadeLoader {
|
FadeLoader {
|
||||||
id: cookieClockLoader
|
id: cookieClockLoader
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
shown: root.clockStyle === "cookie" && (root.shouldShow)
|
shown: root.clockStyle === "cookie" && (root.shouldShow)
|
||||||
sourceComponent: Column {
|
sourceComponent: Column {
|
||||||
|
spacing: 10
|
||||||
CookieClock {
|
CookieClock {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
@@ -88,9 +89,13 @@ AbstractBackgroundWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
StatusRow {
|
||||||
id: statusText
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
component StatusRow: Item {
|
||||||
|
id: statusText
|
||||||
implicitHeight: statusTextBg.implicitHeight
|
implicitHeight: statusTextBg.implicitHeight
|
||||||
implicitWidth: statusTextBg.implicitWidth
|
implicitWidth: statusTextBg.implicitWidth
|
||||||
StyledRectangularShadow {
|
StyledRectangularShadow {
|
||||||
@@ -146,7 +151,6 @@ AbstractBackgroundWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
component ClockText: StyledText {
|
component ClockText: StyledText {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|||||||
@@ -12,9 +12,6 @@ Item {
|
|||||||
implicitWidth: quoteBox.implicitWidth
|
implicitWidth: quoteBox.implicitWidth
|
||||||
implicitHeight: quoteBox.implicitHeight
|
implicitHeight: quoteBox.implicitHeight
|
||||||
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.bottomMargin: -24
|
|
||||||
|
|
||||||
DropShadow {
|
DropShadow {
|
||||||
source: quoteBox
|
source: quoteBox
|
||||||
anchors.fill: quoteBox
|
anchors.fill: quoteBox
|
||||||
@@ -29,14 +26,16 @@ Item {
|
|||||||
Rectangle {
|
Rectangle {
|
||||||
id: quoteBox
|
id: quoteBox
|
||||||
|
|
||||||
implicitWidth: quoteStyledText.width + quoteIcon.width + 16 // for spacing on both sides
|
implicitWidth: quoteRow.implicitWidth + 8 * 2
|
||||||
implicitHeight: quoteStyledText.height + 8
|
implicitHeight: quoteRow.implicitHeight + 4 * 2
|
||||||
radius: Appearance.rounding.small
|
radius: Appearance.rounding.small
|
||||||
color: Appearance.colors.colSecondaryContainer
|
color: Appearance.colors.colSecondaryContainer
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
|
id: quoteRow
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 4
|
spacing: 4
|
||||||
|
|
||||||
MaterialSymbol {
|
MaterialSymbol {
|
||||||
id: quoteIcon
|
id: quoteIcon
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|||||||
Reference in New Issue
Block a user