config: add initial-color-theme=1|2

This option selects which color theme to use by default. I.e. at
startup, and after a reset.

This is useful with combined theme files, where a single file defines
e.g. both a dark and light version of the theme.
This commit is contained in:
Daniel Eklöf 2025-04-21 12:19:11 +02:00
parent 10e7f29149
commit bc5b716668
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 58 additions and 15 deletions

View file

@ -190,6 +190,11 @@ struct color_theme {
} use_custom;
};
enum which_color_theme {
COLOR_THEME1,
COLOR_THEME2,
};
struct config {
char *term;
char *shell;
@ -305,6 +310,7 @@ struct config {
struct color_theme colors;
struct color_theme colors2;
enum which_color_theme initial_color_theme;
struct {
enum cursor_style style;