aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/ui.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-01-20 21:23:17 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2019-02-07 16:43:51 +0100
commit37f8df882463431888dbaf205ce3ea6488cf4702 (patch)
tree4ebb1634d1d0e16ae3d16d56c22e63602ef0efe4 /src/nvim/api/ui.c
parented0e96cd28f870c4a580c9e8ab74340fecc90fcb (diff)
downloadrneovim-37f8df882463431888dbaf205ce3ea6488cf4702.tar.gz
rneovim-37f8df882463431888dbaf205ce3ea6488cf4702.tar.bz2
rneovim-37f8df882463431888dbaf205ce3ea6488cf4702.zip
UI: implement 'pumblend' option for semi-transparent popupmenu
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.
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r--src/nvim/api/ui.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c
index a934f18dbf..91009c950f 100644
--- a/src/nvim/api/ui.c
+++ b/src/nvim/api/ui.c
@@ -357,10 +357,7 @@ static void remote_ui_default_colors_set(UI *ui, Integer rgb_fg,
Integer cterm_fg, Integer cterm_bg)
{
if (!ui->ui_ext[kUITermColors]) {
- bool dark = (*p_bg == 'd');
- rgb_fg = rgb_fg != -1 ? rgb_fg : (dark ? 0xFFFFFF : 0x000000);
- rgb_bg = rgb_bg != -1 ? rgb_bg : (dark ? 0x000000 : 0xFFFFFF);
- rgb_sp = rgb_sp != -1 ? rgb_sp : 0xFF0000;
+ HL_SET_DEFAULT_COLORS(rgb_fg, rgb_bg, rgb_sp);
}
Array args = ARRAY_DICT_INIT;
ADD(args, INTEGER_OBJ(rgb_fg));