change things idek

This commit is contained in:
lucy 2026-02-16 23:32:00 +01:00
parent d08ce4d933
commit c12e3c1606
5 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,6 @@ Variants {
anchors.fill: parent anchors.fill: parent
color: Qt.rgba(Colors.surface.r, Colors.surface.g, Colors.surface.b, Settings.config.translucency) color: Qt.rgba(Colors.surface.r, Colors.surface.g, Colors.surface.b, Settings.config.translucency)
radius: Settings.config.floating ? Settings.config.barHeight / 2 : 0 radius: Settings.config.floating ? Settings.config.barHeight / 2 : 0
RowLayout { RowLayout {
id: leftStuff id: leftStuff
spacing: 10 spacing: 10

View File

@ -5,7 +5,7 @@ import qs
Rectangle { Rectangle {
id: root id: root
implicitWidth: implicitHeight + 2 implicitWidth: trayRow.implicitWidth + 8
implicitHeight: Settings.config.barHeight - 10 implicitHeight: Settings.config.barHeight - 10
radius: implicitHeight / 2 radius: implicitHeight / 2
color: Colors.surfaceContainer color: Colors.surfaceContainer

View File

@ -48,7 +48,7 @@
if (perc < 0.9) { if (perc < 0.9) {
return "battery_android_frame_5"; return "battery_android_frame_5";
} }
if (perc == 1) { if (perc > 0.9) {
return "battery_android_frame_full"; return "battery_android_frame_full";
} }
} }

View File

@ -11,8 +11,10 @@ Rectangle {
required property var modelData required property var modelData
implicitWidth: ListView.view ? ListView.view.width : 300 implicitWidth: ListView.view ? ListView.view.width : 300
implicitHeight: fullLayout.implicitHeight + 20 implicitHeight: fullLayout.implicitHeight + 20
color: dismissArea.containsMouse ? Colors.surfaceContainer : Colors.surfaceContainerLowest color: dismissArea.containsMouse ? Colors.primaryContainer : Colors.surfaceContainer
radius: 22 radius: 22
border.width: 1
border.color: Colors.outline
Timer { Timer {
id: dismissTimer id: dismissTimer
interval: 5000 interval: 5000

View File

@ -6,16 +6,15 @@ Text {
id: root id: root
color: Colors.onSurfaceColor color: Colors.onSurfaceColor
property real iconSize: 16 property real iconSize: 16
property real fill: 0 property real fill: 1
property real truncatedFill: fill.toFixed(1) // Reduce memory consumption spikes from constant font remapping
renderType: Text.NativeRendering renderType: Text.NativeRendering
font { font {
hintingPreference: Font.PreferNoHinting hintingPreference: Font.PreferNoHinting
family: "Material Symbols Rounded" family: "Material Symbols Outlined"
pixelSize: iconSize pixelSize: iconSize
weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill weight: Font.Normal + (Font.DemiBold - Font.Normal) * fill
variableAxes: { variableAxes: {
"FILL": truncatedFill, "FILL": fill,
"opsz": iconSize "opsz": iconSize
} }
} }