aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 8ce9bd4b..ac7922a7 100644
--- a/terminal.c
+++ b/terminal.c
@@ -4819,3 +4819,11 @@ term_theme_toggle(struct terminal *term)
term_damage_margins(term);
render_refresh(term);
}
+
+const struct color_theme *
+term_theme_get(const struct terminal *term)
+{
+ return term->colors.active_theme == COLOR_THEME_DARK
+ ? &term->conf->colors_dark
+ : &term->conf->colors_light;
+}