summaryrefslogtreecommitdiff
path: root/xmake/core/ui/menubar.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/ui/menubar.lua')
-rw-r--r--xmake/core/ui/menubar.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/core/ui/menubar.lua b/xmake/core/ui/menubar.lua
index 1c770d64c..af0e2b593 100644
--- a/xmake/core/ui/menubar.lua
+++ b/xmake/core/ui/menubar.lua
@@ -42,7 +42,10 @@ function menubar:init(name, bounds)
view.init(self, name, bounds)
-- init title
- self._TITLE = ""
+ self._TITLE = "Menu Bar"
+
+ -- init color
+ self:attr_set("color", curses.color_pair("red", "white"))
end
-- exit menubar
@@ -57,9 +60,9 @@ function menubar:draw()
c:move(1, 0):write(self:title())
end
--- do event
-function menubar:do_event(e)
- view.do_event(self, e)
+-- en event
+function menubar:event_on(e)
+ view.event_on(self, e)
end
-- get title