gitui: Theme file not loading on macOS
Describe the bug
When I override the default theme or try to add a new one, it doesn’t affect gitui
’s theme.
To Reproduce Steps to reproduce the behavior:
- Install
gitui
viabrew
- Add a theme at
~/.config/gitui/theme.ron
- Example theme:
(
line_break: Some(""),
selection_bg: Some(LightBlue),
)
- Open
gitui
- Colors are still the same and new line operator is still visible.
Expected behavior I expect the theme to change.
Context (please complete the following information):
- OS/Distro + Version: macOS
13.6.3
- GitUI Version
0.24.3
Additional context
It would help to see where themes are loaded from, in case gitui doesn’t use ~/.config/gitui/
. Trying to add a custom theme and loading it via -t
also doesn’t lead to any error. It silently fails, so I cannot debug where the gitui
loads the themes from.
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Comments: 15 (9 by maintainers)
Commits related to this issue
- better theme file handling (#2077) * better theme file handling * print all possible err of loading theme closes #2007 — committed to sainad2222/gitui by extrawurst 4 months ago
@cgahr @maxhoffmann I think this improves the diagnostics a lot, there is an argument to be made if one should not be able to define a full theme path. but that’s a story for another day
@cgahr please try again with current master (f0f90a8) which should also print the path of the theme that errors