Skip to content

Commit

Permalink
Refactor color definitions for light theme
Browse files Browse the repository at this point in the history
  • Loading branch information
cocopon committed Oct 17, 2018
1 parent c4665cb commit 0a18b0f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions autoload/iceberg/palette/dark.vim
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ function! iceberg#palette#dark#create() abort
\ 'lightness': +0.50,
\ })

" diff
let g.difftext_bg = pgmnt#color#mix(g.lblue, g.normal_bg, 0.6)
let g.difftext_fg = g.normal_fg

" statusline
let g.statusline_bg = pgmnt#color#hsl(hue_base, 0.09, 0.55)
let g.statusline_fg = pgmnt#color#hsl(hue_base, 0.09, 0.10)
Expand Down Expand Up @@ -83,6 +87,8 @@ function! iceberg#palette#dark#create() abort
\ 'saturation': +0.08,
\ 'lightness': +0.09,
\ })
let g.tablinesel_bg = g.normal_bg
let g.tablinesel_fg = pgmnt#color#mix(g.normal_fg, g.normal_bg, 0.75)
let g.todo_bg = g.green_tint_bg
let g.todo_fg = g.green
let g.visual_bg = pgmnt#color#adjust_color(
Expand Down Expand Up @@ -142,6 +148,10 @@ function! iceberg#palette#dark#create() abort
let c.cursorlinenr_bg = 237
let c.cursorlinenr_fg = 253

" diff
let c.difftext_bg = 30
let c.difftext_fg = 195

" statusline
let c.statusline_bg = 245
let c.statusline_fg = 234
Expand Down
2 changes: 1 addition & 1 deletion colors/iceberg.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"
" File: iceberg.vim
" Maintainer: cocopon <[email protected]>
" Modified: 2018-08-14 23:38+0900
" Modified: 2018-10-18 01:01+0900
" License: MIT


Expand Down
12 changes: 6 additions & 6 deletions src/iceberg.vim
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ function! s:create_context() abort
call extend(rules, pgmnt#hi#group(
\ 'DiffText', {
\ 'cterm': 'NONE',
\ 'ctermbg': 30,
\ 'ctermfg': 195,
\ 'ctermbg': c.difftext_bg,
\ 'ctermfg': c.difftext_fg,
\ 'gui': 'NONE',
\ 'guibg': pgmnt#color#mix(g.lblue, g.normal_bg, 0.6),
\ 'guifg': g.normal_fg,
\ 'guibg': g.difftext_bg,
\ 'guifg': g.difftext_fg,
\ }))
call extend(rules, pgmnt#hi#group(
\ 'Directory', {
Expand Down Expand Up @@ -309,8 +309,8 @@ function! s:create_context() abort
\ 'ctermbg': c.normal_bg,
\ 'ctermfg': c.normal_fg,
\ 'gui': 'NONE',
\ 'guibg': g.normal_bg,
\ 'guifg': pgmnt#color#mix(g.normal_fg, g.normal_bg, 0.75),
\ 'guibg': g.tablinesel_bg,
\ 'guifg': g.tablinesel_fg,
\ }))
call extend(rules, pgmnt#hi#group(
\ 'Title', {
Expand Down

0 comments on commit 0a18b0f

Please sign in to comment.