mirror of
https://github.com/BanjoRecomp/BanjoRecomp
synced 2026-06-07 03:17:28 -04:00
Refactor color usage for full theming support from one source of truth (#1)
* Refactor color usage for full theming support from one source of truth * remove unused components * remove old commented out font families * override custom theme in main.cpp
This commit is contained in:
@@ -17,16 +17,16 @@ namespace recompui {
|
||||
set_line_height(20.0f);
|
||||
set_font_weight(400);
|
||||
set_font_style(FontStyle::Normal);
|
||||
set_border_color(Color{ 242, 242, 242, 0 });
|
||||
set_border_color(ThemeColor::Text, 0);
|
||||
set_border_bottom_width(1.0f);
|
||||
set_color(Color{ 255, 255, 255, 153 });
|
||||
set_color(ThemeColor::TextInactive);
|
||||
set_padding_bottom(8.0f);
|
||||
set_text_transform(TextTransform::Uppercase);
|
||||
set_height_auto();
|
||||
hover_style.set_color(Color{ 255, 255, 255, 204 });
|
||||
checked_style.set_color(Color{ 255, 255, 255, 255 });
|
||||
checked_style.set_border_color(Color{ 242, 242, 242, 255 });
|
||||
pulsing_style.set_border_color(Color{ 23, 214, 232, 244 });
|
||||
hover_style.set_color(ThemeColor::WhiteA80);
|
||||
checked_style.set_color(ThemeColor::White);
|
||||
checked_style.set_border_color(ThemeColor::Text);
|
||||
pulsing_style.set_border_color(ThemeColor::SecondaryA80);
|
||||
|
||||
add_style(&hover_style, { hover_state });
|
||||
add_style(&checked_style, { checked_state });
|
||||
|
||||
Reference in New Issue
Block a user