This is documentation for the upcoming version (9.2), which is still in development. Content may change before release.

See the same page for the current release.

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.

ChoiceDescription
Light theme / Dark themeThe standard color schemes.
Built-in themesThemes that come with OneComme.
Theme filesThemes 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

  1. Click "Create a theme" next to "Theme" to open the Theme Generator.
  2. Decide the colors and the name, then click "Import into OneComme".
  3. 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

  1. Click "Open folder" next to "Theme" to open the themes folder.
  2. Put the theme file (.json) in the folder.
  3. 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.

ColorWhere it is used
BackgroundThe whole window (header and tables too)
PanelMenus and dialogs
TextText and icons
AccentButtons, switches and links
BorderDividers and split bars
Comment backgroundComment 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"
  }
}
ItemDescription
formatAlways "onecomme-color-theme" (required).
versionAlways 1 (required).
baseThe light / dark base. Specify "light" or "dark" (required).
authorThe author name (optional).
colorsThe 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.

ItemColor
backgroundBackground
surfacePanel
textText
accentAccent
borderBorder
commentBackgroundComment background

The name of the theme is not written in the file. The file name (without .json) is the name of the theme.