diff options
author | 2011-11-23 06:25:48 -0500 | |
---|---|---|
committer | 2011-11-23 06:25:48 -0500 | |
commit | 10cd8e9477e9e3ead6c12110bcc9f67924f540cd (patch) | |
tree | ce8045dc01c4261cc54164a9440ebccd6c06b0dd /core/init.lua | |
parent | 1859dff605a32d9e78a36c14239129579d9fc6e4 (diff) | |
download | textadept-10cd8e9477e9e3ead6c12110bcc9f67924f540cd.tar.gz textadept-10cd8e9477e9e3ead6c12110bcc9f67924f540cd.zip |
Added theme utilities, modified light and dark themes, and removed scite theme.
Added gui.set_theme() and gui.select_theme() theming utilities.
All new light and dark themes. Moved old classic themes to the wiki.
Diffstat (limited to 'core/init.lua')
-rw-r--r-- | core/init.lua | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/core/init.lua b/core/init.lua index 97628b33..9dac66fb 100644 --- a/core/init.lua +++ b/core/init.lua @@ -15,18 +15,7 @@ require 'keys' _LEXERPATH = _USERHOME..'/lexers/?.lua;'.._HOME..'/lexers' -_THEME = 'light' -local f = io.open(_USERHOME..'/theme', 'rb') -if f then - local theme = f:read('*line'):match('[^\r\n]+') - f:close() - if theme and #theme > 0 then _THEME = theme end -end -if not _THEME:find('[/\\]') then - local theme = _THEME - _THEME = _USERHOME..'/themes/'..theme - if not lfs.attributes(_THEME) then _THEME = _HOME..'/themes/'..theme end -end +gui.set_theme() -- LuaDoc is in core/._G.luadoc. function user_dofile(filename) |