feat: bundle Pumpkin Light and paired appearance switching
This commit is contained in:
@@ -70,18 +70,18 @@ install: default-state.toml config.toml
|
||||
@launchctl bootout "gui/$$(id -u)/$(LAUNCH_AGENT_LABEL)" 2>/dev/null || true
|
||||
launchctl bootstrap "gui/$$(id -u)" "$(LAUNCH_AGENT)"
|
||||
|
||||
install-schemes: schemes/base16/pumpkin.yaml
|
||||
install-schemes: schemes/base16/pumpkin.yaml schemes/base16/pumpkin-light.yaml
|
||||
@set -e; \
|
||||
data_dir="$$(XDG_CONFIG_HOME="$(XDG_CONFIG_HOME)" tinty config --data-dir-path)"; \
|
||||
mkdir -p "$$data_dir/custom-schemes/base16"; \
|
||||
cp schemes/base16/pumpkin.yaml "$$data_dir/custom-schemes/base16/pumpkin.yaml"
|
||||
cp schemes/base16/pumpkin.yaml schemes/base16/pumpkin-light.yaml "$$data_dir/custom-schemes/base16/"
|
||||
|
||||
uninstall:
|
||||
@launchctl bootout "gui/$$(id -u)/$(LAUNCH_AGENT_LABEL)" 2>/dev/null || true
|
||||
rm -f "$(BIN_DIR)/tint" "$(LAUNCH_AGENT)" "$(DARK_NOTIFY_LOG)"
|
||||
@if command -v tinty >/dev/null; then \
|
||||
data_dir="$$(XDG_CONFIG_HOME="$(XDG_CONFIG_HOME)" tinty config --data-dir-path)" && \
|
||||
rm -f "$$data_dir/custom-schemes/base16/pumpkin.yaml"; \
|
||||
rm -f "$$data_dir/custom-schemes/base16/pumpkin.yaml" "$$data_dir/custom-schemes/base16/pumpkin-light.yaml"; \
|
||||
fi
|
||||
@if [ -e "$(STATE_MARKER)" ]; then \
|
||||
rm -f "$(CONFIG_DIR)/state.toml" "$(STATE_MARKER)"; \
|
||||
|
||||
@@ -175,20 +175,21 @@ TINTY_PAIR_APPEARANCE=dark tint swamp
|
||||
|
||||
### Pumpkin
|
||||
|
||||
The bundled [`base16-pumpkin`](schemes/base16/pumpkin.yaml) palette comes from the sibling Terebi project. It preserves the player's brown, cream, sand, orange and ember colors and adds the remaining Base16 syntax hues. It is dark-only; keep your existing light theme.
|
||||
The bundled [`base16-pumpkin`](schemes/base16/pumpkin.yaml) and [`base16-pumpkin-light`](schemes/base16/pumpkin-light.yaml) palettes come from the sibling Terebi project. Dark Pumpkin uses brown, cream and vivid autumn accents; Pumpkin Light uses parchment, brown ink and deeper orange, persimmon, gold and olive accents. All light text/accent slots exceed 4.5:1 contrast against the background.
|
||||
|
||||
`make install` installs it automatically. To install just the palette and updated wrapper without syncing repositories or reloading the appearance agent:
|
||||
`make install` installs both palettes automatically. To install the palettes and updated wrapper without syncing repositories or reloading the appearance agent, then save and select their named pair:
|
||||
|
||||
```sh
|
||||
make install-schemes
|
||||
go build -o "$HOME/.local/bin/tint" .
|
||||
tint favorite base16-pumpkin
|
||||
tint dark:base16-pumpkin
|
||||
tint pair pumpkin dark:base16-pumpkin light:base16-pumpkin-light
|
||||
tint favorite pumpkin
|
||||
tint pumpkin
|
||||
```
|
||||
|
||||
Setting the dark side preserves the light side and applies whichever side matches macOS appearance. Use `tint dark` to apply the saved dark side immediately.
|
||||
`tint pumpkin` sets both sides and applies the side matching macOS appearance. Use `tint light` or `tint dark` to apply a saved side immediately. Saving/favoriting the pair without selecting it leaves the current pair and active theme unchanged.
|
||||
|
||||
Tinty stores the YAML under `$(tinty config --data-dir-path)/custom-schemes/base16/pumpkin.yaml` and builds the installed app templates when applying it. Both theme validation and app palette lookup support [Tinty's native custom schemes](https://github.com/tinted-theming/tinty/blob/v0.34.0/USAGE.md#use-your-own-schemes), so Ghostty, Zed, Herdr, OMP and Conjure use the normal application flow. List local palettes with `tinty list --custom-schemes`. Reinstalling updates the bundled palette without changing the saved pair or favorites; uninstalling removes the bundled YAML.
|
||||
Tinty stores both YAML files under `$(tinty config --data-dir-path)/custom-schemes/base16/` and builds the installed app templates when applying either theme. Both theme validation and app palette lookup support [Tinty's native custom schemes](https://github.com/tinted-theming/tinty/blob/v0.34.0/USAGE.md#use-your-own-schemes), so Ghostty, Zed, Herdr, OMP and Conjure use the normal application flow. List local palettes with `tinty list --custom-schemes`. Reinstalling updates the bundled palettes without changing saved state; fresh installs include the favorite `pumpkin` pair, and uninstalling removes both bundled YAML files.
|
||||
|
||||
## Update
|
||||
|
||||
|
||||
+5
-1
@@ -12,6 +12,11 @@ name = "gruvbox-pale"
|
||||
dark = "base16-gruvbox-dark-pale"
|
||||
light = "base16-gruvbox-light-soft"
|
||||
|
||||
[[favorites.pairs]]
|
||||
name = "pumpkin"
|
||||
dark = "base16-pumpkin"
|
||||
light = "base16-pumpkin-light"
|
||||
|
||||
[[favorites.pairs]]
|
||||
name = "swamp"
|
||||
dark = "base16-swamp-dark"
|
||||
@@ -37,7 +42,6 @@ themes = [
|
||||
"base16-selenized-light",
|
||||
"base16-swamp-dark",
|
||||
"base16-swamp-light",
|
||||
"base16-pumpkin",
|
||||
"base24-ic-orange-ppl",
|
||||
"base24-later-this-evening",
|
||||
"tinted8-gruvbox-dark",
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# Matching light companion to Pumpkin; deeper accents for parchment backgrounds.
|
||||
# Styling roles: https://github.com/tinted-theming/home/blob/main/styling.md
|
||||
system: "base16"
|
||||
name: "Pumpkin Light"
|
||||
author: "Terebi"
|
||||
variant: "light"
|
||||
palette:
|
||||
base00: "#fff6e6" # Parchment background
|
||||
base01: "#f4e6ce" # Raised surface
|
||||
base02: "#e6ceaa" # Selection
|
||||
base03: "#7c624e" # Comments / muted text
|
||||
base04: "#70543f" # Secondary foreground
|
||||
base05: "#453126" # Brown foreground
|
||||
base06: "#30221b" # Deep foreground
|
||||
base07: "#1f1714" # Darkest foreground
|
||||
base08: "#b13425" # Red — variables / errors / deletions
|
||||
base09: "#a64b00" # Burnt orange — numbers / constants
|
||||
base0A: "#806000" # Ochre — types / search
|
||||
base0B: "#52651f" # Olive — strings / additions
|
||||
base0C: "#776300" # Harvest gold — escapes / support
|
||||
base0D: "#b34d00" # Pumpkin orange — functions / headings / UI accent
|
||||
base0E: "#b63d24" # Persimmon — keywords
|
||||
base0F: "#c2452e" # Ember — deprecated
|
||||
Reference in New Issue
Block a user