-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(extras): added colors for zathura (#385)
Added TokyoNight colorscheme for [zathura](https://pwmt.org/projects/zathura/) document viewer.
- Loading branch information
1 parent
6972aad
commit e7e2280
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
local util = require("tokyonight.util") | ||
|
||
local M = {} | ||
|
||
--- @param colors ColorScheme | ||
function M.generate(colors) | ||
local zathura = util.template( | ||
[[ | ||
# Tokyonight color theme for Zathura | ||
# Swaps Foreground for Background to get a light version if the user prefers | ||
# | ||
# Tokyonight color theme | ||
# | ||
set notification-error-bg "${red}" | ||
set notification-error-fg "${fg}" | ||
set notification-warning-bg "${yellow}" | ||
set notification-warning-fg "${terminal_black}" | ||
set notification-bg "${bg}" | ||
set notification-fg "${fg}" | ||
set completion-bg "${bg}" | ||
set completion-fg "${fg_dark}" | ||
set completion-group-bg "${bg}" | ||
set completion-group-fg "${fg_dark}" | ||
set completion-highlight-bg "${terminal_black}" | ||
set completion-highlight-fg "${fg}" | ||
set index-bg "${bg}" | ||
set index-fg "${fg}" | ||
set index-active-bg "${terminal_black}" | ||
set index-active-fg "${fg}" | ||
set inputbar-bg "${bg}" | ||
set inputbar-fg "${fg}" | ||
set statusbar-bg "${bg}" | ||
set statusbar-fg "${fg}" | ||
set highlight-color "${yellow}" | ||
set highlight-active-color "${green}" | ||
set default-bg "${bg}" | ||
set default-fg "${fg}" | ||
set render-loading true | ||
set render-loading-fg "${bg}" | ||
set render-loading-bg "${fg}" | ||
# | ||
# Recolor mode settings | ||
# <C-r> to switch modes | ||
# | ||
set recolor-lightcolor "${bg}" | ||
set recolor-darkcolor "${fg}" | ||
]], | ||
colors | ||
) | ||
return zathura | ||
end | ||
|
||
return M |