aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/render.c b/render.c
index 35752125..fd721395 100644
--- a/render.c
+++ b/render.c
@@ -312,7 +312,14 @@ color_dim(const struct terminal *term, uint32_t color)
}
}
- return color_blend_towards(color, 0x00000000, conf->dim.amount);
+ const struct color_theme *theme = term->colors.active_theme == COLOR_THEME1
+ ? &conf->colors
+ : &conf->colors2;
+
+ return color_blend_towards(
+ color,
+ theme->dim_blend_towards == DIM_BLEND_TOWARDS_BLACK ? 0x00000000 : 0x00ffffff,
+ conf->dim.amount);
}
static inline uint32_t