gilvt

Themes (⌘, → “Appearance”)

Themes are chosen on the “◐ Appearance” page of the ⌘, settings window (the first page in its sidebar; the window opens on the page you last viewed, “Appearance” the first time). The overlay picker previously opened from the menu gilvt → Themes… has been removed.

  • Search and filter: type a theme name in the search box; “All / Dark / Light” switches the filter.
  • Fixed / Follow System: “Fixed” always uses one theme; “Follow System” has a light slot and a dark slot and switches automatically when the system appearance changes.
  • Selecting applies it: click an item, use ↑↓, or press ⏎ (selects the highlighted row), and every window (the settings window included) switches to it at once; there is no separate preview-and-revert step; Esc only clears the search. Window chrome, status colors and the window title bar all follow (with a fixed theme the title bar is forced to light / dark; with Follow System the system decides). The preview on the right shows the highlighted theme’s 16 colors, sample output and the four status markers; when [colors] overrides are present, the page says so.
  • Write-back: about 300 ms after the selection settles, it is written to config.toml (only the theme key changes, comments are kept, and symlinked configuration files work too); holding ↑↓ does not write the file at every step.
  • Write-back failures: when the configuration file is read-only or similar, the theme applies only for this run, and red text at the top of the page first gives the reason (such as “config.toml is read-only; not written”), with the file path on the next line. When the configuration file has a syntax error, the page is read-only, and you can pick again only after fixing it.
  • Editing the configuration by hand: edit theme or [colors] in config.toml directly; it takes effect as soon as you save, without a restart. A misspelled name also brings up an error banner.

Your own themes: put theme files (plain text, one key = value per line, the same format as the built-in themes) into ~/.config/gilvt/themes/; the file name is the theme name. They take precedence over built-in themes of the same name (exact name match first, then case-insensitive). In config.toml, write:

theme = "My Theme"                                   # fixed
# theme = { light = "gilvt Light", dark = "My Theme" }   # follow system
[colors]                                             # optional: override individual colors on top of the theme
# background = "#1b1b26"
# palette = { 1 = "#ff5f5f" }

[colors] supports background, foreground, cursor, cursor_text, selection_background, selection_foreground and palette (0–15). When a name is misspelled or a theme file is invalid, an error banner appears at the top with a “did you mean …” suggestion, and gilvt uses the default theme for the time being. Status colors come from the theme’s ANSI 3 / 1 / 4 / 2 and are corrected automatically when contrast is insufficient; with the default theme, the Markdown preview keeps GitHub colors.