Themes (app colors)
Themes change the colors of the whole OneComme app (9.2 and later).
Besides the standard light theme and dark theme, you can choose from 25 built-in themes. You can also create and add a theme with colors of your own.
Choosing a theme
Open the top-right menu > Settings > UI tab and choose from "Theme".
The theme you select is applied right away, so you can compare themes as you choose.
The choices are listed in the following order.
| Choice | Description |
|---|---|
| Light theme / Dark theme | The standard color schemes. |
| Built-in themes | Themes that come with OneComme. |
| Theme files | Themes placed in the themes folder (sorted by name). |
Adding a theme
A theme is a json file that describes colors (a theme file). There are two ways to add one.
Import from the Theme Generator
- Click "Create a theme" next to "Theme" to open the Theme Generator.
- Decide the colors and the name, then click "Import into OneComme".
- OneComme shows a confirmation. Click "Add".
The added theme is saved, and the app switches to it.
Note
If a theme with the same name already exists, it is overwritten.
If you do not recognize the confirmation, choose "Cancel".
Put a file in the themes folder
- Click "Open folder" next to "Theme" to open the
themesfolder. - Put the theme file (
.json) in the folder. - The file name (without
.json) appears in the "Theme" choices.
The choices are updated when the contents of the folder change, even while the settings screen is open.
TIPS
Only .json files placed directly in the themes folder are loaded. Files in subfolders are not loaded.
Theme files are also included in backups.
Creating a theme
In the Theme Generator, you can decide the colors while looking at a preview.
- You can start from a built-in theme and change its colors.
- You can load a theme file you made and edit it again.
Choose a base theme and set the following six colors. The light / dark base is decided by the base theme.
| Color | Where it is used |
|---|---|
| Background | The whole window (header and tables too) |
| Panel | Menus and dialogs |
| Text | Text and icons |
| Accent | Buttons, switches and links |
| Border | Dividers and split bars |
| Comment background | Comment list and gift list |
Colors you do not set use the standard color of the base (light / dark). If you do not set the comment background, it is the same color as the background.
Theme file format
You can also create a theme file with a text editor.
{
"format": "onecomme-color-theme",
"version": 1,
"author": "someone",
"base": "dark",
"colors": {
"background": "#1e1e2e",
"surface": "#313244",
"text": "#cdd6f4",
"accent": "#cba6f7",
"border": "#45475a",
"commentBackground": "#181825"
}
}
| Item | Description |
|---|---|
format | Always "onecomme-color-theme" (required). |
version | Always 1 (required). |
base | The light / dark base. Specify "light" or "dark" (required). |
author | The author name (optional). |
colors | The colors. Any of the six items can be omitted. Values are written in the form #rrggbb. |
The items of colors correspond to the colors as follows.
| Item | Color |
|---|---|
background | Background |
surface | Panel |
text | Text |
accent | Accent |
border | Border |
commentBackground | Comment background |
The name of the theme is not written in the file. The file name (without .json) is the name of the theme.