Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate recent theme change docs in THEMES.md #2575

Merged
merged 7 commits into from
Mar 22, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Move "Preset Themes" before "Syntax Highlighting"
Naseschwarz committed Mar 20, 2025
commit 83ff734718bbbe88137e5d08660b5c80c9585e29
6 changes: 4 additions & 2 deletions THEMES.md
Original file line number Diff line number Diff line change
@@ -34,6 +34,10 @@ Notes:
* valid colors can be found in ratatui's [Color](https://docs.rs/ratatui/latest/ratatui/style/enum.Color.html) struct.
* all customizable theme elements can be found in [`style.rs` in the `impl Default for Theme` block](https://github.com/gitui-org/gitui/blob/master/src/ui/style.rs#L305)

## Preset Themes

You can find preset themes by Catppuccin [here](https://github.com/catppuccin/gitui.git).

## Syntax Highlighting

The syntax highlighting theme can be defined using the element `syntax`. Both [default themes of the syntect library are supported](https://github.com/trishume/syntect/blob/7fe13c0fd53cdfa0f9fea1aa14c5ba37f81d8b71/src/dumps.rs#L215) and custom themes are supported.
@@ -71,5 +75,3 @@ Note that if you want to turn it off, you should use a blank string:
line_break: Some(""),
)
```
## Preset Themes:
You can find preset themes by Catppuccin [here](https://github.com/catppuccin/gitui.git)