From 520c61ec64c001d2c9c9d953051aa58715831731 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Aug 2024 08:22:42 +0200 Subject: Add checkbox, scale more sizes by window scale --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 4ec211b..939866a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,6 +4,7 @@ #include "../include/gui/DropdownButton.hpp" #include "../include/gui/Button.hpp" #include "../include/gui/Entry.hpp" +#include "../include/gui/CheckBox.hpp" #include "../include/gui/ComboBox.hpp" #include "../include/gui/Label.hpp" #include "../include/gui/List.hpp" @@ -208,6 +209,7 @@ static const mgl_monitor* find_monitor_by_cursor_position(mgl::Window &window) { static void add_widgets_to_settings_page(mgl::vec2i window_size, mgl::vec2f settings_page_position, mgl::vec2f settings_page_size, gsr::Page *settings_page, gsr::Page *settings_content_page, const gsr::GsrInfo &gsr_info, const std::vector &audio_devices, std::function settings_back_button_callback) { auto back_button = std::make_unique(&gsr::get_theme().title_font, "Back", mgl::vec2f(window_size.x / 10, window_size.y / 15), gsr::get_theme().scrollable_page_bg_color); back_button->set_position(settings_page_position + mgl::vec2f(settings_page_size.x + window_size.x / 50, 0.0f).floor()); + back_button->set_border_scale(0.003f); back_button->on_click = settings_back_button_callback; settings_page->add_widget(std::move(back_button)); @@ -386,6 +388,11 @@ static void add_widgets_to_settings_page(mgl::vec2i window_size, mgl::vec2f sett file_list->add_widget(std::move(container_list)); } settings_list->add_widget(std::move(file_list)); + + settings_list->add_widget(std::make_unique(&gsr::get_theme().body_font, "Record cursor")); + settings_list->add_widget(std::make_unique(&gsr::get_theme().body_font, "Show recording started notification")); + //settings_list->add_widget(std::make_unique(&gsr::get_theme().body_font, "Show recording stopped notification")); + settings_list->add_widget(std::make_unique(&gsr::get_theme().body_font, "Show video saved notification")); } settings_content_page->add_widget(std::move(settings_list)); } -- cgit v1.2.3