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:

  1. Install gitui via brew
  2. Add a theme at ~/.config/gitui/theme.ron
  3. Example theme:
(
    line_break: Some(""),
    selection_bg: Some(LightBlue),
)
  1. Open gitui
  2. 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

Most upvoted comments

@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