Make Background a native feature

- Background replaces the Background Slideshow plugin and the background image of Appearance. It shows a folder as a slideshow, or one image.
- It is on by default. Its module loads at launch only when a folder or an image is chosen.
- Rust keeps the one folder in background-folder.json. The interface never sends a path. Eight background_* commands replace the six deprecated backgrounds_* commands.
- The first start moves the slideshow folder and settings, and keeps the saved image as the image source.
- One blur worker with a cache, fewer folder reads, and a decode before each fade. The hub writes only the changed properties.
- Remove the deprecated folder methods of api.backgrounds. set, get, and subscribe stay for the Project Management plugin.
- Show the view buttons in the workbench test without text, after UI-056.
- Update the tests, the measurement tool, the docs, and UI-057.
This commit is contained in:
Knotty Wyvern
2026-10-29 17:25:17 -07:00
parent 115c32fa92
commit ab868bbe8e
81 changed files with 3179 additions and 812 deletions
+3
View File
@@ -88,6 +88,8 @@
</header>
{#if message}<p class="error" role="alert">{message}</p>{/if}
<main class="pages">
<!-- A blank browser tab shows the background of the Background feature (src/lib/theme/background.css). -->
<div class="workarea-background" aria-hidden="true"></div>
{#each $pluginEditors as view (view.key)}
{@const position = bounds[view.key]}
<!-- svelte-ignore a11y_no_static_element_interactions (Input selects its browser pane.) -->
@@ -114,6 +116,7 @@
.header :global(.tabs) { flex: 0 1 auto; min-width: 80px; height: 100%; border-bottom: 0; }
.window-drag-space { flex: 1; min-width: 120px; align-self: stretch; }
.pages { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.workarea-background { position: absolute; inset: 0; }
.pane { position: absolute; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.pane.inactive { display: none; }
.pane.split { border: 1px solid var(--rs-border); }