change things idek
This commit is contained in:
parent
d08ce4d933
commit
c12e3c1606
@ -32,7 +32,6 @@ Variants {
|
||||
anchors.fill: parent
|
||||
color: Qt.rgba(Colors.surface.r, Colors.surface.g, Colors.surface.b, Settings.config.translucency)
|
||||
radius: Settings.config.floating ? Settings.config.barHeight / 2 : 0
|
||||
|
||||
RowLayout {
|
||||
id: leftStuff
|
||||
spacing: 10
|
||||
|
||||
@ -5,7 +5,7 @@ import qs
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
implicitWidth: implicitHeight + 2
|
||||
implicitWidth: trayRow.implicitWidth + 8
|
||||
implicitHeight: Settings.config.barHeight - 10
|
||||
radius: implicitHeight / 2
|
||||
color: Colors.surfaceContainer
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
if (perc < 0.9) {
|
||||
return "battery_android_frame_5";
|
||||
}
|
||||
if (perc == 1) {
|
||||
if (perc > 0.9) {
|
||||
return "battery_android_frame_full";
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,8 +11,10 @@ Rectangle {
|
||||
required property var modelData
|
||||
implicitWidth: ListView.view ? ListView.view.width : 300
|
||||
implicitHeight: fullLayout.implicitHeight + 20
|
||||
color: dismissArea.containsMouse ? Colors.surfaceContainer : Colors.surfaceContainerLowest
|
||||
color: dismissArea.containsMouse ? Colors.primaryContainer : Colors.surfaceContainer
|
||||
radius: 22
|
||||
border.width: 1
|
||||
border.color: Colors.outline
|
||||
Timer {
|
||||
id: dismissTimer
|
||||
interval: 5000
|
||||
|
||||
@ -6,16 +6,15 @@ Text {
|
||||
id: root
|
||||
color: Colors.onSurfaceColor
|
||||
property real iconSize: 16
|
||||
property real fill: 0
|
||||
property real truncatedFill: fill.toFixed(1) // Reduce memory consumption spikes from constant font remapping
|
||||
property real fill: 1
|
||||
renderType: Text.NativeRendering
|
||||
font {
|
||||
hintingPreference: Font.PreferNoHinting
|
||||
family: "Material Symbols Rounded"
|
||||
family: "Material Symbols Outlined"
|
||||
pixelSize: iconSize
|
||||
weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill
|
||||
weight: Font.Normal + (Font.DemiBold - Font.Normal) * fill
|
||||
variableAxes: {
|
||||
"FILL": truncatedFill,
|
||||
"FILL": fill,
|
||||
"opsz": iconSize
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user