diff --git a/Greeter/UserDock.qml b/Greeter/UserDock.qml index 65050b3..6418a93 100644 --- a/Greeter/UserDock.qml +++ b/Greeter/UserDock.qml @@ -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 { diff --git a/Helpers/PixelSnap.qml b/Helpers/PixelSnap.qml new file mode 100644 index 0000000..96372a1 --- /dev/null +++ b/Helpers/PixelSnap.qml @@ -0,0 +1,6 @@ +pragma Singleton + +import Quickshell + +Singleton { +} diff --git a/Modules/Resource.qml b/Modules/Resource.qml index 9d7842d..f927712 100644 --- a/Modules/Resource.qml +++ b/Modules/Resource.qml @@ -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) - } } } } diff --git a/shell.qml b/shell.qml index 40780eb..7f61013 100644 --- a/shell.qml +++ b/shell.qml @@ -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 {