Move dropdown button text and icon code to dropdown button class

This commit is contained in:
dec05eba
2024-08-01 18:38:06 +02:00
parent 5d40409fc6
commit 6624db873c
13 changed files with 644 additions and 102 deletions

View File

@@ -1,4 +1,5 @@
#include "../../include/gui/Button.hpp"
#include "../../include/Theme.hpp"
#include <mglpp/graphics/Rectangle.hpp>
#include <mglpp/window/Window.hpp>
#include <mglpp/window/Event.hpp>
@@ -40,7 +41,7 @@ namespace gsr {
}
const int border_size = 5;
const mgl::Color border_color(118, 185, 0);
const mgl::Color border_color = gsr::get_theme().tint_color;
// Green line at top
{