aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-10-16 11:43:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-03-02 08:39:09 +0000
commitdea10e2e48162c6ab48ca564ceeca88dea886a04 (patch)
tree04f41254ed11545b45565ae413e6839006490d71 /terminal.c
parentSpawning new terminal with --config from parent instance (diff)
Add support for background blur
This patch adds a new config option: colors{,2}.blur=no|yes. When enabled, transparent background are also blurred. Note that this requires the brand new ext-background-effect-v1 protocol, and specifically, that the compositor implements the blur effect.
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;
+}