From 945581f515c1e93518f9a29a8ad5e42d2fb616fd Mon Sep 17 00:00:00 2001 From: Mattias Eriksson Date: Wed, 17 Jan 2024 17:08:26 +0100 Subject: [PATCH] Shading the background didn't work as expected, so not using that --- src/terminal_box.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/terminal_box.rs b/src/terminal_box.rs index 63d3a2a..7dbc865 100644 --- a/src/terminal_box.rs +++ b/src/terminal_box.rs @@ -255,6 +255,7 @@ where let background_color = meta.bg; //TODO: get shaded background color from theme + /* let mut shade: f32 = 1.0; if !state.is_focused { shade = 0.90; @@ -265,6 +266,13 @@ where background_color.b() as f32 * shade / 255.0, background_color.a() as f32 * shade / 255.0, ); + */ + let background = Color::new( + background_color.r() as f32 / 255.0, + background_color.g() as f32 / 255.0, + background_color.b() as f32 / 255.0, + background_color.a() as f32 / 255.0, + ); renderer.fill_quad( Quad {