test rounding policy environment variable

This commit is contained in:
2026-04-06 21:42:03 +02:00
parent 84e708aaad
commit 440d103b46
4 changed files with 27 additions and 14 deletions
+17 -5
View File
@@ -95,11 +95,23 @@ ColumnLayout {
anchors.margins: Appearance.padding.normal
spacing: Appearance.spacing.normal
MaterialIcon {
color: user.index === users.currentIndex ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurfaceVariant
fill: 1
font.pointSize: Appearance.font.size.extraLarge
text: modelData.kind === "x11" ? "tv" : "account_circle"
CustomClippingRect {
Layout.preferredHeight: 50
Layout.preferredWidth: 50
radius: Appearance.rounding.full
MaterialIcon {
anchors.centerIn: parent
color: user.index === users.currentIndex ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurfaceVariant
fill: 1
font.pointSize: Appearance.font.size.extraLarge
text: modelData.kind === "x11" ? "tv" : "account_circle"
}
CachingImage {
anchors.fill: parent
path: modelData.face
}
}
ColumnLayout {
+6
View File
@@ -0,0 +1,6 @@
pragma Singleton
import Quickshell
Singleton {
}
+3 -8
View File
@@ -52,16 +52,11 @@ RowLayout {
CustomRect {
id: fill
anchors.fill: parent
antialiasing: false
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
color: root.mainColor
implicitHeight: Math.ceil(root.percentage * parent.height)
radius: Appearance.rounding.full
transform: Scale {
origin.y: fill.height
yScale: Math.max(0.001, root.animatedPercentage)
}
}
}
}
+1 -1
View File
@@ -3,6 +3,7 @@
//@ pragma Env QSG_RHI_BACKEND=vulkan
//@ pragma Env QSG_USE_SIMPLE_ANIMATION_DRIVER=0
//@ pragma Env QS_NO_RELOAD_POPUP=1
//@ pragma Env QT_SCALE_FACTOR_ROUNDING_POLICY=Round
import Quickshell
import qs.Modules
import qs.Modules.Wallpaper
@@ -23,7 +24,6 @@ ShellRoot {
Lock {
id: lock
}
Shortcuts {