mirror of
https://github.com/lifepillar/vim-solarized8.git
synced 2025-12-10 15:57:02 +00:00
*Really* fallback to 16 colors when t_Co < 256.
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||||
" Website: https://github.com/lifepillar/vim-solarized8
|
" Website: https://github.com/lifepillar/vim-solarized8
|
||||||
" License: OSI approved MIT license
|
" License: OSI approved MIT license
|
||||||
" Last Updated: Wed Jun 20 09:03:07 2018
|
" Last Updated: Thu Jun 21 12:32:13 2018
|
||||||
|
|
||||||
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
||||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
||||||
@@ -20,7 +20,7 @@ endif
|
|||||||
let g:colors_name = 'solarized8'
|
let g:colors_name = 'solarized8'
|
||||||
|
|
||||||
" 256-color variant
|
" 256-color variant
|
||||||
if !get(g:, 'solarized_use16', 0)
|
if !get(g:, 'solarized_use16', &t_Co < 256)
|
||||||
if &background ==# 'dark'
|
if &background ==# 'dark'
|
||||||
" Color similarity table (dark background)
|
" Color similarity table (dark background)
|
||||||
" yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279]
|
" yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||||
" Website: https://github.com/lifepillar/vim-solarized8
|
" Website: https://github.com/lifepillar/vim-solarized8
|
||||||
" License: OSI approved MIT license
|
" License: OSI approved MIT license
|
||||||
" Last Updated: Wed Jun 20 09:03:11 2018
|
" Last Updated: Thu Jun 21 12:32:17 2018
|
||||||
|
|
||||||
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
||||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
||||||
@@ -20,7 +20,7 @@ endif
|
|||||||
let g:colors_name = 'solarized8_flat'
|
let g:colors_name = 'solarized8_flat'
|
||||||
|
|
||||||
" 256-color variant
|
" 256-color variant
|
||||||
if !get(g:, 'solarized_use16', 0)
|
if !get(g:, 'solarized_use16', &t_Co < 256)
|
||||||
if &background ==# 'dark'
|
if &background ==# 'dark'
|
||||||
" Color similarity table (dark background)
|
" Color similarity table (dark background)
|
||||||
" yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279]
|
" yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||||
" Website: https://github.com/lifepillar/vim-solarized8
|
" Website: https://github.com/lifepillar/vim-solarized8
|
||||||
" License: OSI approved MIT license
|
" License: OSI approved MIT license
|
||||||
" Last Updated: Wed Jun 20 09:03:14 2018
|
" Last Updated: Thu Jun 21 12:32:20 2018
|
||||||
|
|
||||||
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
||||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
||||||
@@ -20,7 +20,7 @@ endif
|
|||||||
let g:colors_name = 'solarized8_high'
|
let g:colors_name = 'solarized8_high'
|
||||||
|
|
||||||
" 256-color variant
|
" 256-color variant
|
||||||
if !get(g:, 'solarized_use16', 0)
|
if !get(g:, 'solarized_use16', &t_Co < 256)
|
||||||
if &background ==# 'dark'
|
if &background ==# 'dark'
|
||||||
" Color similarity table (dark background)
|
" Color similarity table (dark background)
|
||||||
" yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279]
|
" yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||||
" Website: https://github.com/lifepillar/vim-solarized8
|
" Website: https://github.com/lifepillar/vim-solarized8
|
||||||
" License: OSI approved MIT license
|
" License: OSI approved MIT license
|
||||||
" Last Updated: Wed Jun 20 09:03:17 2018
|
" Last Updated: Thu Jun 21 12:32:24 2018
|
||||||
|
|
||||||
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
||||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
||||||
@@ -20,7 +20,7 @@ endif
|
|||||||
let g:colors_name = 'solarized8_low'
|
let g:colors_name = 'solarized8_low'
|
||||||
|
|
||||||
" 256-color variant
|
" 256-color variant
|
||||||
if !get(g:, 'solarized_use16', 0)
|
if !get(g:, 'solarized_use16', &t_Co < 256)
|
||||||
if &background ==# 'dark'
|
if &background ==# 'dark'
|
||||||
" Color similarity table (dark background)
|
" Color similarity table (dark background)
|
||||||
" yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279]
|
" yellow: GUI=#b58900/rgb(181,137, 0) Term=136 #af8700/rgb(175,135, 0) [delta=1.465279]
|
||||||
|
|||||||
Reference in New Issue
Block a user