summaryrefslogtreecommitdiff
path: root/xmake/core/theme/theme.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-03 22:35:18 +0800
committerruki <[email protected]>2019-01-03 09:31:51 +0800
commit22a3a1c21f41205fa5ea71a4fd0a0d9caa2b8963 (patch)
treedd5690fcf3b4168f0ba36e0c00aa84b82d728c1f /xmake/core/theme/theme.lua
parentec40e9e8f26530aef3fc785a8c138b4710046475 (diff)
add build.progress_format style
Diffstat (limited to 'xmake/core/theme/theme.lua')
-rw-r--r--xmake/core/theme/theme.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/theme/theme.lua b/xmake/core/theme/theme.lua
index 5256de788..e5c109ae5 100644
--- a/xmake/core/theme/theme.lua
+++ b/xmake/core/theme/theme.lua
@@ -88,6 +88,7 @@ function theme._apis()
{
-- theme.set_xxx
"theme.set_color"
+ , "theme.set_text"
}
}
end
@@ -154,6 +155,11 @@ function theme.load(name)
return instance
end
+-- get the current theme instance
+function theme.instance()
+ return theme._THEME
+end
+
-- get the given theme configuration
function theme.get(name)
local instance = theme._THEME