improve sizing and dynamic width for view
C++ / fmt (pull_request) Successful in 6s
JS/TS / fmt (pull_request) Successful in 12s
JS/TS / lint (pull_request) Successful in 17s
Python / static (pull_request) Successful in 1m2s
Rust / fmt (pull_request) Successful in 1m5s
C++ / build (pull_request) Successful in 2m36s
Rust / build (pull_request) Successful in 2m27s
Rust / clippy (pull_request) Successful in 1m51s
Python / verify (pull_request) Successful in 3m33s
C++ / clang-tidy (pull_request) Successful in 7m12s

This commit is contained in:
2026-08-16 20:28:21 +02:00
parent 654632128f
commit 4e75f21446
4 changed files with 701 additions and 160 deletions
+3 -5
View File
@@ -15,8 +15,6 @@ CarouselView {
readonly property var values: Wallpapers.query(root.search.text.split(" ").slice(1).join(" "))
required property var visibilities
// Forwarded verbatim as a property of the same name onto every delegate
// instance (the delegate declares `required property PersistentProperties visibilities`).
delegateProperties: ({
visibilities: root.visibilities
})
@@ -29,9 +27,9 @@ CarouselView {
if (!screen)
return 0;
const barMargins = Config.bar.border * 2;
let margins = 0;
let margins = Math.round(screen.width / 6);
if (visibilities.utilities || visibilities.sidebar)
margins = panels.utilities.implicitWidth;
margins = Config.sidebar.sizes.width;
return screen.width - (barMargins + margins) * 2 - Config.bar.rounding * 4;
}
minEdgeWidth: 56
@@ -40,7 +38,7 @@ CarouselView {
delegate: Component {
WallpaperTile {
} // your existing delegate file, unchanged
}
}
Component.onCompleted: {