fix: blobs now allow to be drawn in device pixels to stay sharp
C++ / fmt (pull_request) Failing after 5s
C++ / build (pull_request) Failing after 10s
C++ / clang-tidy (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 9s
JS/TS / lint (pull_request) Successful in 25s
Python / static (pull_request) Successful in 34s
Rust / build (pull_request) Successful in 51s
Python / verify (pull_request) Failing after 1m25s
Rust / fmt (pull_request) Successful in 39s
Rust / clippy (pull_request) Successful in 59s

This commit is contained in:
2026-10-30 01:52:33 +01:00
parent 78a9577209
commit c5608dc9b9
30 changed files with 794 additions and 435 deletions
+4 -4
View File
@@ -4,6 +4,7 @@ import QtQuick
import Quickshell
import qs.Components
import ZShell.Config
import ZShell
Item {
id: root
@@ -36,7 +37,7 @@ Item {
const diff = parent.width - Math.floor(off + content.nonAnimWidth);
if (diff < 0)
return off + diff;
return Math.floor(Math.max(off, 0));
return ZUtils.snap(Math.max(off, 0), root);
}
y: {
if (horizontal)
@@ -46,12 +47,11 @@ Item {
const diff = parent.height - Math.floor(off + content.nonAnimHeight);
if (diff < 0)
return off + diff;
return Math.max(off, 0);
return ZUtils.snap(Math.max(off, 0), root);
}
Behavior on offsetScale {
Anim {
}
Anim {}
}
Behavior on x {
enabled: !root.horizontal || root.offsetScale < 1
+3 -2
View File
@@ -2,6 +2,7 @@ import Quickshell
import QtQuick
import qs.Components
import ZShell.Config
import ZShell
Item {
id: root
@@ -26,8 +27,8 @@ Item {
detachedMode = "";
}
implicitHeight: nonAnimHeight
implicitWidth: nonAnimWidth
implicitHeight: ZUtils.snap(nonAnimHeight, root)
implicitWidth: ZUtils.snap(nonAnimWidth, root)
Behavior on implicitHeight {
enabled: root.offsetScale < 1