forked from Shinonome/dots-hyprland
background: fewer Layouts
This commit is contained in:
@@ -294,9 +294,7 @@ Variants {
|
|||||||
easing.bezierCurve: Appearance.animation.elementMove.bezierCurve
|
easing.bezierCurve: Appearance.animation.elementMove.bezierCurve
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sourceComponent: ColumnLayout {
|
sourceComponent: Column {
|
||||||
spacing: 8
|
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: digitalClockLoader
|
id: digitalClockLoader
|
||||||
visible: root.clockStyle === "digital"
|
visible: root.clockStyle === "digital"
|
||||||
@@ -334,7 +332,6 @@ 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 {}
|
||||||
@@ -426,7 +423,7 @@ Variants {
|
|||||||
styleColor: Appearance.colors.colShadow
|
styleColor: Appearance.colors.colShadow
|
||||||
animateChange: true
|
animateChange: true
|
||||||
}
|
}
|
||||||
component ClockStatusText: RowLayout {
|
component ClockStatusText: Row {
|
||||||
id: statusTextRow
|
id: statusTextRow
|
||||||
property alias statusIcon: statusIconWidget.text
|
property alias statusIcon: statusIconWidget.text
|
||||||
property alias statusText: statusTextWidget.text
|
property alias statusText: statusTextWidget.text
|
||||||
@@ -437,10 +434,10 @@ Variants {
|
|||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||||
}
|
}
|
||||||
Layout.fillWidth: false
|
spacing: 4
|
||||||
MaterialSymbol {
|
MaterialSymbol {
|
||||||
id: statusIconWidget
|
id: statusIconWidget
|
||||||
Layout.fillWidth: false
|
anchors.verticalCenter: statusTextRow.verticalCenter
|
||||||
iconSize: Appearance.font.pixelSize.huge
|
iconSize: Appearance.font.pixelSize.huge
|
||||||
color: statusTextRow.textColor
|
color: statusTextRow.textColor
|
||||||
style: Text.Raised
|
style: Text.Raised
|
||||||
@@ -448,8 +445,8 @@ Variants {
|
|||||||
}
|
}
|
||||||
ClockText {
|
ClockText {
|
||||||
id: statusTextWidget
|
id: statusTextWidget
|
||||||
Layout.fillWidth: false
|
|
||||||
color: statusTextRow.textColor
|
color: statusTextRow.textColor
|
||||||
|
anchors.verticalCenter: statusTextRow.verticalCenter
|
||||||
font {
|
font {
|
||||||
family: Appearance.font.family.main
|
family: Appearance.font.family.main
|
||||||
pixelSize: Appearance.font.pixelSize.large
|
pixelSize: Appearance.font.pixelSize.large
|
||||||
|
|||||||
Reference in New Issue
Block a user