aboutsummaryrefslogtreecommitdiff
path: root/src/Theme.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-07 21:27:36 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-07 21:27:36 +0200
commit1a49f86e9841035fe670f6b42a3c988f737267d2 (patch)
tree9059935a17d2599ae9f366975472314a9c89e052 /src/Theme.cpp
parentb709805cfac4d1fe1bfe28e497a3e48e224372a8 (diff)
Add settings icon, close window when pressing the close button
Diffstat (limited to 'src/Theme.cpp')
-rw-r--r--src/Theme.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Theme.cpp b/src/Theme.cpp
index 0849eed..946b4b2 100644
--- a/src/Theme.cpp
+++ b/src/Theme.cpp
@@ -47,7 +47,10 @@ namespace gsr {
if(!theme->body_font.load_from_file(theme->body_font_file, std::max(13.0f, window_size.y * 0.015f)))
goto error;
- if(!theme->combobox_arrow.load_from_file((resources_path + "images/combobox_arrow.png").c_str(), {false, false, false}))
+ if(!theme->combobox_arrow_texture.load_from_file((resources_path + "images/combobox_arrow.png").c_str(), {false, false, false}))
+ goto error;
+
+ if(!theme->settings_texture.load_from_file((resources_path + "images/settings.png").c_str(), {false, false, false}))
goto error;
return true;