mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-02 01:40:13 -05:00
key-bindings: add bindings to switch between color themes
* color-theme-switch-1: select the primary color theme * color-theme-switch-2: select the alternative color theme * color-theme-toggle: toggle between the primary and alternative color themes
This commit is contained in:
parent
1423babc35
commit
6bc91b5e28
8 changed files with 102 additions and 11 deletions
|
|
@ -405,6 +405,7 @@ struct colors {
|
|||
uint32_t selection_fg;
|
||||
uint32_t selection_bg;
|
||||
bool use_custom_selection;
|
||||
enum { COLOR_THEME1, COLOR_THEME2 } active_theme;
|
||||
};
|
||||
|
||||
struct terminal {
|
||||
|
|
@ -982,6 +983,8 @@ void term_enable_size_notifications(struct terminal *term);
|
|||
void term_disable_size_notifications(struct terminal *term);
|
||||
void term_send_size_notification(struct terminal *term);
|
||||
|
||||
void term_theme_apply(struct terminal *term, const struct color_theme *theme);
|
||||
|
||||
static inline void term_reset_grapheme_state(struct terminal *term)
|
||||
{
|
||||
#if defined(FOOT_GRAPHEME_CLUSTERING)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue