diff --git a/src/ui/elements/ui_label.cpp b/src/ui/elements/ui_label.cpp index e2302c3..7dc55db 100644 --- a/src/ui/elements/ui_label.cpp +++ b/src/ui/elements/ui_label.cpp @@ -6,6 +6,13 @@ namespace recompui { Label::Label(Element *parent, LabelStyle label_style) : Element(parent) { switch (label_style) { + case LabelStyle::Annotation: + set_color(Color{ 185, 125, 242, 255 }); + set_font_size(18.0f); + set_letter_spacing(2.52f); + set_line_height(18.0f); + set_font_weight(400); + break; case LabelStyle::Small: set_font_size(20.0f); set_letter_spacing(0.0f); diff --git a/src/ui/elements/ui_label.h b/src/ui/elements/ui_label.h index c2150c3..6a013a2 100644 --- a/src/ui/elements/ui_label.h +++ b/src/ui/elements/ui_label.h @@ -5,6 +5,7 @@ namespace recompui { enum class LabelStyle { + Annotation, Small, Normal, Large diff --git a/src/ui/ui_mod_details_panel.cpp b/src/ui/ui_mod_details_panel.cpp index df847a9..4903bf8 100644 --- a/src/ui/ui_mod_details_panel.cpp +++ b/src/ui/ui_mod_details_panel.cpp @@ -55,9 +55,18 @@ ModDetailsPanel::ModDetailsPanel(Element *parent) : Element(parent) { buttons_container = context.create_element(this, FlexDirection::Row, JustifyContent::SpaceAround); buttons_container->set_flex(0.0f, 0.0f); buttons_container->set_padding(16.0f); + buttons_container->set_justify_content(JustifyContent::SpaceBetween); { - enable_toggle = context.create_element(buttons_container); - enable_toggle->add_checked_callback(std::bind(&ModDetailsPanel::enable_toggle_checked, this, std::placeholders::_1)); + enable_container = context.create_element(buttons_container, FlexDirection::Row, JustifyContent::FlexStart); + enable_container->set_align_items(AlignItems::Center); + enable_container->set_gap(16.0f); + { + enable_toggle = context.create_element(enable_container); + enable_toggle->add_checked_callback(std::bind(&ModDetailsPanel::enable_toggle_checked, this, std::placeholders::_1)); + + enable_label = context.create_element