term+input: refactor: move theme switching into term_theme_* functions

This commit is contained in:
Daniel Eklöf 2025-06-09 07:37:29 +02:00
parent 7347f4beb1
commit 33eefa7b45
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 80 additions and 58 deletions

View file

@ -984,7 +984,9 @@ 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);
void term_theme_switch_to_1(struct terminal *term);
void term_theme_switch_to_2(struct terminal *term);
void term_theme_toggle(struct terminal *term);
static inline void term_reset_grapheme_state(struct terminal *term)
{