improve image caching for better performance
C++ / fmt (pull_request) Successful in 4s
JS/TS / fmt (pull_request) Successful in 27s
JS/TS / lint (pull_request) Successful in 33s
Python / fmt (pull_request) Successful in 27s
Python / lint (pull_request) Successful in 30s
Python / test (pull_request) Successful in 59s
Python / typecheck (pull_request) Failing after 1m5s
C++ / build (pull_request) Successful in 2m26s
Rust / build (pull_request) Successful in 1m30s
Rust / fmt (pull_request) Successful in 1m12s
Python / buildcheck (pull_request) Successful in 2m19s
Rust / clippy (pull_request) Successful in 1m56s
C++ / clang-tidy (pull_request) Successful in 4m1s

This commit is contained in:
2026-08-14 19:49:48 +02:00
parent 88a2808a47
commit ec80adf0a5
3 changed files with 150 additions and 54 deletions
+14 -2
View File
@@ -233,7 +233,19 @@ Item {
}
implicitHeight: tileHeight + Tokens.spacing.small / 2 + Tokens.padding.large + Tokens.padding.normal
implicitWidth: screen ? Math.max(0, screen.width - Config.bar.rounding * 50 - panels.bar.implicitWidth * 2) : 0
implicitWidth: {
if (!screen)
return 0;
const barMargins = Config.bar.border * 2;
let margins = 0;
if (visibilities.utilities || visibilities.sidebar)
margins = panels.utilities.implicitWidth;
const maxWidth = screen.width - (barMargins + margins) * 2 - Config.bar.rounding * 4;
return maxWidth;
}
width: implicitWidth
Component.onCompleted: {
const idx = Wallpapers.list.findIndex(w => w.path === Wallpapers.actualCurrent);
@@ -248,7 +260,7 @@ Item {
anchors.fill: parent
boundsBehavior: Flickable.StopAtBounds
cacheBuffer: root.width * 10
cacheBuffer: root.width
clip: false
currentIndex: root.centerBlockStart
displayMarginBeginning: root.arrangement.effectiveExtraWidth