Skip to content

Commit

Permalink
ENH: Add (GUI-only) additional palettes "soft" and "softer"
Browse files Browse the repository at this point in the history
These are variants of "extended" with less saturation / higher brightness of background colors (for when the default colors are too distracting).
  • Loading branch information
inkarkat committed Dec 17, 2019
1 parent 3723065 commit ae3370b
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
51 changes: 51 additions & 0 deletions autoload/mark/palettes.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,57 @@ function! mark#palettes#Extended()
\]
endfunction

function! mark#palettes#Soft()
return [
\ { 'guibg':'#d1dbff', 'guifg':'#001250' },
\ { 'guibg':'#ffd1e2', 'guifg':'#500039' },
\ { 'guibg':'#d6ffd1', 'guifg':'#095000' },
\ { 'guibg':'#fff3d1', 'guifg':'#503c00' },
\ { 'guibg':'#e8d1ff', 'guifg':'#280050' },
\ { 'guibg':'#d1feff', 'guifg':'#004e50' },
\ { 'guibg':'#d1edff', 'guifg':'#003050' },
\ { 'guibg':'#d6d1ff', 'guifg':'#0a0050' },
\ { 'guibg':'#f9d1ff', 'guifg':'#460050' },
\ { 'guibg':'#ffe1d1', 'guifg':'#501d00' },
\ { 'guibg':'#e8ffd1', 'guifg':'#265000' },
\ { 'guibg':'#f8ffd1', 'guifg':'#455000' },
\ { 'guibg':'#f8f8f8', 'guifg':'#101010' },
\ { 'guibg':'#f0f0f0', 'guifg':'#202020' },
\ { 'guibg':'#e8e8e8', 'guifg':'#303030' },
\ { 'guibg':'#d8d8d8', 'guifg':'#404040' },
\ { 'guibg':'#c8c8c8', 'guifg':'#505050' },
\ { 'guibg':'#b0b0ff', 'guifg':'#4c4c6f' },
\ { 'guibg':'#ffb0b0', 'guifg':'#5f4141' },
\ { 'guibg':'#b0ffb0', 'guifg':'#415f41' },
\ { 'guibg':'#ffff80', 'guifg':'#4f4f27' },
\]
endfunction
function! mark#palettes#Softer()
return [
\ { 'guibg':'#e9edff', 'guifg':'#001250' },
\ { 'guibg':'#ffe9f1', 'guifg':'#500039' },
\ { 'guibg':'#ebffe9', 'guifg':'#095000' },
\ { 'guibg':'#fff9e9', 'guifg':'#503c00' },
\ { 'guibg':'#f4e9ff', 'guifg':'#280050' },
\ { 'guibg':'#e9feff', 'guifg':'#004e50' },
\ { 'guibg':'#e9f6ff', 'guifg':'#003050' },
\ { 'guibg':'#ebe9ff', 'guifg':'#0a0050' },
\ { 'guibg':'#fce9ff', 'guifg':'#460050' },
\ { 'guibg':'#fff0e9', 'guifg':'#501d00' },
\ { 'guibg':'#f4ffe9', 'guifg':'#265000' },
\ { 'guibg':'#fbffe9', 'guifg':'#455000' },
\ { 'guibg':'#f8f8f8', 'guifg':'#101010' },
\ { 'guibg':'#f2f2f2', 'guifg':'#202020' },
\ { 'guibg':'#ececec', 'guifg':'#303030' },
\ { 'guibg':'#e3e3e3', 'guifg':'#404040' },
\ { 'guibg':'#dcdcdc', 'guifg':'#505050' },
\ { 'guibg':'#c8c8ff', 'guifg':'#4c4c6f' },
\ { 'guibg':'#ffc8c8', 'guifg':'#5f4141' },
\ { 'guibg':'#c8ffc8', 'guifg':'#415f41' },
\ { 'guibg':'#ffff98', 'guifg':'#4f4f27' },
\]
endfunction

function! mark#palettes#Maximum()
let l:palette = [
\ { 'ctermbg':'Cyan', 'ctermfg':'Black', 'guibg':'#8CCBEA', 'guifg':'Black' },
Expand Down
3 changes: 3 additions & 0 deletions doc/mark.txt
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,9 @@ HISTORY *mark-history*
3.1.1 RELEASEME
- Compatibility: After Vim 8.1.1241, a :range outside the number of buffers
(e.g. :99Mark[Name]) causes an error.
- ENH: Add (GUI-only) additional palettes "soft" and "softer" that are
variants of "extended" with less saturation / higher brightness of
background colors (for when the default colors are too distracting).

3.1.0 23-Mar-2019
- ENH: Handle magicness atoms (\V, \m) in regexps entered via <Leader>r or
Expand Down
6 changes: 6 additions & 0 deletions plugin/mark.vim
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ if ! exists('g:mwPalettes')
\ 'extended': function('mark#palettes#Extended'),
\ 'maximum': function('mark#palettes#Maximum')
\}
if has('gui_running')
call extend(g:mwPalettes, {
\ 'soft': function('mark#palettes#Soft'),
\ 'softer': function('mark#palettes#Softer'),
\})
endif
endif

if ! exists('g:mwDirectGroupJumpMappingNum')
Expand Down

0 comments on commit ae3370b

Please sign in to comment.