From 4c4d964eeb8d49a305306761eea406e1829b31ac Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 17 Apr 2019 22:22:26 +0200 Subject: ui: add 'winblend' to support blending of floating windows Also add `hi blend=` attribute to override transparency of indiviual attributes. --- runtime/doc/options.txt | 16 ++++++++++++++++ runtime/doc/syntax.txt | 5 +++++ 2 files changed, 21 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 212e686f96..53581179b6 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4513,6 +4513,13 @@ A jump table for the options with a short description can be found at |Q_op|. the range of 0 for fully opaque popupmenu (disabled) to 100 for fully transparent background. Values between 0-30 are typically most useful. + It is possible to override the level for individual highlights within + the popupmenu using |highlight-blend|. For instance, to enable + transparency but force the current selected element to be fully opaque: > + + :set pumblend=15 + :hi PmenuSel blend=0 +< UI-dependent. Works best with RGB colors. 'termguicolors' *'pyxversion'* *'pyx'* @@ -6693,6 +6700,15 @@ A jump table for the options with a short description can be found at |Q_op|. key is never used for the menu. This option is not used for ; on Win32. + *'winblend'* *'winbl'* +'winblend' 'winbl' number (default 0) + local to window + Enables pseudo-transparency for a floating window. Valid values are in + the range of 0 for fully opaque window (disabled) to 100 for fully + transparent background. Values between 0-30 are typically most useful. + + UI-dependent. Works best with RGB colors. 'termguicolors' + *'window'* *'wi'* 'window' 'wi' number (default screen height - 1) global diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index b60a952def..1373aff891 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -4879,6 +4879,11 @@ guisp={color-name} *highlight-guisp* All values are hexadecimal, range from "00" to "ff". Examples: > :highlight Comment guifg=#11f0c3 guibg=#ff00ff < +blend={integer} *highlight-blend* + Override the blend level for a highlight group within the popupmenu + or floating windows. Only takes effect if 'pumblend' or 'winblend' + is set for the menu or window. See the help at the respective option. + *highlight-groups* *highlight-default* These are the builtin highlighting groups. Note that the highlighting depends on the value of 'background'. You can see the current settings with the -- cgit