diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-12-01 21:03:59 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-12-01 21:04:17 +0100 |
commit | b0a681964a5db50b970e59a90c89a09f568f5447 (patch) | |
tree | 08179fec8d70dd9c6a359de3c0d64a0dd77876d2 /src/ImageViewer.cpp | |
parent | 4afa53a8bb6b02c07db8c54362311c21444a3ced (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 'src/ImageViewer.cpp')
-rw-r--r-- | src/ImageViewer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ImageViewer.cpp b/src/ImageViewer.cpp index e670d66..e8bc71d 100644 --- a/src/ImageViewer.cpp +++ b/src/ImageViewer.cpp @@ -50,7 +50,7 @@ namespace QuickMedia { image_data[i] = nullptr; page_size[i].loaded = false; } - page_text.set_color(mgl::Color(255, 255, 255, 255)); + page_text.set_color(get_theme().text_color); // TODO: Fix //has_default_cursor = default_cursor.loadFromSystem(sf::Cursor::Arrow); @@ -427,7 +427,9 @@ namespace QuickMedia { const float background_height = font_height + 6.0f; mgl::Rectangle page_text_background(mgl::vec2f(window_size.x, background_height)); - page_text_background.set_color(mgl::Color(0, 0, 0, 150)); + mgl::Color text_background_color = get_theme().shade_color; + text_background_color.a = 225; + page_text_background.set_color(text_background_color); page_text_background.set_position(mgl::vec2f(0.0f, window_size.y - background_height)); window->draw(page_text_background); |