From 37f8df882463431888dbaf205ce3ea6488cf4702 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 20 Jan 2019 21:23:17 +0100 Subject: UI: implement 'pumblend' option for semi-transparent popupmenu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Why? - Because we can. - Because the TUI is just another GUI™ - Because it looks kinda nice, and provides useful context like 1 out of 100 times Complies with "don't pay for what you don't use". Some crashes for resizing were unfolded, add tests for those. --- runtime/doc/options.txt | 10 ++++++++++ runtime/doc/vim_diff.txt | 1 + 2 files changed, 11 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index d0643bf5ed..315ca24835 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4486,6 +4486,16 @@ A jump table for the options with a short description can be found at |Q_op|. Insert mode completion. When zero as much space as available is used. |ins-completion-menu|. + *'pumblend'* *'pb'* +'pumblend' 'pb' number (default 0) + global + Enables semi-transparency for the completion popupmenu. Valid values + are in the range from 0 for fully opaque popupmenu (disabled) to 100 + for fully transparent background. Lower values 0-30 are typically most + useful. + + UI-dependent. Supported by TUI with 'termguicolors' enabled. + *'pyxversion'* *'pyx'* 'pyxversion' 'pyx' number (default depends on the build) global diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 33260ab53b..ae0bd2fdb2 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -189,6 +189,7 @@ Options: for |hl-EndOfBuffer| marker 'inccommand' shows interactive results for |:substitute|-like commands 'listchars' local to window + 'pumblend' semi-transparent popupmenu 'scrollback' 'statusline' supports unlimited alignment sections 'tabline' %@Func@foo%X can call any function on mouse-click -- cgit