From b0a681964a5db50b970e59a90c89a09f568f5447 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 1 Dec 2022 21:03:59 +0100 Subject: Add more texts to config font size, set colors for all text from theme, add dark and light theme, choose icons based on theme brightness Remove matrix logo from matrix chat --- include/Config.hpp | 3 +++ include/Entry.hpp | 4 ++++ include/Theme.hpp | 1 - 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Config.hpp b/include/Config.hpp index 48e6213..3a172d2 100644 --- a/include/Config.hpp +++ b/include/Config.hpp @@ -21,6 +21,7 @@ namespace QuickMedia { int progress_font_size = 14; int replies_font_size = 14; int embedded_load_font_size = 14; + int loading_text_font_size = 30; }; struct InputConfig { @@ -50,6 +51,8 @@ namespace QuickMedia { struct MatrixConfig { std::vector known_homeservers; std::string gpg_user_id; + int room_name_font_size = 18; + int room_description_font_size = 12; }; struct PeertubeConfig { diff --git a/include/Entry.hpp b/include/Entry.hpp index 00c22a4..f4cbc5d 100644 --- a/include/Entry.hpp +++ b/include/Entry.hpp @@ -37,6 +37,9 @@ namespace QuickMedia { float get_height(); const std::string& get_text() const; + void set_background_color(mgl::Color color); + void set_padding_scale(float scale); + OnEntrySubmit on_submit_callback; bool draw_background; private: @@ -45,5 +48,6 @@ namespace QuickMedia { RoundedRectangle background; mgl::Text placeholder; bool mouse_left_inside; + float padding_scale = 1.0f; }; } \ No newline at end of file diff --git a/include/Theme.hpp b/include/Theme.hpp index 91856eb..72ebafb 100644 --- a/include/Theme.hpp +++ b/include/Theme.hpp @@ -13,7 +13,6 @@ namespace QuickMedia { mgl::Color faded_text_color = mgl::Color(255, 255, 255, 179); mgl::Color shade_color = mgl::Color(28, 32, 39); mgl::Color selected_color = mgl::Color(55, 60, 68); - mgl::Color card_item_background_color = mgl::Color(28, 32, 39); mgl::Color replies_text_color = mgl::Color(129, 162, 190); mgl::Color placeholder_text_color = mgl::Color(255, 255, 255, 100); mgl::Color image_loading_background_color = mgl::Color(52, 58, 70); -- cgit v1.2.3