2023-01-25 14:15:57 +01:00
|
|
|
-- <! tmpl:setPostProcessor(opt.luaCompile) !>
|
2023-06-08 23:17:19 +02:00
|
|
|
local catppuccin = {
|
|
|
|
bg = "#181825",
|
|
|
|
fg = "#cdd6f4",
|
|
|
|
bright_bg = "#1e1e2e",
|
|
|
|
very_bright_bg = "#313244",
|
|
|
|
cyan = "#89b4fa",
|
|
|
|
green = "#a6e3a1",
|
|
|
|
orange = "#fab387",
|
|
|
|
pink = "#f5c2e7",
|
|
|
|
purple = "#cba6f7",
|
|
|
|
red = "#f38ba8",
|
|
|
|
yellow = "#f9e2af",
|
2022-01-29 01:49:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
local theme = {}
|
|
|
|
|
|
|
|
-- Default settings
|
2023-01-20 22:30:45 +01:00
|
|
|
theme.font = "12px <% opt.font %>"
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.fg = catppuccin.fg
|
|
|
|
theme.bg = catppuccin.bg
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Genaral colors
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.success_fg = catppuccin.green
|
|
|
|
theme.loaded_fg = catppuccin.cyan
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Error colors
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.error_fg = catppuccin.red
|
|
|
|
theme.error_bg = catppuccin.bright_bg
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Warning colors
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.warning_fg = catppuccin.orange
|
|
|
|
theme.warning_bg = catppuccin.bright_bg
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Notification colors
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.notif_fg = catppuccin.very_bright_bg
|
|
|
|
theme.notif_bg = catppuccin.bg
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Menu colors
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.menu_fg = catppuccin.fg
|
|
|
|
theme.menu_bg = catppuccin.bg
|
|
|
|
theme.menu_selected_fg = catppuccin.fg
|
|
|
|
theme.menu_selected_bg = catppuccin.bright_bg
|
|
|
|
theme.menu_title_bg = catppuccin.bg
|
|
|
|
theme.menu_primary_title_fg = catppuccin.red
|
|
|
|
theme.menu_secondary_title_fg = catppuccin.bright_bg
|
|
|
|
|
|
|
|
theme.menu_disabled_fg = catppuccin.very_bright_bg
|
|
|
|
theme.menu_disabled_bg = catppuccin.purple
|
2022-01-29 01:49:36 +01:00
|
|
|
theme.menu_enabled_fg = theme.menu_fg
|
|
|
|
theme.menu_enabled_bg = theme.menu_bg
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.menu_active_fg = catppuccin.very_bright_bg
|
2022-01-29 01:49:36 +01:00
|
|
|
theme.menu_active_bg = theme.menu_bg
|
|
|
|
|
|
|
|
-- Proxy manager
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.proxy_active_menu_fg = catppuccin.fg
|
|
|
|
theme.proxy_active_menu_bg = catppuccin.bg
|
|
|
|
theme.proxy_inactive_menu_fg = catppuccin.bright_bg
|
|
|
|
theme.proxy_inactive_menu_bg = catppuccin.very_bright_bg
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Statusbar specific
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.sbar_fg = catppuccin.fg
|
|
|
|
theme.sbar_bg = catppuccin.bg
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Downloadbar specific
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.dbar_fg = catppuccin.fg
|
|
|
|
theme.dbar_bg = catppuccin.bg
|
|
|
|
theme.dbar_error_fg = catppuccin.red
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Input bar specific
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.ibar_fg = catppuccin.fg
|
|
|
|
theme.ibar_bg = catppuccin.bg
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Tab label
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.tab_fg = catppuccin.fg
|
|
|
|
theme.tab_bg = catppuccin.bg
|
|
|
|
theme.tab_hover_bg = catppuccin.orange
|
2022-01-29 01:49:36 +01:00
|
|
|
theme.tab_ntheme = "#ddd"
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.selected_fg = catppuccin.fg
|
|
|
|
theme.selected_bg = catppuccin.bright_bg
|
2022-01-29 01:49:36 +01:00
|
|
|
theme.selected_ntheme = "#ddd"
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.loading_fg = catppuccin.cyan
|
|
|
|
theme.loading_bg = catppuccin.bg
|
2022-01-29 01:49:36 +01:00
|
|
|
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.selected_private_tab_bg = catppuccin.pink
|
|
|
|
theme.private_tab_bg = catppuccin.purple
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Trusted/untrusted ssl colors
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.trust_fg = catppuccin.green
|
|
|
|
theme.notrust_fg = catppuccin.red
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Follow mode hints
|
2023-01-20 22:30:45 +01:00
|
|
|
theme.hint_font = "12px <% opt.font %>, monospace, courier, sans-serif"
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.hint_fg = catppuccin.fg
|
|
|
|
theme.hint_bg = catppuccin.very_bright_bg
|
|
|
|
theme.hint_border = "2px dashed " .. catppuccin.green
|
2022-01-29 01:49:36 +01:00
|
|
|
theme.hint_opacity = "0.3"
|
|
|
|
theme.hint_overlay_bg = "rgba(255,255,153,0.3)"
|
|
|
|
theme.hint_overlay_border = "1px dotted #000"
|
|
|
|
theme.hint_overlay_selected_bg = "rgba(0,255,0,0.3)"
|
|
|
|
theme.hint_overlay_selected_border = theme.hint_overlay_border
|
|
|
|
|
|
|
|
-- General colour pairings
|
2023-06-08 23:17:19 +02:00
|
|
|
theme.ok = { fg = catppuccin.fg, bg = catppuccin.bg }
|
|
|
|
theme.warn = { fg = catppuccin.orange, bg = catppuccin.bg }
|
|
|
|
theme.error = { fg = catppuccin.red, bg = catppuccin.bright_bg }
|
2022-01-29 01:49:36 +01:00
|
|
|
|
|
|
|
-- Gopher page style (override defaults)
|
|
|
|
theme.gopher_light = { bg = "#E8E8E8", fg = "#17181C", link = "#03678D" }
|
|
|
|
theme.gopher_dark = { bg = "#17181C", fg = "#E8E8E8", link = "#f90" }
|
|
|
|
|
|
|
|
return theme
|