diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/Button.cpp | 2 | ||||
-rw-r--r-- | src/gui/CheckBox.cpp | 6 | ||||
-rw-r--r-- | src/gui/ComboBox.cpp | 4 | ||||
-rw-r--r-- | src/gui/DropdownButton.cpp | 12 | ||||
-rw-r--r-- | src/gui/Entry.cpp | 4 | ||||
-rw-r--r-- | src/gui/FileChooser.cpp | 8 | ||||
-rw-r--r-- | src/gui/GsrPage.cpp | 4 | ||||
-rw-r--r-- | src/gui/RadioButton.cpp | 4 | ||||
-rw-r--r-- | src/gui/SettingsPage.cpp | 48 | ||||
-rw-r--r-- | src/gui/Subsection.cpp | 2 |
10 files changed, 47 insertions, 47 deletions
diff --git a/src/gui/Button.cpp b/src/gui/Button.cpp index bccf7b0..fbf5cdd 100644 --- a/src/gui/Button.cpp +++ b/src/gui/Button.cpp @@ -49,7 +49,7 @@ namespace gsr { const bool mouse_inside = mgl::FloatRect(draw_pos, item_size).contains(window.get_mouse_position().to_vec2f()) && !has_parent_with_selected_child_widget(); if(mouse_inside) { - const mgl::Color outline_color = (bg_color == get_theme().tint_color) ? mgl::Color(255, 255, 255) : get_theme().tint_color; + const mgl::Color outline_color = (bg_color == get_color_theme().tint_color) ? mgl::Color(255, 255, 255) : get_color_theme().tint_color; draw_rectangle_outline(window, draw_pos, item_size, outline_color, std::max(1.0f, border_scale * get_theme().window_height)); } } diff --git a/src/gui/CheckBox.cpp b/src/gui/CheckBox.cpp index d602cca..9ae3b41 100644 --- a/src/gui/CheckBox.cpp +++ b/src/gui/CheckBox.cpp @@ -32,8 +32,8 @@ namespace gsr { background_sprite(&get_theme().checkbox_background_texture), circle_sprite(&get_theme().checkbox_circle_texture) { - background_sprite.set_color(get_theme().tint_color); - circle_sprite.set_color(get_theme().tint_color); + background_sprite.set_color(get_color_theme().tint_color); + circle_sprite.set_color(get_color_theme().tint_color); } bool CheckBox::on_event(mgl::Event &event, mgl::Window&, mgl::vec2f offset) { @@ -62,7 +62,7 @@ namespace gsr { apply_animation(); const mgl::Color background_color_unchecked(0, 0, 0, 120); - const mgl::Color background_color_checked = color_multiply(get_theme().tint_color, 0.6f); + const mgl::Color background_color_checked = color_multiply(get_color_theme().tint_color, 0.6f); background_sprite.set_color(interpolate_color(background_color_unchecked, background_color_checked, toggle_animation_value)); background_sprite.set_position(draw_pos.floor()); window.draw(background_sprite); diff --git a/src/gui/ComboBox.cpp b/src/gui/ComboBox.cpp index 96a64bf..62b2086 100644 --- a/src/gui/ComboBox.cpp +++ b/src/gui/ComboBox.cpp @@ -141,7 +141,7 @@ namespace gsr { cursor_inside = mgl::FloatRect(items_draw_pos, item_size).contains(mouse_pos); if(cursor_inside) { mgl::Rectangle item_background(items_draw_pos.floor(), item_size.floor()); - item_background.set_color(get_theme().tint_color); + item_background.set_color(get_color_theme().tint_color); window.draw(item_background); } } @@ -184,7 +184,7 @@ namespace gsr { void ComboBox::draw_item_outline(mgl::Window &window, mgl::vec2f pos, mgl::vec2f size) { const int border_size = std::max(1.0f, border_scale * get_theme().window_height); - const mgl::Color border_color = get_theme().tint_color; + const mgl::Color border_color = get_color_theme().tint_color; draw_rectangle_outline(window, pos.floor(), size.floor(), border_color, border_size); } diff --git a/src/gui/DropdownButton.cpp b/src/gui/DropdownButton.cpp index 28c1b5b..4a2ae3a 100644 --- a/src/gui/DropdownButton.cpp +++ b/src/gui/DropdownButton.cpp @@ -82,7 +82,7 @@ namespace gsr { window.draw(rect); } - const mgl::Color border_color = get_theme().tint_color; + const mgl::Color border_color = get_color_theme().tint_color; // Green line at top { @@ -100,7 +100,7 @@ namespace gsr { window.draw(rect); } - const mgl::Color border_color = get_theme().tint_color; + const mgl::Color border_color = get_color_theme().tint_color; draw_rectangle_outline(window, draw_pos, size, border_color, border_size); } else { // Background @@ -144,14 +144,14 @@ namespace gsr { if(i > 0) { const float separator_height = std::max(1.0f, item_size.y * 0.05f); mgl::Rectangle separator((item_position - mgl::vec2f(0.0f, separator_height * 0.5f)).floor(), mgl::vec2f(item_size.x, separator_height).floor()); - separator.set_color(get_theme().page_bg_color); + separator.set_color(get_color_theme().page_bg_color); window.draw(separator); } if(mouse_inside_item == -1) { const bool inside = mgl::FloatRect(item_position, item_size).contains({ (float)mouse_pos.x, (float)mouse_pos.y }); if(inside) { - draw_rectangle_outline(window, item_position, item_size, get_theme().tint_color, border_size); + draw_rectangle_outline(window, item_position, item_size, get_color_theme().tint_color, border_size); mouse_inside_item = i; } } @@ -212,8 +212,8 @@ namespace gsr { this->activated = activated; if(activated) { - description.set_color(get_theme().tint_color); - icon_sprite.set_color(get_theme().tint_color); + description.set_color(get_color_theme().tint_color); + icon_sprite.set_color(get_color_theme().tint_color); } else { description.set_color(mgl::Color(150, 150, 150)); icon_sprite.set_color(mgl::Color(255, 255, 255)); diff --git a/src/gui/Entry.cpp b/src/gui/Entry.cpp index 1cb8d16..4f318ec 100644 --- a/src/gui/Entry.cpp +++ b/src/gui/Entry.cpp @@ -17,7 +17,7 @@ namespace gsr { static const float caret_width_scale = 0.001f; Entry::Entry(mgl::Font *font, const char *text, float max_width) : text("", *font), max_width(max_width) { - this->text.set_color(get_theme().text_color); + this->text.set_color(get_color_theme().text_color); set_text(text); } @@ -63,7 +63,7 @@ namespace gsr { if(selected) { const int border_size = std::max(1.0f, border_scale * get_theme().window_height); - draw_rectangle_outline(window, draw_pos.floor(), get_size().floor(), get_theme().tint_color, border_size); + draw_rectangle_outline(window, draw_pos.floor(), get_size().floor(), get_color_theme().tint_color, border_size); const int caret_width = std::max(1.0f, caret_width_scale * get_theme().window_height); mgl::Rectangle caret({(float)caret_width, text.get_bounds().size.y}); diff --git a/src/gui/FileChooser.cpp b/src/gui/FileChooser.cpp index d445ccf..a58a582 100644 --- a/src/gui/FileChooser.cpp +++ b/src/gui/FileChooser.cpp @@ -93,7 +93,7 @@ namespace gsr { if(i == selected_item) { mgl::Rectangle selected_item_background(item_size.floor()); selected_item_background.set_position(item_pos.floor()); - selected_item_background.set_color(get_theme().tint_color); + selected_item_background.set_color(get_color_theme().tint_color); window.draw(selected_item_background); } if(!has_parent_with_selected_child_widget() && mouse_over_item == -1 && mgl::FloatRect(item_pos, item_size).contains(mouse_pos)) { @@ -102,7 +102,7 @@ namespace gsr { // selected_item_background.set_color(mgl::Color(20, 20, 20, 150)); // window.draw(selected_item_background); const float border_scale = 0.0015f; - draw_rectangle_outline(window, item_pos.floor(), item_size.floor(), get_theme().tint_color, border_scale * get_theme().window_height); + draw_rectangle_outline(window, item_pos.floor(), item_size.floor(), get_color_theme().tint_color, border_scale * get_theme().window_height); mouse_over_item = i; } @@ -249,7 +249,7 @@ namespace gsr { up_arrow_sprite.set_height((int)(current_directory_background_size.y * 0.8f)); up_arrow_sprite.set_position((draw_pos + mgl::vec2f(file_chooser_body_ptr->get_size().x - up_arrow_sprite.get_size().x, current_directory_background_size.y * 0.5f - up_arrow_sprite.get_size().y * 0.5f)).floor()); const bool mouse_inside_up_arrow = mgl::FloatRect(up_arrow_sprite.get_position(), up_arrow_sprite.get_size()).contains(window.get_mouse_position().to_vec2f()) && !has_parent_with_selected_child_widget(); - up_arrow_sprite.set_color(mouse_inside_up_arrow ? get_theme().tint_color : mgl::Color(255, 255, 255)); + up_arrow_sprite.set_color(mouse_inside_up_arrow ? get_color_theme().tint_color : mgl::Color(255, 255, 255)); window.draw(up_arrow_sprite); current_directory_background_size.x = file_chooser_body_ptr->get_size().x - up_arrow_sprite.get_size().x - up_button_spacing_scale * get_theme().window_height; @@ -258,7 +258,7 @@ namespace gsr { current_directory_background.set_position(draw_pos.floor()); window.draw(current_directory_background); - current_directory_text.set_color(get_theme().text_color); + current_directory_text.set_color(get_color_theme().text_color); current_directory_text.set_position((draw_pos + mgl::vec2f(current_directory_padding.x, current_directory_background_size.y * 0.5f - current_directory_text.get_bounds().size.y * 0.5f)).floor()); window.draw(current_directory_text); } diff --git a/src/gui/GsrPage.cpp b/src/gui/GsrPage.cpp index 7a5615c..e6ee5fc 100644 --- a/src/gui/GsrPage.cpp +++ b/src/gui/GsrPage.cpp @@ -55,12 +55,12 @@ namespace gsr { mgl::Rectangle background(content_page_size); background.set_position(content_page_position); - background.set_color(get_theme().page_bg_color); + background.set_color(get_color_theme().page_bg_color); window.draw(background); mgl::Rectangle border(mgl::vec2f(content_page_size.x, get_border_size()).floor()); border.set_position(content_page_position); - border.set_color(get_theme().tint_color); + border.set_color(get_color_theme().tint_color); window.draw(border); draw_page_label(window, content_page_position); diff --git a/src/gui/RadioButton.cpp b/src/gui/RadioButton.cpp index 925e133..8c937c6 100644 --- a/src/gui/RadioButton.cpp +++ b/src/gui/RadioButton.cpp @@ -72,13 +72,13 @@ namespace gsr { const mgl::vec2f item_size = item.text.get_bounds().size + mgl::vec2f(padding_left + padding_right, padding_top + padding_bottom); mgl::Rectangle background(item_size.floor()); background.set_position(draw_pos.floor()); - background.set_color(i == selected_item ? get_theme().tint_color : mgl::Color(0, 0, 0, 120)); + background.set_color(i == selected_item ? get_color_theme().tint_color : mgl::Color(0, 0, 0, 120)); window.draw(background); const bool mouse_inside = mgl::FloatRect(draw_pos, item_size).contains(window.get_mouse_position().to_vec2f()); if(can_select_item && mouse_inside) { const int border_size = std::max(1.0f, border_scale * get_theme().window_height); - const mgl::Color border_color = i == selected_item ? mgl::Color(255, 255, 255) : get_theme().tint_color; + const mgl::Color border_color = i == selected_item ? mgl::Color(255, 255, 255) : get_color_theme().tint_color; draw_rectangle_outline(window, draw_pos.floor(), item_size.floor(), border_color, border_size); } diff --git a/src/gui/SettingsPage.cpp b/src/gui/SettingsPage.cpp index 9c755cc..fc376ad 100644 --- a/src/gui/SettingsPage.cpp +++ b/src/gui/SettingsPage.cpp @@ -23,7 +23,7 @@ namespace gsr { settings_title_text("Settings", get_theme().title_font) { auto content_page = std::make_unique<GsrPage>(); - content_page->add_button("Back", "back", get_theme().page_bg_color); + content_page->add_button("Back", "back", get_color_theme().page_bg_color); content_page->on_click = [page_stack](const std::string &id) { if(id == "back") page_stack->pop(); @@ -68,14 +68,14 @@ namespace gsr { std::unique_ptr<Widget> SettingsPage::create_record_area(const GsrInfo &gsr_info) { auto record_area_list = std::make_unique<List>(List::Orientation::VERTICAL); - record_area_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Capture target:", get_theme().text_color)); + record_area_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Capture target:", get_color_theme().text_color)); record_area_list->add_widget(create_record_area_box(gsr_info)); return record_area_list; } std::unique_ptr<List> SettingsPage::create_select_window() { auto select_window_list = std::make_unique<List>(List::Orientation::VERTICAL); - select_window_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Select window:", get_theme().text_color)); + select_window_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Select window:", get_color_theme().text_color)); select_window_list->add_widget(std::make_unique<Button>(&get_theme().body_font, "Click here to select a window...", mgl::vec2f(0.0f, 0.0f), mgl::Color(0, 0, 0, 120))); select_window_list_ptr = select_window_list.get(); return select_window_list; @@ -98,14 +98,14 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_area_size() { auto area_size_params_list = std::make_unique<List>(List::Orientation::HORIZONTAL, List::Alignment::CENTER); area_size_params_list->add_widget(create_area_width_entry()); - area_size_params_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "x", get_theme().text_color)); + area_size_params_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "x", get_color_theme().text_color)); area_size_params_list->add_widget(create_area_height_entry()); return area_size_params_list; } std::unique_ptr<List> SettingsPage::create_area_size_section() { auto area_size_list = std::make_unique<List>(List::Orientation::VERTICAL); - area_size_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Area size:", get_theme().text_color)); + area_size_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Area size:", get_color_theme().text_color)); area_size_list->add_widget(create_area_size()); area_size_list_ptr = area_size_list.get(); return area_size_list; @@ -128,14 +128,14 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_video_resolution() { auto area_size_params_list = std::make_unique<List>(List::Orientation::HORIZONTAL, List::Alignment::CENTER); area_size_params_list->add_widget(create_video_width_entry()); - area_size_params_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "x", get_theme().text_color)); + area_size_params_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "x", get_color_theme().text_color)); area_size_params_list->add_widget(create_video_height_entry()); return area_size_params_list; } std::unique_ptr<List> SettingsPage::create_video_resolution_section() { auto video_resolution_list = std::make_unique<List>(List::Orientation::VERTICAL); - video_resolution_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Video resolution:", get_theme().text_color)); + video_resolution_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Video resolution:", get_color_theme().text_color)); video_resolution_list->add_widget(create_video_resolution()); video_resolution_list_ptr = video_resolution_list.get(); return video_resolution_list; @@ -150,7 +150,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_restore_portal_session_section() { auto restore_portal_session_list = std::make_unique<List>(List::Orientation::VERTICAL); - restore_portal_session_list->add_widget(std::make_unique<Label>(&get_theme().body_font, " ", get_theme().text_color)); + restore_portal_session_list->add_widget(std::make_unique<Label>(&get_theme().body_font, " ", get_color_theme().text_color)); restore_portal_session_list->add_widget(create_restore_portal_session_checkbox()); restore_portal_session_list_ptr = restore_portal_session_list.get(); return restore_portal_session_list; @@ -234,7 +234,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_video_quality_box() { auto list = std::make_unique<List>(List::Orientation::VERTICAL); - list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Video quality:", get_theme().text_color)); + list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Video quality:", get_color_theme().text_color)); auto video_quality_box = std::make_unique<ComboBox>(&get_theme().body_font); video_quality_box->add_item("Custom (Constant bitrate, recommended for live streaming)", "custom"); @@ -261,7 +261,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_video_bitrate() { auto video_bitrate_list = std::make_unique<List>(List::Orientation::VERTICAL); - video_bitrate_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Video bitrate (kbps):", get_theme().text_color)); + video_bitrate_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Video bitrate (kbps):", get_color_theme().text_color)); video_bitrate_list->add_widget(create_video_bitrate_entry()); video_bitrate_list_ptr = video_bitrate_list.get(); return video_bitrate_list; @@ -277,7 +277,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_color_range() { auto color_range_list = std::make_unique<List>(List::Orientation::VERTICAL); - color_range_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Color range:", get_theme().text_color)); + color_range_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Color range:", get_color_theme().text_color)); color_range_list->add_widget(create_color_range_box()); color_range_list_ptr = color_range_list.get(); return color_range_list; @@ -323,7 +323,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_video_codec(const GsrInfo &gsr_info) { auto video_codec_list = std::make_unique<List>(List::Orientation::VERTICAL); - video_codec_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Video codec:", get_theme().text_color)); + video_codec_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Video codec:", get_color_theme().text_color)); video_codec_list->add_widget(create_video_codec_box(gsr_info)); video_codec_ptr = video_codec_list.get(); return video_codec_list; @@ -339,7 +339,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_audio_codec() { auto audio_codec_list = std::make_unique<List>(List::Orientation::VERTICAL); - audio_codec_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Audio codec:", get_theme().text_color)); + audio_codec_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Audio codec:", get_color_theme().text_color)); audio_codec_list->add_widget(create_audio_codec_box()); audio_codec_ptr = audio_codec_list.get(); return audio_codec_list; @@ -354,7 +354,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_framerate() { auto framerate_list = std::make_unique<List>(List::Orientation::VERTICAL); - framerate_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Frame rate:", get_theme().text_color)); + framerate_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Frame rate:", get_color_theme().text_color)); framerate_list->add_widget(create_framerate_entry()); return framerate_list; } @@ -370,7 +370,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_framerate_mode() { auto framerate_mode_list = std::make_unique<List>(List::Orientation::VERTICAL); - framerate_mode_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Frame rate mode:", get_theme().text_color)); + framerate_mode_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Frame rate mode:", get_color_theme().text_color)); framerate_mode_list->add_widget(create_framerate_mode_box()); framerate_mode_list_ptr = framerate_mode_list.get(); return framerate_mode_list; @@ -470,13 +470,13 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_save_directory(const char *label) { auto save_directory_list = std::make_unique<List>(List::Orientation::VERTICAL); - save_directory_list->add_widget(std::make_unique<Label>(&get_theme().body_font, label, get_theme().text_color)); + save_directory_list->add_widget(std::make_unique<Label>(&get_theme().body_font, label, get_color_theme().text_color)); auto save_directory_button = std::make_unique<Button>(&get_theme().body_font, get_videos_dir().c_str(), mgl::vec2f(0.0f, 0.0f), mgl::Color(0, 0, 0, 120)); save_directory_button_ptr = save_directory_button.get(); save_directory_button->on_click = [this]() { auto select_directory_page = std::make_unique<GsrPage>(); - select_directory_page->add_button("Save", "save", get_theme().tint_color); - select_directory_page->add_button("Cancel", "cancel", get_theme().page_bg_color); + select_directory_page->add_button("Save", "save", get_color_theme().tint_color); + select_directory_page->add_button("Cancel", "cancel", get_color_theme().page_bg_color); auto file_chooser = std::make_unique<FileChooser>(save_directory_button_ptr->get_text().c_str(), select_directory_page->get_inner_size()); FileChooser *file_chooser_ptr = file_chooser.get(); @@ -506,7 +506,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_container_section() { auto container_list = std::make_unique<List>(List::Orientation::VERTICAL); - container_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Container:", get_theme().text_color)); + container_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Container:", get_color_theme().text_color)); container_list->add_widget(create_container_box()); return container_list; } @@ -520,7 +520,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_replay_time() { auto replay_time_list = std::make_unique<List>(List::Orientation::VERTICAL); - replay_time_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Replay time in seconds:", get_theme().text_color)); + replay_time_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Replay time in seconds:", get_color_theme().text_color)); replay_time_list->add_widget(create_replay_time_entry()); return replay_time_list; } @@ -612,14 +612,14 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_streaming_service_section() { auto streaming_service_list = std::make_unique<List>(List::Orientation::VERTICAL); - streaming_service_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Stream service:", get_theme().text_color)); + streaming_service_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Stream service:", get_color_theme().text_color)); streaming_service_list->add_widget(create_streaming_service_box()); return streaming_service_list; } std::unique_ptr<List> SettingsPage::create_stream_key_section() { auto stream_key_list = std::make_unique<List>(List::Orientation::VERTICAL); - stream_key_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Stream key:", get_theme().text_color)); + stream_key_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Stream key:", get_color_theme().text_color)); auto twitch_stream_key_entry = std::make_unique<Entry>(&get_theme().body_font, "", get_theme().body_font.get_character_size() * 20); twitch_stream_key_entry_ptr = twitch_stream_key_entry.get(); @@ -635,7 +635,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_stream_url_section() { auto stream_url_list = std::make_unique<List>(List::Orientation::VERTICAL); - stream_url_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "URL:", get_theme().text_color)); + stream_url_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "URL:", get_color_theme().text_color)); auto stream_url_entry = std::make_unique<Entry>(&get_theme().body_font, "", get_theme().body_font.get_character_size() * 20); stream_url_entry_ptr = stream_url_entry.get(); @@ -657,7 +657,7 @@ namespace gsr { std::unique_ptr<List> SettingsPage::create_stream_container_section() { auto container_list = std::make_unique<List>(List::Orientation::VERTICAL); - container_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Container:", get_theme().text_color)); + container_list->add_widget(std::make_unique<Label>(&get_theme().body_font, "Container:", get_color_theme().text_color)); container_list->add_widget(create_stream_container_box()); container_list_ptr = container_list.get(); return container_list; diff --git a/src/gui/Subsection.cpp b/src/gui/Subsection.cpp index a03c65d..16d6828 100644 --- a/src/gui/Subsection.cpp +++ b/src/gui/Subsection.cpp @@ -12,7 +12,7 @@ namespace gsr { static const float title_spacing_scale = 0.015f; Subsection::Subsection(const char *title, std::unique_ptr<Widget> inner_widget, mgl::vec2f size) : - label(&get_theme().title_font, title, get_theme().text_color), + label(&get_theme().title_font, title, get_color_theme().text_color), inner_widget(std::move(inner_widget)), size(size) { |