✨ Feat(colorscheme): properly address bg gradient in light theme
When we detect light-mode and apply catppuccin latte, we need to change the bg colors used for the gradient.
This commit is contained in:
+17
-4
@@ -21,25 +21,41 @@ local function get_colorscheme(appearance)
|
|||||||
if appearance:find("Dark") then
|
if appearance:find("Dark") then
|
||||||
scheme.theme = "Catppuccin Mocha ANSI"
|
scheme.theme = "Catppuccin Mocha ANSI"
|
||||||
scheme.mode = "dark"
|
scheme.mode = "dark"
|
||||||
|
scheme.bg = {
|
||||||
|
"#24273a",
|
||||||
|
"#1e1e2e",
|
||||||
|
}
|
||||||
else
|
else
|
||||||
scheme.theme = "Catppuccin Latte ANSI"
|
scheme.theme = "Catppuccin Latte ANSI"
|
||||||
scheme.mode = "light"
|
scheme.mode = "light"
|
||||||
|
scheme.bg = {
|
||||||
|
"#eff1f5",
|
||||||
|
"#fef5f1",
|
||||||
|
}
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
scheme.theme = "Catppuccin Mocha ANSI"
|
scheme.theme = "Catppuccin Mocha ANSI"
|
||||||
scheme.mode = "dark"
|
scheme.mode = "dark"
|
||||||
|
scheme.bg = {
|
||||||
|
"#24273a",
|
||||||
|
"#1e1e2e",
|
||||||
|
}
|
||||||
end
|
end
|
||||||
return scheme
|
return scheme
|
||||||
end
|
end
|
||||||
|
|
||||||
COLORTHEME = get_colorscheme(wezterm.gui.get_appearance()).theme
|
COLORTHEME = get_colorscheme(wezterm.gui.get_appearance()).theme
|
||||||
COLORMODE = get_colorscheme(wezterm.gui.get_appearance()).mode
|
COLORMODE = get_colorscheme(wezterm.gui.get_appearance()).mode
|
||||||
|
COLORBG = get_colorscheme(wezterm.gui.get_appearance()).bg
|
||||||
|
|
||||||
local opts = {
|
local opts = {
|
||||||
-- Color Scheme
|
-- Color Scheme
|
||||||
color_scheme = COLORTHEME,
|
color_scheme = COLORTHEME,
|
||||||
-- Tab Bar Colors
|
-- Tab Bar Colors
|
||||||
colors = {
|
colors = {
|
||||||
|
-- Cursor
|
||||||
|
cursor_bg = "#a5e3a0",
|
||||||
|
cursor_fg = "#C6D0F5",
|
||||||
-- Compose Cursor
|
-- Compose Cursor
|
||||||
compose_cursor = "#a5e3a0",
|
compose_cursor = "#a5e3a0",
|
||||||
-- Visual Bell
|
-- Visual Bell
|
||||||
@@ -82,10 +98,7 @@ local opts = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- Gradient Colors
|
-- Gradient Colors
|
||||||
colors = {
|
colors = COLORBG,
|
||||||
"#24273a",
|
|
||||||
"#1e1e2e",
|
|
||||||
},
|
|
||||||
-- Gradient Options
|
-- Gradient Options
|
||||||
interpolation = "CatmullRom",
|
interpolation = "CatmullRom",
|
||||||
blend = "Oklab",
|
blend = "Oklab",
|
||||||
|
|||||||
Reference in New Issue
Block a user