left-bar working, bottom bar semi-broken

This commit is contained in:
2026-08-14 16:31:52 +02:00
parent 1d150292d3
commit 4517e5ecd0
28 changed files with 404 additions and 168 deletions
+5 -2
View File
@@ -6,11 +6,13 @@ import qs.Config
CustomRect {
id: root
required property bool horizontal
property bool tempEnabled: Hyprsunset.enabled
anchors.fill: parent
color: root.tempEnabled ? DynamicColors.palette.m3primary : DynamicColors.tPalette.m3surfaceContainer
implicitHeight: Config.bar.height + Appearance.padding.smallest * 2
implicitWidth: implicitHeight
implicitHeight: horizontal ? Config.bar.height + Appearance.padding.smallest * 2 : width
implicitWidth: horizontal ? height : Config.bar.height + Appearance.padding.smallest * 2
radius: Appearance.rounding.full
StateLayer {
@@ -25,6 +27,7 @@ CustomRect {
animate: true
color: root.tempEnabled ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
fill: root.tempEnabled ? 1 : 0
font.pointSize: root.horizontal ? Appearance.font.size.larger : Appearance.font.size.large
text: root.tempEnabled ? "lightbulb" : "light_off"
Behavior on fill {