diff options
Diffstat (limited to 'core/.view.luadoc')
-rw-r--r-- | core/.view.luadoc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/.view.luadoc b/core/.view.luadoc index 7f1477af..40acda08 100644 --- a/core/.view.luadoc +++ b/core/.view.luadoc @@ -903,6 +903,8 @@ -- -- @field STYLE_LINENUMBER (number, Read-only) -- +-- @field STYLE_MAX (number, Read-only) +-- -- @field UPDATE_H_SCROLL (number, Read-only) -- -- @field UPDATE_V_SCROLL (number, Read-only) @@ -1405,3 +1407,17 @@ function unsplit(view) end -- @see events.BUFFER_BEFORE_SWITCH -- @see events.BUFFER_AFTER_SWITCH function goto_buffer(view, buffer) end + +--- +-- Sets the view's color theme to be string *name* and (optionally) assigns +-- the properties contained in table *props*. +-- User themes override Textadept's default themes when they have the same name. +-- If *name* contains slashes, it is assumed to be an absolute path to a theme +-- instead of a theme name. +-- @param view A view. +-- @param name The name or absolute path of a theme to set. +-- @param props Optional table of theme property assignments that override the +-- theme's defaults. +-- @usage view:set_theme('light', {font = 'Monospace', fontsize = 12}) +-- @name set_theme +function set_theme(view, name, props) end |