aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-31 17:29:32 +0200
committerdec05eba <dec05eba@protonmail.com>2022-03-31 17:29:32 +0200
commit663a36df4aaea583e7cd56ad35b26d05f6151746 (patch)
tree69a31599aa2be1f3f366d144f793b5f1f512447b /src/gui
parent2aea0635f46d4356953b1885bf6f8510cb5b038f (diff)
Show overlay as a window on top (override redirect and always on top) instead of a child window and capture window and render that
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/Button.cpp6
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