Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 56 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ clap = { version = "4", features = ["derive"] }
thiserror = "1.0"
syntect = { version = "5.3.0", default-features = false, features = ["parsing", "default-syntaxes", "default-themes", "default-fancy"] }
urlencoding = "2.1"
toml = "1.1.0"

[dev-dependencies]
rusty-hook = "0.11.2"
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,27 @@ If you find a bug, have an idea for a cool new feature, or just want to help out
## License

Distributed under the MIT License. It's open, free, and yours to play with. See [LICENSE](LICENSE) for the fine print.

### Theming

ghgrab supports custom color themes via a TOML config file.

**Location:**
- Linux/macOS: `~/.config/ghgrab/theme.toml`
- Windows: `%APPDATA%\ghgrab\theme.toml`

Variables can be changed individually — any missing key falls back to the default Tokyo Night color theme. Colors must be in `#RRGGBB` hex format.
```toml
bg_color = "#24283b" # Main background
fg_color = "#c0caf5" # Primary text
accent_color = "#7aa2f7" # Borders, highlights, active elements
warning_color = "#e0af68" # Warnings
error_color = "#f7768e" # Errors
success_color = "#9ece6a" # Success indicators
folder_color = "#82aaff" # Folder icons
selected_color = "#ff9e64" # Selected items
border_color = "#565f89" # Inactive borders
highlight_bg = "#292e42" # Highlighted row background
```

[`exampletheme.toml`](exampletheme.toml) for a example template.
24 changes: 24 additions & 0 deletions exampletheme.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ghgrab theme example

# Place this file at ~/.config/ghgrab/theme.toml if linux and mac
# Place this file at %APPDATA%\ghgrab\theme.toml if windows
# If directory doesnt exists create it yourself

# All values are optional - missing keys fall back to the default Tokyo Night colors
# Colors must be in #RRGGBB hex format.

# R for red G for green and B for blue

bg_color = "#24283b" # Main background
fg_color = "#c0caf5" # Primary text
accent_color = "#7aa2f7" # Borders, highlights, active elements
warning_color = "#e0af68" # Warnings
error_color = "#f7768e" # Errors
success_color = "#9ece6a" # Success indicators
folder_color = "#82aaff" # Folder icons
selected_color = "#ff9e64" # Selected items
border_color = "#565f89" # Inactive borders
highlight_bg = "#292e42" # Highlighted row background


# Matugen tested
Loading
Loading