-# Default highlight groups {{{
-verbatim
-if !has('gui_running') && get(g:, '@optionprefix_transp_bg', 0)
-endverbatim
- # Transparent background
- Normal fg1 none
- CursorLineNr yellow none
- FoldColumn brightblack none
- SignColumn fg2 none
- VertSplit bg3 none
-verbatim
-else
-endverbatim
- # Opaque background
- Normal fg1 bg0
- CursorLineNr yellow bg1
- FoldColumn brightblack bg1
- SignColumn fg2 bg1
- VertSplit bg3 bg0
-verbatim
-endif
-endverbatim
+; Default highlight groups {{{
+#if !has('gui_running') && get(g:, '@optionprefix_dimmed', 0)
+ ; dimmed colours
+ #if !has('gui_running') && &background ==# 'light'
+ #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
+ Normal realblack none
+ #else
+ Normal realblack bg0
+ #endif
+ #elseif !has('gui_running') && &background ==# 'dark'
+ #if get(g:, '@optionprefix_transparent', 0)
+ Normal brightwhite none
+ #else
+ Normal brightwhite bg0
+ #endif
+ #endif
+ Conceal darkblue none
+ Constant darkgreen none
+ Directory darkblue none bold
+ Error darkred none t=reverse,bold g=standout,bold
+ Function darkcyan none
+ Identifier darkblue none
+ ModeMsg darkblue none
+ MoreMsg darkgreen none
+ PreProc darkcyan none
+ Statement darkred none
+ Special darkyellow none
+ Todo darkcyan none reverse
+ WarningMsg darkred none
+ WildMenu darkblue bg2 bold
+#else
+ ; default colours
+ #if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
+ Normal fg1 none
+ #else
+ Normal fg1 bg0
+ #endif
+ Conceal blue none
+ Constant green none
+ Directory blue none bold
+ Error red none t=reverse,bold g=standout,bold
+ Function cyan none
+ Identifier blue none
+ ModeMsg blue none
+ MoreMsg green none
+ PreProc cyan none
+ Statement red none
+ Special yellow none
+ Todo cyan none reverse
+ WarningMsg red none
+ WildMenu blue bg2 bold
+#endif
+#if !has('gui_running') && get(g:, '@optionprefix_transparent', 0)
+ ; transparent background
+ LineNr bg2 none
+ CursorLineNr yellow none
+ FoldColumn darkgray none
+ SignColumn none none
+ VertSplit bg3 none
+ Pmenu fg1 none
+ PmenuSbar fg2 none
+ PmenuSel fg2 none reverse
+ PmenuThumb none fg2
+#else
+ ; opaque background
+ LineNr bg2 bg1
+ CursorLineNr yellow bg1
+ FoldColumn darkgray bg1
+ SignColumn none bg1
+ VertSplit bg3 bg0
+ Pmenu fg1 bg2
+ PmenuSbar none bg2
+ PmenuSel bg1 fg2 bold
+ PmenuThumb none bg4
+#endif