make colours more consistent
This commit is contained in:
parent
47ab37bd28
commit
0c98425463
12 changed files with 8 additions and 1 deletions
|
@ -183,7 +183,14 @@ pub fn texture_option_button<T>(
|
|||
width: tex_size + border * 2.,
|
||||
height: tex_size + border * 2.,
|
||||
};
|
||||
d.draw_rectangle_rec(bounds, widget_bg(&option == current));
|
||||
d.draw_rectangle_rec(
|
||||
bounds,
|
||||
if &option == current {
|
||||
BG_WIDGET_ACTIVE
|
||||
} else {
|
||||
gray(16)
|
||||
},
|
||||
);
|
||||
d.draw_texture_ex(
|
||||
texture,
|
||||
pos + Vector2::new(border, border),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue