From 10cd8e9477e9e3ead6c12110bcc9f67924f540cd Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 23 Nov 2011 06:25:48 -0500 Subject: 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. --- core/.gui.luadoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'core/.gui.luadoc') 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 -- cgit v1.2.3