From ee6d30175a8eba6f4e6ea295c417065363455fad Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Fri, 16 Feb 2024 15:29:53 -0500 Subject: [PATCH] Fix colors in GUI --- vim/colors/palette.vim | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/vim/colors/palette.vim b/vim/colors/palette.vim index edf2add..336c423 100644 --- a/vim/colors/palette.vim +++ b/vim/colors/palette.vim @@ -1,4 +1,23 @@ -if &t_Co >= 256 +if has("gui_running") + let g:cBlack = '#000000' + let g:cWhite = '#ffffff' +' + let g:cGray1 = '#dadada' + let g:cGray2 = '#c6c6c6' + let g:cGray3 = '#6c6c6c' + let g:cGray4 = '#4e4e4e' +' + let g:cBlue = '#87d7ff' + let g:cRed = '#d75f5f' + let g:cYellow = '#ffd787' +' + let g:cDarkBlue = '#5fafd7' + let g:cDarkRed = '#af5f5f' + let g:cDarkYellow = '#d7af5f' +' + let g:cLightBg = '#303030' + let g:cDarkBg = '#262626' +elseif &t_Co >= 256 let g:cBlack = '0' "#000000 let g:cWhite = '15' "#ffffff