diff options
Diffstat (limited to 'xmake/core/theme/theme.lua')
| -rw-r--r-- | xmake/core/theme/theme.lua | 6 |
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 |
