From 8a8fc4e8cb95c355abc7e97e69261cd104174a8b Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 7 Jan 2019 19:32:50 +0100 Subject: Changed gtk colors and current word hightlighting not bold and underlined, but only underlined now --- plugin/max-highlight-word-under-cursor.vim | 2 +- utils/gtk-3.0.css | 41 ++++++++++++++++++++---------- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/plugin/max-highlight-word-under-cursor.vim b/plugin/max-highlight-word-under-cursor.vim index d557b40..2e7f5a0 100644 --- a/plugin/max-highlight-word-under-cursor.vim +++ b/plugin/max-highlight-word-under-cursor.vim @@ -11,7 +11,7 @@ function! HighlightWordUnderCursor() let l:currentword = escape(expand(''), '.') if(strlen(l:currentword) > 0) let w:m1=100 - silent! call matchadd('BoldUnderline', '\<'.l:currentword.'\>', -1, w:m1) + silent! call matchadd('Underline', '\<'.l:currentword.'\>', -1, w:m1) endif endfunction diff --git a/utils/gtk-3.0.css b/utils/gtk-3.0.css index b2adaf6..c31c8bf 100644 --- a/utils/gtk-3.0.css +++ b/utils/gtk-3.0.css @@ -47,29 +47,39 @@ menu menuitem:backdrop, menu menuitem:backdrop:hover } */ + + window#vim-main-window > box { - background:#fff; - border:2px solid #fff; + background: currentColor; + border:2px solid transparent; } /* within window > box ... */ menubar#vim-menubar { - font-family: "monospace", "Hasklug Nerd Font Mono", "Source Code Pro for Powerline", "Source Code Pro", "Roboto"; - font-weight:bold; + font-family: "monospace"; font-size:8pt; - background: #fff; + background: transparent; + color:lighter(currentColor); /* background: linear-gradient(180deg, white 85%, black); */ } menubar#vim-menubar menuitem { background:transparent; + color:mix(currentColor,#fff,0.5); } + + menubar#vim-menubar > menuitem { padding:.25em; } +menubar#vim-menubar > menuitem:disabled accelerator +{ + color:#f00; +} + menubar#vim-menubar menuitem box { padding:.1em .25em; } @@ -81,38 +91,41 @@ menubar#vim-menubar menuitem window /* opened menu (after being clicked) */ menubar#vim-menubar menuitem window menu { - padding:1px; - background:linear-gradient(90deg, #ccc, #fff); - + background:lighter(currentColor); + padding:0; + margin:0; + border:0; } menubar#vim-menubar menuitem window menu menuitem { padding:0em; margin:0px; + border:0px; } menubar#vim-menubar menuitem window menu menuitem box { - background:rgba(255,255,255,.5); padding:.25em; - padding-left:1em; - + padding-left:.5em; } menubar#vim-menubar menuitem window menu separator { margin:0; - background:#fff; + background:currentColor; border-top:1px dotted #666; } menubar#vim-menubar menuitem:hover { box-shadow:none; - background:rgba(0,0,0,.2); - color:#000; + background:darker(currentColor); + color:#fff; } + + + /* toolbar button { notebook tab { -- cgit v1.2.3