feat: high contrast theme updates
This commit is contained in:
parent
50d2104485
commit
508753ae69
6 changed files with 119 additions and 38 deletions
|
|
@ -25,9 +25,10 @@ impl Container {
|
|||
base: Srgba,
|
||||
on: Srgba,
|
||||
mut small_widget: Srgba,
|
||||
is_high_contrast: bool,
|
||||
) -> Self {
|
||||
let mut divider_c = on;
|
||||
divider_c.alpha = 0.2;
|
||||
divider_c.alpha = if is_high_contrast { 0.5 } else { 0.2 };
|
||||
|
||||
small_widget.alpha = 0.25;
|
||||
|
||||
|
|
|
|||
|
|
@ -894,6 +894,7 @@ impl ThemeBuilder {
|
|||
text_steps_array.as_deref(),
|
||||
),
|
||||
get_small_widget_color(base_index, 5, &neutral_steps, &p_ref.neutral_6),
|
||||
is_high_contrast,
|
||||
);
|
||||
|
||||
container
|
||||
|
|
@ -968,6 +969,7 @@ impl ThemeBuilder {
|
|||
text_steps_array.as_deref(),
|
||||
),
|
||||
get_small_widget_color(bg_index, 5, &neutral_steps, &p_ref.neutral_6),
|
||||
is_high_contrast,
|
||||
),
|
||||
primary,
|
||||
secondary: {
|
||||
|
|
@ -1014,6 +1016,7 @@ impl ThemeBuilder {
|
|||
text_steps_array.as_deref(),
|
||||
),
|
||||
get_small_widget_color(base_index, 5, &neutral_steps, &p_ref.neutral_6),
|
||||
is_high_contrast,
|
||||
)
|
||||
},
|
||||
accent: Component::colored_component(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue