diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-06-05 22:00:31 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-06-05 22:00:31 -0400 |
commit | 20833c35fd6d580c934cb6c3f6e7b9a2c39ac99b (patch) | |
tree | 370beb025b4868a475efa682373968c5b7a76a95 /core/.view.luadoc | |
parent | 0dc1a169161395987f28a11b9dc72ac7c04f605d (diff) |
Renamed `buffer:set_theme()` to `view:set_theme()` and fixed a bug with splits.
Also improved separate themes-per-view functionality.
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 |