fix: better color for Directory
This commit is contained in:
parent
bb951669d4
commit
75560db4e3
@ -9,38 +9,73 @@ function M.setup(config)
|
||||
|
||||
-- Color Palette
|
||||
---@class ColorScheme
|
||||
local colors = {
|
||||
none = "NONE",
|
||||
bg_dark = "#1f2335",
|
||||
bg = "#24283b",
|
||||
bg_highlight = "#292e42",
|
||||
terminal_black = "#414868",
|
||||
fg = "#c0caf5",
|
||||
fg_dark = "#a9b1d6",
|
||||
fg_gutter = "#3b4261",
|
||||
dark3 = "#545c7e",
|
||||
comment = "#565f89",
|
||||
dark5 = "#737aa2",
|
||||
blue0 = "#3d59a1",
|
||||
blue = "#7aa2f7",
|
||||
cyan = "#7dcfff",
|
||||
blue1 = "#2ac3de",
|
||||
blue5 = "#89ddff",
|
||||
blue6 = "#B4F9F8",
|
||||
magenta = "#bb9af7",
|
||||
purple = "#9d7cd8",
|
||||
orange = "#ff9e64",
|
||||
yellow = "#e0af68",
|
||||
green = "#9ece6a",
|
||||
green1 = "#73daca",
|
||||
teal = "#1abc9c",
|
||||
red = "#f7768e",
|
||||
red1 = "#db4b4b",
|
||||
diff = { change = "#394b70", add = "#164846", delete = "#823c41" },
|
||||
git = { change = "#6183bb", add = "#449dab", delete = "#914c54" },
|
||||
}
|
||||
local colors = {}
|
||||
|
||||
if config.style == "day" then
|
||||
colors = {
|
||||
none = "NONE",
|
||||
bg_dark = "#F3F4F6",
|
||||
bg = "#ffffff",
|
||||
bg_highlight = "#F9FAFB",
|
||||
terminal_black = "#414868",
|
||||
fg = "#4B5563",
|
||||
fg_dark = "#374151",
|
||||
fg_gutter = "#D1D5DB",
|
||||
dark3 = "#545c7e",
|
||||
comment = "#9CA3AF",
|
||||
dark5 = "#737aa2",
|
||||
blue0 = "#90CAF9",
|
||||
blue = "#3B82F6",
|
||||
cyan = "#00B0FF",
|
||||
blue1 = "#10B981",
|
||||
blue5 = "#80D8FF",
|
||||
blue6 = "#B4F9F8",
|
||||
magenta = "#8B5CF6",
|
||||
purple = "#A78BFA",
|
||||
orange = "#F57F17",
|
||||
yellow = "#FBBF24",
|
||||
green = "#9CCC65",
|
||||
green1 = "#00BFA5",
|
||||
teal = "#1abc9c",
|
||||
red = "#f7768e",
|
||||
red1 = "#db4b4b",
|
||||
diff = { change = "#394b70", add = "#164846", delete = "#823c41" },
|
||||
git = { change = "#6183bb", add = "#449dab", delete = "#914c54" },
|
||||
}
|
||||
else
|
||||
colors = {
|
||||
none = "NONE",
|
||||
bg_dark = "#1f2335",
|
||||
bg = "#24283b",
|
||||
bg_highlight = "#292e42",
|
||||
terminal_black = "#414868",
|
||||
fg = "#c0caf5",
|
||||
fg_dark = "#a9b1d6",
|
||||
fg_gutter = "#3b4261",
|
||||
dark3 = "#545c7e",
|
||||
comment = "#565f89",
|
||||
dark5 = "#737aa2",
|
||||
blue0 = "#3d59a1",
|
||||
blue = "#7aa2f7",
|
||||
cyan = "#7dcfff",
|
||||
blue1 = "#2ac3de",
|
||||
blue5 = "#89ddff",
|
||||
blue6 = "#B4F9F8",
|
||||
magenta = "#bb9af7",
|
||||
purple = "#9d7cd8",
|
||||
orange = "#ff9e64",
|
||||
yellow = "#e0af68",
|
||||
green = "#9ece6a",
|
||||
green1 = "#73daca",
|
||||
teal = "#1abc9c",
|
||||
red = "#f7768e",
|
||||
red1 = "#db4b4b",
|
||||
diff = { change = "#394b70", add = "#164846", delete = "#823c41" },
|
||||
git = { change = "#6183bb", add = "#449dab", delete = "#914c54" },
|
||||
}
|
||||
if config.style == "night" then colors.bg = "#1a1b26" end
|
||||
end
|
||||
|
||||
if config.style == "night" then colors.bg = "#1a1b26" end
|
||||
util.bg = colors.bg
|
||||
colors.git.ignore = colors.dark3
|
||||
colors.black = util.darken(colors.bg, 0.8, "#000000")
|
||||
|
@ -23,7 +23,7 @@ function M.setup(config)
|
||||
CursorIM = { style = "reverse" }, -- like Cursor, but used when in IME mode |CursorIM|
|
||||
CursorColumn = { bg = c.bg_highlight }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
|
||||
CursorLine = { bg = c.bg_highlight }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
|
||||
Directory = { fg = c.fg_dark }, -- directory names (and other special names in listings)
|
||||
Directory = { fg = c.blue }, -- directory names (and other special names in listings)
|
||||
DiffAdd = { bg = c.diff.add }, -- diff mode: Added line |diff.txt|
|
||||
DiffChange = { bg = c.diff.change }, -- diff mode: Changed line |diff.txt|
|
||||
DiffDelete = { bg = c.diff.delete }, -- diff mode: Deleted line |diff.txt|
|
||||
|
Loading…
Reference in New Issue
Block a user