dev (refactor): siplified git and diff relation in colorschemes

dev-doc
Pocco81 3 years ago
parent 65d0d37410
commit 4ec76d7671

@ -27,12 +27,6 @@ local colors = {
orange_br = "#F6A878",
pink_br = "#DF97DB",
comment = "#526175",
git = {
add = "#dfdfe0",
change = "#F6A878",
delete = "#e06c75",
conflict = "#FFE37E",
},
}
util.bg = colors.bg
@ -40,25 +34,23 @@ colors.bg_alt = util.darken(colors.bg, 0.75, "#000000")
colors.bg_highlight = util.brighten(colors.bg, 0.05)
colors.fg_alt = util.darken(colors.fg, 0.80, "#000000")
colors.diff = { -- also used for gitsigns
add = util.darken(colors.blue, 0.50),
delete = util.darken(colors.red, 0.50),
change = util.darken(colors.yellow, 0.50),
colors.diff = { -- git and native diffs
add = colors.blue,
change = colors.yellow,
delete = colors.red,
text = colors.blue,
conflict = colors.magenta,
}
colors.git.ignore = colors.black
colors.black = util.darken(colors.bg, 0.8, "#000000")
colors.border_highlight = colors.blue
colors.border = colors.black
-- Popups and statusline always get a dark background
-- Popups and statusline should always be darker
colors.bg_popup = colors.bg_alt
colors.bg_statusline = colors.bg_alt
-- Sidebar and Floats are configurable
-- colors.bg_sidebar = config.darkSidebar and colors.bg_alt or colors.bg
-- colors.bg_float = config.darkFloat and colors.bg_alt or colors.bg
-- Sidebar and Floats
colors.bg_sidebar = colors.bg_alt
colors.bg_float = colors.bg_alt

@ -27,12 +27,6 @@ local colors = {
orange_br = "#F3843F",
pink_br = "#DF97DB",
comment = "#526175",
git = {
add = "#dfdfe0",
change = "#F4843E",
delete = "#e06c75",
conflict = "#FFE070",
},
}
util.bg = colors.bg
@ -40,26 +34,23 @@ colors.bg_alt = util.darken(colors.bg, 0.75, "#000000")
colors.bg_highlight = util.darken(colors.bg, 0.85, "#000000")
colors.fg_alt = util.darken(colors.fg, 0.80, "#000000")
colors.diff = {
-- also used for gitsigns
add = util.darken(colors.blue, 0.50),
delete = util.darken(colors.red, 0.50),
change = util.darken(colors.yellow, 0.50),
colors.diff = { -- git and native diffs
add = colors.blue,
change = colors.yellow,
delete = colors.red,
text = colors.blue,
conflict = colors.magenta,
}
colors.git.ignore = colors.black
colors.black = util.darken(colors.bg, 0.8, "#000000")
colors.border_highlight = colors.blue
colors.border = colors.black
-- Popups and statusline always get a dark background
-- Popups and statusline should always be darker
colors.bg_popup = colors.bg_alt
colors.bg_statusline = colors.bg_alt
-- Sidebar and Floats are configurable
-- colors.bg_sidebar = config.darkSidebar and colors.bg_alt or colors.bg
-- colors.bg_float = config.darkFloat and colors.bg_alt or colors.bg
-- Sidebar and Floats
colors.bg_sidebar = colors.bg_alt
colors.bg_float = colors.bg_alt

@ -27,12 +27,6 @@ local colors = {
orange_br = "#F6A878",
pink_br = "#DF97DB",
comment = "#526175",
git = {
add = "#dfdfe0",
change = "#F8B58C",
delete = "#e06c75",
conflict = "#FFE070",
},
}
util.bg = colors.bg
@ -40,25 +34,23 @@ colors.bg_alt = util.darken(colors.bg, 0.75, "#000000")
colors.bg_highlight = util.brighten(colors.bg, 0.05)
colors.fg_alt = util.darken(colors.fg, 0.80, "#000000")
colors.diff = { -- also used for gitsigns
add = util.darken(colors.blue, 0.50),
delete = util.darken(colors.red, 0.50),
change = util.darken(colors.yellow, 0.50),
colors.diff = { -- git and native diffs
add = colors.blue,
change = colors.yellow,
delete = colors.red,
text = colors.blue,
conflict = colors.magenta,
}
colors.git.ignore = colors.black
colors.black = util.darken(colors.bg, 0.8, "#000000")
colors.border_highlight = colors.blue
colors.border = colors.black
-- Popups and statusline always get a dark background
-- Popups and statusline should always be darker
colors.bg_popup = colors.bg_alt
colors.bg_statusline = colors.bg_alt
-- Sidebar and Floats are configurable
-- colors.bg_sidebar = config.darkSidebar and colors.bg_alt or colors.bg
-- colors.bg_float = config.darkFloat and colors.bg_alt or colors.bg
-- Sidebar and Floats
colors.bg_sidebar = colors.bg_alt
colors.bg_float = colors.bg_alt

Loading…
Cancel
Save