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