With a background image, menus use the surface transparency of Appearance (82% by default) instead of at least 92%, and they keep the blur. Hovered rows and controls in the work area, hovered menu rows, and the workspace button use the new --rs-hover-bg token. With an image, it is a 6% veil of the strong text color. The image stays visible, and the hover shows over light and dark image areas. Without an image, nothing changes. Silver Serpent dim text is now #c2c6cc. It keeps 4.5:1 contrast on a hovered row over a white image. UI-061 replaces the image rule of UI-043. Card 05b9bfa1.
172 lines
9.1 KiB
Markdown
172 lines
9.1 KiB
Markdown
# Appearance and custom themes
|
|
|
|
[RuneStone](../../README.md) · [User guide](../user-guide.md)
|
|
|
|
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.
|
|
|
|
## Choose a color theme
|
|
|
|
| Theme | Appearances |
|
|
| --- | --- |
|
|
| RuneStone | Light and dark |
|
|
| Claude | Light and dark |
|
|
| Sakura | Light only |
|
|
| Harvest Moon, Crimson Pilot, Silver Serpent | Dark only |
|
|
|
|
Select a theme card to use that theme. A check mark shows the current theme. In the cards, the arrow keys move to the next theme and select it.
|
|
|
|
Each named theme has its own fonts and syntax colors. Fonts come from your computer. RuneStone does not download fonts.
|
|
|
|
## Adjust transparency
|
|
|
|
**Transparent surfaces** tints work areas with a [background](#show-a-background) and compatible plugin surfaces.
|
|
Without a background image, menus are opaque. With an image, menus use the same transparency as other surfaces 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.
|
|
|
|
## Show a background
|
|
|
|
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**.
|
|
|
|
### 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 shows the Project Management boards 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
|
|
|
|
1. Select the theme that you want to start from.
|
|
2. Choose **Edit theme**. The theme editor opens as a tab in the workspace window.
|
|
3. Change a color with its swatch or its hex value. The window shows each change at once.
|
|
4. Choose **Save**.
|
|
|
|
A built-in theme does not change. **Save** creates a custom theme from it, with only the colors that you changed. The built-in theme stays its base.
|
|
|
|
- Each color shows its lowest contrast result. A warning icon marks a color that fails a [readability rule](../ui-color.md#readability-rules). Point to the result to see the failed checks.
|
|
- The reset button returns a color to the value of the base theme.
|
|
- **Discard** returns to the saved colors. **Duplicate** saves a copy and selects it.
|
|
- If you close the tab without **Save**, the window returns to the saved theme.
|
|
|
|
## Create a theme file
|
|
|
|
1. Select the theme and appearance that you want to start from.
|
|
2. Choose **Export theme template**.
|
|
3. Edit the saved JSON file in a text editor.
|
|
4. Choose **Install theme** and select the file.
|
|
|
|
The template contains every color and font of the theme. A custom theme has one fixed mode: light or dark.
|
|
|
|
A theme file can also be short. It gives only the colors that differ from its `base` theme. The base theme gives all other colors and its fonts.
|
|
|
|
Example (a short theme file that changes two colors of Harvest Moon):
|
|
|
|
```json
|
|
{
|
|
"schema": 3,
|
|
"id": "harbor",
|
|
"name": "Harbor",
|
|
"mode": "dark",
|
|
"base": "harvest-moon",
|
|
"colors": {
|
|
"accent": "#00c8ff",
|
|
"link": "#5cd6ff"
|
|
}
|
|
}
|
|
```
|
|
|
|
### Theme file rules
|
|
|
|
| Field | Rule |
|
|
| --- | --- |
|
|
| File | JSON, smaller than 64 KiB |
|
|
| `schema` | `3`. RuneStone also imports schema 1 and 2 files and converts them. A schema 1 file gives the palette of the current appearance. |
|
|
| `id` | Starts with a lowercase letter. Lowercase letters, numbers, and hyphens. Up to 64 characters. A theme with the same ID replaces the installed theme. |
|
|
| `name` | Up to 80 characters |
|
|
| `mode` | `light` or `dark` |
|
|
| `base` | Optional. The ID of a built-in theme that has a palette in `mode`: `default` (RuneStone), `claude`, `sakura`, `harvest-moon`, `crimson-pilot`, or `silver-serpent`. Without `base`, RuneStone is the base. |
|
|
| `colors` | The colors that differ from the base theme. Each value is a hexadecimal color with 3, 4, 6, or 8 digits. |
|
|
| `fonts` | Optional. Font stacks for `ui`, `prose`, `heading`, and `mono`, such as `"mono": "Cascadia Mono, monospace"`. Without a stack, the base theme gives it. |
|
|
|
|
An unknown key or a color that is not valid stops the installation with an error.
|
|
Some colors come from other colors when neither the file nor the base theme gives them. For example, `link` and `focus` come from `accent`.
|
|
Font stacks name fonts that are installed on the computer. A theme file cannot install fonts or contain scripts, style rules, or plugin code.
|
|
|
|
### Color keys
|
|
|
|
| Keys | Use |
|
|
| --- | --- |
|
|
| `bg`, `bg-elevated`, `bg-active`, `border` | The page, side panes and menus, hover fills, and borders |
|
|
| `text`, `text-dim`, `text-strong` | Normal, secondary, and prominent text |
|
|
| `accent`, `accent-2`, `accent-dim`, `accent-deep` | Theme colors for active states, indicators, and icons |
|
|
| `link`, `focus`, `on-accent` | Link text, keyboard focus outlines, and text on an accent fill |
|
|
| `selection`, `item-selection-bg`, `line-highlight`, `highlight`, `scrim` | Text selection, selected rows, the current line in Source, highlighted text, and the backdrop behind dialogs |
|
|
| `error`, `warn`, `warn-hot`, `ok`, `special` | Status and special content |
|
|
| `syntax-keyword`, `syntax-string`, `syntax-number`, `syntax-comment`, `syntax-type`, `syntax-function` | Code keywords, values, comments, types, and functions |
|
|
| `syntax-property`, `syntax-variable`, `syntax-constant`, `syntax-punctuation`, `syntax-heading` | Code properties, variables, constants, punctuation, and Markdown headings |
|
|
| `ansi-black` to `ansi-white`, `ansi-bright-black` to `ansi-bright-white` | The 16 terminal colors: black, red, green, yellow, blue, magenta, cyan, and white, and a bright variant of each |
|
|
|
|
Schema 1 and 2 files used other names for some code colors. RuneStone converts them: `syntax-local` to `syntax-variable`, `syntax-instance` to `syntax-property`, and `syntax-global` to `syntax-constant` and `syntax-punctuation`. Source never used `syntax-parameter` and `syntax-static`, so RuneStone ignores them.
|
|
|
|
Before you share a theme, check text, links, focus outlines, selections, and surfaces with a background image.
|
|
Keep informative text and symbols opaque. See the [functional color requirements](../ui-color.md).
|
|
|
|
## Share or remove a theme
|
|
|
|
To share a custom theme, select it and choose **Export theme template**. The other person installs the JSON file with **Install theme**.
|
|
**Remove custom theme** removes the theme and selects the RuneStone colors.
|