Statusbar background fixes

This commit is contained in:
2024-02-14 18:39:41 +01:00
parent d034a533e4
commit 701b34906e
2 changed files with 30 additions and 33 deletions

View File

@@ -1,17 +1,16 @@
return function(palette)
return {
-- Bold = { bold = true },
-- Italic = { italic = true },
Conceal = { fg = palette.other.conceal, bg = palette.other.harder_bg },
Directory = { fg = palette.blue, bg = palette.none },
EndOfBuffer = { fg = palette.bg, bg = palette.bg },
MatchParen = { fg = palette.none, bg = palette.none, bold = true, underline = true },
NonText = { fg = palette.ui.fg_inactive, bg = palette.none },
Normal = { fg = palette.fg, bg = palette.bg },
NormalNC = { link = "Normal" },
-- Italic = { italic = true },
-- Bold = { bold = true },
Conceal = { fg = palette.other.conceal, bg = palette.other.harder_bg },
SpecialKey = { fg = palette.none, bg = palette.colored_backgrounds.yellow },
NonText = { fg = palette.ui.fg_inactive, bg = palette.none },
EndOfBuffer = { fg = palette.bg, bg = palette.bg },
Directory = { fg = palette.blue, bg = palette.none },
QuickFixLine = palette.ui.selection,
MatchParen = { fg = palette.none, bg = palette.none, bold = true, underline = true },
SpecialKey = { fg = palette.none, bg = palette.colored_backgrounds.yellow },
Underlined = { fg = palette.aqua, bg = palette.none, underline = true },
-- Popup
@@ -40,38 +39,36 @@ return function(palette)
TabLine = { fg = palette.ui.fg_inactive, bg = palette.ui.bg_inactive },
TabLineFill = { fg = palette.none, bg = palette.ui.bg_inactive },
TabLineSel = { fg = palette.ui.fg, bg = palette.ui.bg, bold = true, italic = true },
WinBar = { fg = palette.ui.winbar.fg, bg = palette.ui.winbar.bg },
WinBarNC = {
fg = palette.ui.winbar.fg_inactive,
bg = palette.ui.winbar.bg_inactive,
},
StatusLine = { fg = palette.ui.fg, bg = palette.ui.bg },
StatusLineNC = { fg = palette.ui.fg_inactive, bg = palette.ui.bg },
StatusNormal = { fg = palette.ui.bg, bg = palette.blue },
StatusInsert = { fg = palette.ui.bg, bg = palette.green },
StatusVisual = { fg = palette.ui.bg, bg = palette.purple },
StatusReplace = { fg = palette.ui.bg, bg = palette.red },
StatusCommand = { fg = palette.ui.bg, bg = palette.yellow },
StatusCommand = { fg = palette.ui.status.bg, bg = palette.yellow },
StatusInsert = { fg = palette.ui.status.bg, bg = palette.green },
StatusLine = { fg = palette.ui.status.fg, bg = palette.ui.status.bg },
StatusLineNC = { fg = palette.ui.status.fg_inactive, bg = palette.ui.status.bg },
StatusNormal = { fg = palette.ui.status.bg, bg = palette.blue },
StatusReplace = { fg = palette.ui.status.bg, bg = palette.red },
StatusTerminal = { link = "StatusInsert" },
StatusVisual = { fg = palette.ui.status.bg, bg = palette.purple },
-- Cursor
Cursor = { fg = palette.fg, bg = palette.bg },
CursorColumn = { link = "CursorLine" },
CursorIM = { link = "Cursor" },
lCursor = { link = "Cursor" },
CursorLine = { fg = palette.none, bg = palette.other.bg_active },
CursorLineNr = { fg = palette.ui.fg, bg = palette.none },
LineNr = { fg = palette.ui.fg_inactive, bg = palette.none },
lCursor = { link = "Cursor" },
-- Columns
Folded = { fg = palette.ui.fg_inactive, bg = palette.none },
FoldColumn = { fg = palette.ui.fg_inactive, bg = palette.none },
SignColumn = { fg = palette.none, bg = palette.none }, -- TODO Test
ColorColumn = { fg = palette.none, bg = palette.other.bg_active },
CursorLine = { fg = palette.none, bg = palette.other.bg_active },
CursorColumn = { link = "CursorLine" },
FoldColumn = { fg = palette.ui.fg_inactive, bg = palette.none },
Folded = { fg = palette.ui.fg_inactive, bg = palette.none },
SignColumn = { fg = palette.none, bg = palette.none }, -- TODO Test
-- Splits
@@ -80,10 +77,6 @@ return function(palette)
bg = palette.bg,
-- bold = false,
},
VertSplit = {
fg = palette.ui.win.separator,
bg = palette.bg,
},
-- Diff

View File

@@ -7,7 +7,7 @@ return function(config)
-- Build base colors
local base = {
none = "",
none = "NONE",
fg = colors.grayscale[vimbg_reversed][1],
bg = colors.bg[vimbg][config.contrast],
@@ -19,14 +19,14 @@ return function(config)
colored_backgrounds = colors.colored_backgrounds[vimbg][config.contrast],
gray = colors.gray, -- TODO Rémy Only for comments? Won't look good in light mode
gray = colors.gray,
}
-- Append colors
local palette = vim.tbl_extend("error", base, colors.colors[vimbg])
palette.ui = {
fg = palette.fg,
bg = palette.bg_gradiant[1],
bg = palette.none,
bg_hard = palette.harder_bg,
fg_inactive = palette.fg_gradiant[4],
bg_inactive = palette.bg_gradiant[2],
@@ -37,6 +37,10 @@ return function(config)
text = palette.fg_gradiant[2],
scroll = palette.blue,
},
statusbar = {
fg = palette.fg,
bg = palette.bg_gradiant[1],
},
winbar = {
fg = palette.fg_gradiant[1],
bg = palette.harder_bg,