walh-solarized
vim
12
NORMAL.vimrcunixutf-8☰ 0% 0:2
set background=darkcolorscheme walh-solarized
123456789101112
NORMALcode.vimunixutf-8☰50%6:12
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155endfunction
walh-one
vim
12
NORMAL.vimrcunixutf-8☰ 0% 0:2
set background=darkcolorscheme walh-one
123456789101112
NORMALcode.vimunixutf-8☰50%6:12
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155endfunction
walh-nord
vim
12
NORMAL.vimrcunixutf-8☰ 0% 0:2
set background=darkcolorscheme walh-nord
123456789101112
NORMALcode.vimunixutf-8☰50%6:12
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155endfunction
walh-gruvbox
vim
12
NORMAL.vimrcunixutf-8☰ 0% 0:2
set background=darkcolorscheme walh-gruvbox
123456789101112
NORMALcode.vimunixutf-8☰50%6:12
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155endfunction
walh-default
vim
12
NORMAL.vimrcunixutf-8☰ 0% 0:2
set background=darkcolorscheme walh-default
123456789101112
NORMALcode.vimunixutf-8☰50%6:12
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155endfunction
walh-default-legacy
vim
12
NORMAL.vimrcunixutf-8☰ 0% 0:2
set background=darkcolorscheme walh-default-legacy
123456789101112
NORMALcode.vimunixutf-8☰50%6:12
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155endfunction
walh-darcula
vim
12
NORMAL.vimrcunixutf-8☰ 0% 0:2
set background=darkcolorscheme walh-darcula
123456789101112
NORMALcode.vimunixutf-8☰50%6:12
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155endfunction
walh-blue
vim
12
NORMAL.vimrcunixutf-8☰ 0% 0:2
set background=darkcolorscheme walh-blue
123456789101112
NORMALcode.vimunixutf-8☰50%6:12
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155endfunction