diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-10-27 13:56:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-10-27 13:59:17 +0100 |
commit | 80ff6582a95854712221bf4c84252584566ac041 (patch) | |
tree | 50a4c72cf29b7c30b4bbc7c6b8c73523cd8e4a00 /src/gui/Entry.cpp | |
parent | 59dfd87c21026ef4dc713c3e0648cfa89d534557 (diff) |
Fix window not visible in fullscreen applications
Diffstat (limited to 'src/gui/Entry.cpp')
-rw-r--r-- | src/gui/Entry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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}); |