mirror of
https://github.com/BanjoRecomp/BanjoRecomp
synced 2026-06-11 12:39:51 -04:00
recompui::theme namespace + border constants
This commit is contained in:
@@ -93,11 +93,11 @@ namespace recompui {
|
||||
queue_update();
|
||||
}
|
||||
else {
|
||||
circle_element->set_background_color(ThemeColor::TextDim);
|
||||
circle_element->set_background_color(theme::color::TextDim);
|
||||
}
|
||||
}
|
||||
else {
|
||||
circle_element->set_background_color(ThemeColor::BW25);
|
||||
circle_element->set_background_color(theme::color::BW25);
|
||||
}
|
||||
break;
|
||||
case EventType::Navigate:
|
||||
@@ -118,12 +118,12 @@ namespace recompui {
|
||||
if (enable_active) {
|
||||
set_cursor(Cursor::Pointer);
|
||||
set_focusable(true);
|
||||
circle_element->set_background_color(ThemeColor::TextDim);
|
||||
circle_element->set_background_color(theme::color::TextDim);
|
||||
}
|
||||
else {
|
||||
set_cursor(Cursor::None);
|
||||
set_focusable(false);
|
||||
circle_element->set_background_color(ThemeColor::BW25);
|
||||
circle_element->set_background_color(theme::color::BW25);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -162,7 +162,7 @@ namespace recompui {
|
||||
bar_element->set_width(100.0f, Unit::Percent);
|
||||
bar_element->set_height(2.0f);
|
||||
bar_element->set_margin_top(8.0f);
|
||||
bar_element->set_background_color(ThemeColor::WhiteA20);
|
||||
bar_element->set_background_color(theme::color::WhiteA20);
|
||||
bar_element->add_pressed_callback([this](float x, float y){ bar_pressed(x, y); focus(); });
|
||||
bar_element->add_dragged_callback([this](float x, float y, recompui::DragPhase phase){ bar_dragged(x, y, phase); focus(); });
|
||||
|
||||
@@ -173,8 +173,8 @@ namespace recompui {
|
||||
circle_element->set_margin_top(-7.0f);
|
||||
circle_element->set_margin_right(-8.0f);
|
||||
circle_element->set_margin_left(-8.0f);
|
||||
circle_element->set_background_color(ThemeColor::TextDim);
|
||||
circle_element->set_border_radius(8.0f);
|
||||
circle_element->set_background_color(theme::color::TextDim);
|
||||
circle_element->set_border_radius(theme::border::radius_sm);
|
||||
circle_element->add_pressed_callback([this](float, float){ focus(); });
|
||||
circle_element->add_dragged_callback([this](float x, float y, recompui::DragPhase phase){ circle_dragged(x, y, phase); focus(); });
|
||||
circle_element->set_cursor(Cursor::Pointer);
|
||||
|
||||
Reference in New Issue
Block a user