Skip to content

Commit

Permalink
feat(palette): optimize diff colors
Browse files Browse the repository at this point in the history
  • Loading branch information
sainnhe committed Nov 23, 2020
1 parent f9bff48 commit b0a8e37
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.

- Remove duplicate docs in README.
- Remove Anti-996-LICENSE.
- Optimize diff colors.

### Fixed

Expand Down
26 changes: 13 additions & 13 deletions autoload/edge.vim
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ function! edge#get_palette(style) "{{{
\ 'bg4': ['#414550', '238', 'Grey'],
\ 'bg_grey': ['#828a98', '246', 'LightGrey'],
\ 'bg_red': ['#ec7279', '203', 'Red'],
\ 'diff_red': ['#473536', '52', 'DarkRed'],
\ 'diff_red': ['#55393d', '52', 'DarkRed'],
\ 'bg_green': ['#a0c980', '107', 'Green'],
\ 'diff_green': ['#384034', '22', 'DarkGreen'],
\ 'diff_green': ['#394634', '22', 'DarkGreen'],
\ 'bg_blue': ['#6cb6eb', '110', 'Blue'],
\ 'diff_blue': ['#323e47', '17', 'DarkBlue'],
\ 'diff_blue': ['#354157', '17', 'DarkBlue'],
\ 'bg_purple': ['#d38aea', '176', 'Magenta'],
\ 'diff_purple':['#433948', '54', 'DarkMagenta'],
\ 'diff_yellow':['#4e432f', '54', 'DarkMagenta'],
\ 'fg': ['#c5cdd9', '250', 'White'],
\ 'red': ['#ec7279', '203', 'Red'],
\ 'yellow': ['#deb974', '179', 'Yellow'],
Expand All @@ -58,13 +58,13 @@ function! edge#get_palette(style) "{{{
\ 'bg4': ['#404455', '238', 'Grey'],
\ 'bg_grey': ['#7e869b', '246', 'LightGrey'],
\ 'bg_red': ['#ec7279', '203', 'Red'],
\ 'diff_red': ['#473536', '52', 'DarkRed'],
\ 'diff_red': ['#55393d', '52', 'DarkRed'],
\ 'bg_green': ['#a0c980', '107', 'Green'],
\ 'diff_green': ['#384034', '22', 'DarkGreen'],
\ 'diff_green': ['#394634', '22', 'DarkGreen'],
\ 'bg_blue': ['#6cb6eb', '110', 'Blue'],
\ 'diff_blue': ['#323e47', '17', 'DarkBlue'],
\ 'diff_blue': ['#354157', '17', 'DarkBlue'],
\ 'bg_purple': ['#d38aea', '176', 'Magenta'],
\ 'diff_purple':['#433948', '54', 'DarkMagenta'],
\ 'diff_yellow':['#4e432f', '54', 'DarkMagenta'],
\ 'fg': ['#c5cdd9', '250', 'White'],
\ 'red': ['#ec7279', '203', 'Red'],
\ 'yellow': ['#deb974', '179', 'Yellow'],
Expand All @@ -84,13 +84,13 @@ function! edge#get_palette(style) "{{{
\ 'bg4': ['#3f445b', '238', 'Grey'],
\ 'bg_grey': ['#7a819d', '246', 'LightGrey'],
\ 'bg_red': ['#ec7279', '203', 'Red'],
\ 'diff_red': ['#473536', '52', 'DarkRed'],
\ 'diff_red': ['#55393d', '52', 'DarkRed'],
\ 'bg_green': ['#a0c980', '107', 'Green'],
\ 'diff_green': ['#384034', '22', 'DarkGreen'],
\ 'diff_green': ['#394634', '22', 'DarkGreen'],
\ 'bg_blue': ['#6cb6eb', '110', 'Blue'],
\ 'diff_blue': ['#323e47', '17', 'DarkBlue'],
\ 'diff_blue': ['#354157', '17', 'DarkBlue'],
\ 'bg_purple': ['#d38aea', '176', 'Magenta'],
\ 'diff_purple':['#433948', '54', 'DarkMagenta'],
\ 'diff_yellow':['#4e432f', '54', 'DarkMagenta'],
\ 'fg': ['#c5cdd9', '250', 'White'],
\ 'red': ['#ec7279', '203', 'Red'],
\ 'yellow': ['#deb974', '179', 'Yellow'],
Expand All @@ -117,7 +117,7 @@ function! edge#get_palette(style) "{{{
\ 'bg_blue': ['#6996e0', '68', 'Blue'],
\ 'diff_blue': ['#e3eaf6', '153', 'LightBlue'],
\ 'bg_purple': ['#bf75d6', '134', 'Magenta'],
\ 'diff_purple':['#f1e5f5', '183', 'LightMagenta'],
\ 'diff_yellow':['#f0ece2', '183', 'LightMagenta'],
\ 'fg': ['#4b505b', '240', 'Black'],
\ 'red': ['#d05858', '167', 'Red'],
\ 'yellow': ['#be7e05', '172', 'Yellow'],
Expand Down
10 changes: 5 additions & 5 deletions colors/edge.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ endif
let s:configuration = edge#get_configuration()
let s:palette = edge#get_palette(s:configuration.style)
let s:path = expand('<sfile>:p') " the path of this script
let s:last_modified = 'Mon Nov 23 02:50:00 AM UTC 2020'
let s:last_modified = 'Mon Nov 23 03:02:33 AM UTC 2020'
let g:edge_loaded_file_types = []
" }}}
" Common Highlight Groups: {{{
Expand Down Expand Up @@ -240,10 +240,10 @@ else
call edge#highlight('PurpleSign', s:palette.purple, s:palette.bg1)
endif
if s:configuration.diagnostic_line_highlight
call edge#highlight('ErrorLine', s:palette.bg0, s:palette.red)
call edge#highlight('WarningLine', s:palette.bg0, s:palette.yellow)
call edge#highlight('InfoLine', s:palette.bg0, s:palette.blue)
call edge#highlight('HintLine', s:palette.bg0, s:palette.green)
call edge#highlight('ErrorLine', s:palette.none, s:palette.diff_red)
call edge#highlight('WarningLine', s:palette.none, s:palette.diff_yellow)
call edge#highlight('InfoLine', s:palette.none, s:palette.diff_blue)
call edge#highlight('HintLine', s:palette.none, s:palette.diff_green)
else
highlight clear ErrorLine
highlight clear WarningLine
Expand Down

0 comments on commit b0a8e37

Please sign in to comment.