summaryrefslogtreecommitdiff
path: root/xmake/core/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-02 22:37:00 +0800
committerruki <[email protected]>2019-01-02 09:42:04 +0800
commitcc976c3fc70c83373e2984ee26ccbff4df5efa85 (patch)
tree4bfe845d1040fc15a798bffbb8aebbd241f8550d /xmake/core/main.lua
parent59c8c59a2983c329118f7839b9949635a85183f5 (diff)
add plain theme
Diffstat (limited to 'xmake/core/main.lua')
-rw-r--r--xmake/core/main.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index 66aa9b606..cba7555d9 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -172,8 +172,8 @@ force to build in current directory via run `xmake -P .`]], os.projectdir())
end
end
--- the main function
-function main.done()
+-- the main entry function
+function main.entry()
-- init
main._init()
@@ -216,6 +216,14 @@ Or you can add `--root` option or XMAKE_ROOT=y to allow run as root temporarily.
return -1
end
+ -- load theme
+ local theme_inst, errors = theme.load(global.get("theme") or "default")
+ if not theme_inst then
+ utils.error(errors)
+ return -1
+ end
+ colors.theme_set(theme_inst)
+
-- show help?
if main._show_help() then
return 0