Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/button.cc')
-rw-r--r--src/ui/button.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/button.cc b/src/ui/button.cc
index cba7732..e9a40b9 100644
--- a/src/ui/button.cc
+++ b/src/ui/button.cc
@@ -11,6 +11,7 @@
#include "core/application.h"
#include "core/commandbuffer.h"
#include "sys/sys.h"
+#include "ui/ui.h"
#include "ui/paint.h"
#include "ui/button.h"
@@ -84,7 +85,12 @@ void Button::draw()
} else {
Paint::set_color(palette()->foreground());
}
+
Paint::draw_label(global_location(), size(), font(), text(), alignment());
+
+ if (enabled() && has_mouse_focus()) {
+ root()->set_pointer("action", Palette::Highlight);
+ }
}
bool Button::on_keypress(const int key, const unsigned int modifier)