left-bar working, bottom bar semi-broken
This commit is contained in:
@@ -7,12 +7,14 @@ import qs.Components
|
||||
CustomRect {
|
||||
id: root
|
||||
|
||||
required property bool horizontal
|
||||
required property Wrapper popouts
|
||||
required property PersistentProperties visibilities
|
||||
|
||||
anchors.fill: parent
|
||||
color: visibilities.sidebar ? 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
|
||||
|
||||
MaterialIcon {
|
||||
@@ -21,8 +23,7 @@ CustomRect {
|
||||
anchors.centerIn: parent
|
||||
color: root.visibilities.sidebar ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
|
||||
fill: root.visibilities.sidebar ? 1 : 0
|
||||
font.family: "Material Symbols Rounded"
|
||||
font.pointSize: Appearance.font.size.larger
|
||||
font.pointSize: root.horizontal ? Appearance.font.size.larger : Appearance.font.size.large
|
||||
text: NotifServer.list.length ? "\uf4fe" : "\ue7f4"
|
||||
|
||||
Behavior on color {
|
||||
|
||||
Reference in New Issue
Block a user