feat: add Zathura document viewer template
- Created Jinja2 template for Zathura config. - Mapped UI colors and PDF recolor settings to system DNA. - Updated documentation and repository map.
This commit is contained in:
@@ -82,5 +82,6 @@ Apex is not about pretty colors; it is about signal clarity.
|
||||
│ ├── hyprland/
|
||||
│ ├── fuzzel/
|
||||
│ ├── waybar/
|
||||
│ ├── zathura/
|
||||
│ └── alacritty/
|
||||
└── dist/ # Compiled theme files (gitignore this)
|
||||
|
||||
46
INSTALL.md
46
INSTALL.md
@@ -237,11 +237,51 @@ All generated theme files can be found in the `dist/` directory after running `u
|
||||
|
||||
```css
|
||||
|
||||
@import "colors.css";
|
||||
@import "colors.css";
|
||||
|
||||
```
|
||||
```
|
||||
|
||||
3. Use the variables in your CSS (e.g., `background-color: @background;`, `color: @foreground;`, `border-color: @accent;`).
|
||||
3. Use the variables in your CSS (e.g., `background-color: @background;`, `color: @foreground;`, `border-color: @accent;`).
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
## 11. Zathura
|
||||
|
||||
|
||||
|
||||
**Files:**
|
||||
|
||||
- `dist/zathura/apex-neon-zathurarc`
|
||||
|
||||
- `dist/zathura/apex-aeon-zathurarc`
|
||||
|
||||
|
||||
|
||||
**Installation:**
|
||||
|
||||
1. Copy the desired file to your Zathura config directory:
|
||||
|
||||
```bash
|
||||
|
||||
mkdir -p ~/.config/zathura
|
||||
|
||||
cp dist/zathura/apex-neon-zathurarc ~/.config/zathura/zathurarc
|
||||
|
||||
```
|
||||
|
||||
2. Or include it in your existing config:
|
||||
|
||||
```conf
|
||||
|
||||
include apex-neon-zathurarc
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ The factory currently generates native themes for:
|
||||
- **Hyprland** (Conf)
|
||||
- **Fuzzel** (INI)
|
||||
- **Waybar** (CSS variables)
|
||||
- **Zathura** (Config)
|
||||
|
||||
## The Apex DNA
|
||||
|
||||
|
||||
4
templates/zathura/meta.yaml
Normal file
4
templates/zathura/meta.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
author: S0wlz (Owlibou)
|
||||
description: Zathura document viewer theme
|
||||
version: 1.0.0
|
||||
strategy: individual
|
||||
46
templates/zathura/zathurarc.j2
Normal file
46
templates/zathura/zathurarc.j2
Normal file
@@ -0,0 +1,46 @@
|
||||
# {{ scheme }} — Zathura Theme
|
||||
# DNA: State over Decoration
|
||||
|
||||
# Core
|
||||
set default-bg "{{ palette.background }}"
|
||||
set default-fg "{{ palette.foreground }}"
|
||||
|
||||
# Status Bar
|
||||
set statusbar-bg "{{ ui.panel }}"
|
||||
set statusbar-fg "{{ palette.foreground }}"
|
||||
|
||||
# Input Bar
|
||||
set inputbar-bg "{{ ui.panel }}"
|
||||
set inputbar-fg "{{ palette.foreground }}"
|
||||
|
||||
# Completion
|
||||
set completion-bg "{{ ui.panel }}"
|
||||
set completion-fg "{{ palette.foreground }}"
|
||||
set completion-group-bg "{{ ui.border }}"
|
||||
set completion-group-fg "{{ ui.dim }}"
|
||||
set completion-highlight-bg "{{ palette.selection }}"
|
||||
set completion-highlight-fg "{{ palette.selection_fg }}"
|
||||
|
||||
# Notifications
|
||||
set notification-bg "{{ ui.panel }}"
|
||||
set notification-fg "{{ palette.foreground }}"
|
||||
set notification-error-bg "{{ ansi.bright.red }}"
|
||||
set notification-error-fg "{{ palette.background }}"
|
||||
set notification-warning-bg "{{ palette.warning }}"
|
||||
set notification-warning-fg "{{ palette.background }}"
|
||||
|
||||
# Selection & Highlight
|
||||
set highlight-color "rgba({{ palette.selection | replace('#', '') }}, 0.5)"
|
||||
set highlight-active-color "rgba({{ palette.selection | replace('#', '') }}, 0.8)"
|
||||
|
||||
# Recolor (Dark Mode for PDFs)
|
||||
# In Neon (Dark), we want dark paper (background) and light ink (foreground).
|
||||
# In Aeon (Light), we want light paper and dark ink (standard).
|
||||
set recolor-lightcolor "{{ palette.background }}"
|
||||
set recolor-darkcolor "{{ palette.foreground }}"
|
||||
|
||||
# Default recolor state
|
||||
# Ideally, only true for dark themes, but Zathura config is static.
|
||||
# Users can toggle with Ctrl+R.
|
||||
set recolor "false"
|
||||
set recolor-keephue "true"
|
||||
Reference in New Issue
Block a user