diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/Button.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/Button.cpp b/src/gui/Button.cpp index d7df26a..1436f86 100644 --- a/src/gui/Button.cpp +++ b/src/gui/Button.cpp @@ -71,6 +71,12 @@ namespace gsr { rect.set_color(border_color); window.draw(rect); } + } else { + // Background + mgl::Rectangle rect(size); + rect.set_position(position); + rect.set_color(mgl::Color(20, 20, 20, 225)); + window.draw(rect); } } }
\ No newline at end of file |