diff options
author | 2011-11-23 06:25:48 -0500 | |
---|---|---|
committer | 2011-11-23 06:25:48 -0500 | |
commit | 10cd8e9477e9e3ead6c12110bcc9f67924f540cd (patch) | |
tree | ce8045dc01c4261cc54164a9440ebccd6c06b0dd /core/.gui.luadoc | |
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/.gui.luadoc')
-rw-r--r-- | core/.gui.luadoc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/.gui.luadoc b/core/.gui.luadoc index deb39d58..94edc031 100644 --- a/core/.gui.luadoc +++ b/core/.gui.luadoc @@ -107,3 +107,18 @@ function dialog(kind, ...) end -- @usage gui.filteredlist('Title', { 'Foo', 'Bar' }, { 'a', 'b', 'c', 'd' }, -- false, '--output-column', '2') function filteredlist(title, columns, items, int_return, ...) end + +--- +-- Sets the editor theme from the given name. +-- Themes in `_USERHOME/themes/` are checked first, followed by `_HOME/themes/`. +-- If the name contains slashes ('/' on Linux and Mac OSX and '\' on Win32), it +-- is assumed to be an absolute path so `_USERHOME` and `_HOME` are not checked. +-- Throws an error if the theme is not found. Any errors in the theme are +-- printed to `io.stderr`. +-- @param name The name or absolute path of a theme. If nil, sets the default +-- theme. +function set_theme(name) end + +--- +-- Prompts the user to select an editor theme from a filtered list. +function select_theme() end |