Shading the background didn't work as expected, so not using that
This commit is contained in:
parent
0d1a2d2bc6
commit
945581f515
1 changed files with 8 additions and 0 deletions
|
|
@ -255,6 +255,7 @@ where
|
||||||
let background_color = meta.bg;
|
let background_color = meta.bg;
|
||||||
|
|
||||||
//TODO: get shaded background color from theme
|
//TODO: get shaded background color from theme
|
||||||
|
/*
|
||||||
let mut shade: f32 = 1.0;
|
let mut shade: f32 = 1.0;
|
||||||
if !state.is_focused {
|
if !state.is_focused {
|
||||||
shade = 0.90;
|
shade = 0.90;
|
||||||
|
|
@ -265,6 +266,13 @@ where
|
||||||
background_color.b() as f32 * shade / 255.0,
|
background_color.b() as f32 * shade / 255.0,
|
||||||
background_color.a() 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(
|
renderer.fill_quad(
|
||||||
Quad {
|
Quad {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue