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:
+61
-9
@@ -2,7 +2,7 @@
|
||||
|
||||
[RuneStone](../../README.md) · [User guide](../user-guide.md)
|
||||
|
||||
This guide explains how to choose colors, set a background image, and edit, create, or share a custom theme.
|
||||
This guide explains how to choose colors, show a background, and edit, create, or share a custom theme.
|
||||
|
||||
Open **Settings → Appearance**. Appearance settings apply to all workspaces on this computer and to all open windows.
|
||||
|
||||
@@ -21,20 +21,72 @@ Each named theme has its own fonts and syntax colors. Fonts come from your compu
|
||||
|
||||
## Adjust transparency
|
||||
|
||||
**Transparent surfaces** tints work areas with a background image and compatible plugin surfaces.
|
||||
**Transparent surfaces** tints work areas with a [background](#show-a-background) and compatible plugin surfaces.
|
||||
Menus stay opaque. With a background image, menus are at least 92% opaque and blur the image.
|
||||
Set **Transparency amount** from 0% to 100%. The default is 18%.
|
||||
Turn off **Transparent surfaces** for opaque surfaces. Text and icons stay opaque in both cases.
|
||||
|
||||
## Set a background image
|
||||
## Show a background
|
||||
|
||||
1. Choose **Choose image…** and select a PNG, JPEG, WebP, or GIF file up to 50 MiB.
|
||||
2. Set **Image size** to **Fill**, **Fit**, or **Actual size**.
|
||||
3. Set **Image position**.
|
||||
4. Set **Image overlay** from -100% to 100%. Negative values lighten the image, and positive values darken it.
|
||||
The **Background** section shows a folder of images as a slideshow, or one image, behind the workspace.
|
||||
Set **Background source** to **Folder**, **Image**, or **None**.
|
||||
|
||||
The image shows in new tabs. RuneStone keeps it on this computer.
|
||||
The Project Management plugin can keep a separate image for a board. The Background Slideshow plugin can replace the image for a time.
|
||||
### Show a folder as a slideshow
|
||||
|
||||
1. Set **Background source** to **Folder**, or choose **Choose folder…**.
|
||||
2. Select a folder with PNG, JPEG, GIF, or WebP images. Each image can be up to 64 MiB.
|
||||
3. Set **Seconds per image** from 1 to 86,400.
|
||||
4. Set **Image order** to **File name** or **Random**.
|
||||
|
||||
**File name** uses natural order, so `2.png` comes before `10.png`. **Random** does not repeat the current image when the folder has other images.
|
||||
Images fade over two seconds. When your system reduces motion, the images change without a fade.
|
||||
RuneStone reads the folder again when a window gets the focus, after a settings change, and after every 10 images.
|
||||
Subfolders, links, and unreadable files do not show. When no image loads, the background goes away, and RuneStone tries again after the image time, at least 5 seconds.
|
||||
**Remove folder** forgets the folder. It changes no file.
|
||||
|
||||
### Show one image
|
||||
|
||||
1. Set **Background source** to **Image**, or choose **Choose image…**.
|
||||
2. Select a PNG, JPEG, WebP, or GIF file up to 50 MiB.
|
||||
|
||||
RuneStone keeps the image on this computer. **Remove image** deletes the saved copy. It does not change your file.
|
||||
|
||||
### Set the layout
|
||||
|
||||
- **Image size**: **Fill**, **Fit**, or **Actual size**.
|
||||
- **Image position**: one of nine positions.
|
||||
- **Image overlay**: from -100% to 100%. Negative values lighten the image, and positive values darken it.
|
||||
|
||||
The folder and the image keep separate layouts.
|
||||
|
||||
### Change one image of the folder
|
||||
|
||||
Portrait images show in full over a blurred fill by default. To change one image:
|
||||
|
||||
1. Open **Per-image appearance**.
|
||||
2. Choose the image in **Image**. Type part of its name to find it.
|
||||
3. Set **Fit**, **Position**, and **Overlay**. The preview shows the result.
|
||||
4. Choose **Save image appearance**.
|
||||
|
||||
**Reset image appearance** returns the image to the folder layout.
|
||||
RuneStone keeps these settings in `.runestone-backgrounds.json` in the image folder. When another program changed the file, choose **Reload image settings** and make the change again.
|
||||
|
||||
### Choose where the background shows
|
||||
|
||||
Under **Show the background in**, select **The workspace and new tabs**, **All Project Management boards**, or one board.
|
||||
The board list comes from the Project Management plugin of the current workspace. A saved board that is not available shows as **Unavailable board**, so that you can clear it.
|
||||
A blank tab of a browser window also shows the background.
|
||||
|
||||
### Next and Pause
|
||||
|
||||
- **Next background image** in the command palette (Ctrl+Shift+P) or **Next image** in the settings shows the next image in every window.
|
||||
- **Pause background** in the command palette or **Pause slideshow** in the settings keeps the current image. Use the same command to resume.
|
||||
|
||||
### Turn Background off
|
||||
|
||||
Background is on by default. To turn it off, open **Settings → Features** and clear **Background**.
|
||||
Off removes the background at once in all windows, and menus become opaque again. Your folder, image, and settings stay.
|
||||
With **None** or without a folder or an image, Background does not load.
|
||||
|
||||
## Edit a theme
|
||||
|
||||
|
||||
Reference in New Issue
Block a user