diff options
| author | Max Christian Pohle | 2019-01-07 19:32:50 +0100 |
|---|---|---|
| committer | Max Christian Pohle | 2019-01-07 19:46:13 +0100 |
| commit | 8a8fc4e8cb95c355abc7e97e69261cd104174a8b (patch) | |
| tree | 7d709a6f30bd548f17dae635860cd6fc961174d3 | |
| parent | ed803af15c2caa1f6e3bcf4454a2e5a354d77bab (diff) | |
| download | vim-8a8fc4e8cb95c355abc7e97e69261cd104174a8b.tar.bz2 vim-8a8fc4e8cb95c355abc7e97e69261cd104174a8b.zip | |
Changed gtk colors and current word hightlighting
not bold and underlined, but only underlined now
| -rw-r--r-- | plugin/max-highlight-word-under-cursor.vim | 2 | ||||
| -rw-r--r-- | 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() | |||
| 11 | let l:currentword = escape(expand('<cword>'), '.') | 11 | let l:currentword = escape(expand('<cword>'), '.') |
| 12 | if(strlen(l:currentword) > 0) | 12 | if(strlen(l:currentword) > 0) |
| 13 | let w:m1=100 | 13 | let w:m1=100 |
| 14 | silent! call matchadd('BoldUnderline', '\<'.l:currentword.'\>', -1, w:m1) | 14 | silent! call matchadd('Underline', '\<'.l:currentword.'\>', -1, w:m1) |
| 15 | endif | 15 | endif |
| 16 | endfunction | 16 | endfunction |
| 17 | 17 | ||
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 | |||
| 47 | } | 47 | } |
| 48 | */ | 48 | */ |
| 49 | 49 | ||
| 50 | |||
| 51 | |||
| 50 | window#vim-main-window > box | 52 | window#vim-main-window > box |
| 51 | { | 53 | { |
| 52 | background:#fff; | 54 | background: currentColor; |
| 53 | border:2px solid #fff; | 55 | border:2px solid transparent; |
| 54 | } | 56 | } |
| 55 | 57 | ||
| 56 | /* within window > box ... */ | 58 | /* within window > box ... */ |
| 57 | menubar#vim-menubar { | 59 | menubar#vim-menubar { |
| 58 | font-family: "monospace", "Hasklug Nerd Font Mono", "Source Code Pro for Powerline", "Source Code Pro", "Roboto"; | 60 | font-family: "monospace"; |
| 59 | font-weight:bold; | ||
| 60 | font-size:8pt; | 61 | font-size:8pt; |
| 61 | background: #fff; | 62 | background: transparent; |
| 63 | color:lighter(currentColor); | ||
| 62 | /* background: linear-gradient(180deg, white 85%, black); */ | 64 | /* background: linear-gradient(180deg, white 85%, black); */ |
| 63 | } | 65 | } |
| 64 | 66 | ||
| 65 | menubar#vim-menubar menuitem { | 67 | menubar#vim-menubar menuitem { |
| 66 | background:transparent; | 68 | background:transparent; |
| 69 | color:mix(currentColor,#fff,0.5); | ||
| 67 | } | 70 | } |
| 68 | 71 | ||
| 72 | |||
| 73 | |||
| 69 | menubar#vim-menubar > menuitem { | 74 | menubar#vim-menubar > menuitem { |
| 70 | padding:.25em; | 75 | padding:.25em; |
| 71 | } | 76 | } |
| 72 | 77 | ||
| 78 | menubar#vim-menubar > menuitem:disabled accelerator | ||
| 79 | { | ||
| 80 | color:#f00; | ||
| 81 | } | ||
| 82 | |||
| 73 | menubar#vim-menubar menuitem box { | 83 | menubar#vim-menubar menuitem box { |
| 74 | padding:.1em .25em; | 84 | padding:.1em .25em; |
| 75 | } | 85 | } |
| @@ -81,38 +91,41 @@ menubar#vim-menubar menuitem window | |||
| 81 | 91 | ||
| 82 | /* opened menu (after being clicked) */ | 92 | /* opened menu (after being clicked) */ |
| 83 | menubar#vim-menubar menuitem window menu { | 93 | menubar#vim-menubar menuitem window menu { |
| 84 | padding:1px; | 94 | background:lighter(currentColor); |
| 85 | background:linear-gradient(90deg, #ccc, #fff); | 95 | padding:0; |
| 86 | 96 | margin:0; | |
| 97 | border:0; | ||
| 87 | } | 98 | } |
| 88 | 99 | ||
| 89 | menubar#vim-menubar menuitem window menu menuitem { | 100 | menubar#vim-menubar menuitem window menu menuitem { |
| 90 | padding:0em; | 101 | padding:0em; |
| 91 | margin:0px; | 102 | margin:0px; |
| 103 | border:0px; | ||
| 92 | } | 104 | } |
| 93 | 105 | ||
| 94 | menubar#vim-menubar menuitem window menu menuitem box { | 106 | menubar#vim-menubar menuitem window menu menuitem box { |
| 95 | background:rgba(255,255,255,.5); | ||
| 96 | padding:.25em; | 107 | padding:.25em; |
| 97 | padding-left:1em; | 108 | padding-left:.5em; |
| 98 | |||
| 99 | } | 109 | } |
| 100 | 110 | ||
| 101 | menubar#vim-menubar menuitem window menu separator { | 111 | menubar#vim-menubar menuitem window menu separator { |
| 102 | margin:0; | 112 | margin:0; |
| 103 | background:#fff; | 113 | background:currentColor; |
| 104 | border-top:1px dotted #666; | 114 | border-top:1px dotted #666; |
| 105 | } | 115 | } |
| 106 | 116 | ||
| 107 | 117 | ||
| 108 | menubar#vim-menubar menuitem:hover { | 118 | menubar#vim-menubar menuitem:hover { |
| 109 | box-shadow:none; | 119 | box-shadow:none; |
| 110 | background:rgba(0,0,0,.2); | 120 | background:darker(currentColor); |
| 111 | color:#000; | 121 | color:#fff; |
| 112 | } | 122 | } |
| 113 | 123 | ||
| 114 | 124 | ||
| 115 | 125 | ||
| 126 | |||
| 127 | |||
| 128 | |||
| 116 | /* | 129 | /* |
| 117 | toolbar button { | 130 | toolbar button { |
| 118 | notebook tab { | 131 | notebook tab { |
