aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-12-01 21:03:59 +0100
committerdec05eba <dec05eba@protonmail.com>2022-12-01 21:04:17 +0100
commitb0a681964a5db50b970e59a90c89a09f568f5447 (patch)
tree08179fec8d70dd9c6a359de3c0d64a0dd77876d2 /include
parent4afa53a8bb6b02c07db8c54362311c21444a3ced (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/Config.hpp3
-rw-r--r--include/Entry.hpp4
-rw-r--r--include/Theme.hpp1
3 files changed, 7 insertions, 1 deletions
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<std::string> 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);