left-bar working, bottom bar semi-broken
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user