From c5173230f065d68fe261443a420fc87bd633c8e8 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 8 Feb 2019 01:44:57 +0100 Subject: UI: 'pumblend' for cterm (256-color TUI) hl_rgb2cterm_color, hl_cterm2rgb_color were adapted from Vim 8.1 (color2index, cterm_color2rgb). ref: https://github.com/vim/vim/commit/c5cd88554f1e0b2e9ff08d9a0748238dd8340ce1 --- runtime/doc/options.txt | 9 ++++----- runtime/doc/vim_diff.txt | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'runtime/doc') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index f07de55524..4177268780 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4489,12 +4489,11 @@ A jump table for the options with a short description can be found at |Q_op|. *'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. + Enables pseudo-transparency for the |popup-menu|. Valid values are in + the range of 0 for fully opaque popupmenu (disabled) to 100 for fully + transparent background. Values between 0-30 are typically most useful. - UI-dependent. Supported by TUI with 'termguicolors' enabled. + UI-dependent. Works best with RGB colors. 'termguicolors' *'pyxversion'* *'pyx'* 'pyxversion' 'pyx' number (default depends on the build) diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index ae0bd2fdb2..25517e506b 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -189,7 +189,7 @@ Options: for |hl-EndOfBuffer| marker 'inccommand' shows interactive results for |:substitute|-like commands 'listchars' local to window - 'pumblend' semi-transparent popupmenu + 'pumblend' pseudo-transparent popupmenu 'scrollback' 'statusline' supports unlimited alignment sections 'tabline' %@Func@foo%X can call any function on mouse-click -- cgit From e50d0b6fc19fe7555651166b73aff9c3703ef11a Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 12 Feb 2019 10:11:30 +0100 Subject: UI: change implementation of hl_rgb2cterm_color() Replace the implementation cargo-culted from Vim's source with something simpler which "seems to look better" with 'pumblend'. --- runtime/doc/ui.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/doc') diff --git a/runtime/doc/ui.txt b/runtime/doc/ui.txt index 84a24ef2a1..77a829b150 100644 --- a/runtime/doc/ui.txt +++ b/runtime/doc/ui.txt @@ -160,6 +160,7 @@ the editor. 'guifontset' 'guifontwide' 'linespace' + 'pumblend' 'showtabline' 'termguicolors' "ext_*" (all |ui-ext-options|) -- cgit