Skip to content

Commit

Permalink
feat(extras): add zathura colorscheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 15, 2024
1 parent 0c6f362 commit 9413aca
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/astrotheme/extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ M.extras = {
windows_terminal = { ext = "json", url = "https://aka.ms/terminal-documentation", label = "Windows Terminal" },
xfceterm = { ext = "theme", url = "https://docs.xfce.org/apps/terminal/advanced", label = "Xfce Terminal" },
xresources = { ext = "Xresources", url = "https://wiki.archlinux.org/title/X_resources", label = "Xresources" },
zathura = { ext = "zathurarc", url = "https://pwmt.org/projects/zathura/", label = "Zathura" },
zellij = { ext = "kdl", url = "https://zellij.dev/", label = "Zellij" },
}

Expand Down
52 changes: 52 additions & 0 deletions lua/astrotheme/extras/zathura.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
local util = require "astrotheme.extras"

local M = {}

--- @param colors AstroThemePalette
function M.generate(colors)
return util.template(
[[
# ${_style_name} color theme for Zathura
# Swaps Foreground for Background to get a light version if the user prefers
#
# ${_style_name} color theme
#
set notification-error-bg "${ui.red}"
set notification-error-fg "${ui.base}"
set notification-warning-bg "${ui.orange}"
set notification-warning-fg "${ui.base}"
set notification-bg "${ui.base}"
set notification-fg "${syntax.text}"
set completion-bg "${ui.base}"
set completion-fg "${syntax.comment}"
set completion-group-bg "${ui.base}"
set completion-group-fg "${syntax.comment}"
set completion-highlight-bg "${ui.inactive_base}"
set completion-highlight-fg "${syntax.text}"
set index-bg "${ui.base}"
set index-fg "${syntax.text}"
set index-active-bg "${ui.inactive_base}"
set index-active-fg "${syntax.text}"
set inputbar-bg "${ui.base}"
set inputbar-fg "${syntax.text}"
set statusbar-bg "${ui.base}"
set statusbar-fg "${syntax.text}"
set highlight-color "${ui.yellow}"
set highlight-active-color "${ui.green}"
set default-bg "${ui.base}"
set default-fg "${syntax.text}"
set render-loading true
set render-loading-fg "${ui.base}"
set render-loading-bg "${syntax.text}"
#
# Recolor mode settings
# <C-r> to switch modes
#
set recolor-lightcolor "${ui.base}"
set recolor-darkcolor "${syntax.text}"
]],
colors
)
end

return M

0 comments on commit 9413aca

Please sign in to comment.