gitui
gitui copied to clipboard
UI is unintelligible on WezTerm + Fish Shell + Catppuccin theme
Describe the bug
gitui bottom row of commands looks funny and unintelligible with WezTerm, Fish Shell, Catppuccin theme.
To Reproduce Steps to reproduce the behavior:
- Use WezTerm, Fish Shell, and gitUI with their own respective Catppuccin ports (Macchiato in my case but it's the same with other variants)
Relevant configs:
# wezterm.lua
[...]
config.default_prog = { "/opt/homebrew/bin/fish", "-l" }
config.color_scheme = "Catppuccin Macchiato"
[...]
# config.fish
fish_config theme choose "Catppuccin Macchiato"
alias gitui="gitui -t catppuccin-macchiato.ron"
Expected behavior Clear and intelligible text
Screenshots
Context (please complete the following information):
- macOS 14.5
- gitui nightly 2024-06-02 ()
- rustc 1.79.0 (129f3b996 2024-06-10)
Additional context
- I am unsure where the problem lies
- using macOS native Terminal works fine. Even with
gitui -t catppuccin-macchiato.ron
I got the same issue (also using Catpuccin), fixed it with these overrides to my theme.ron
(
command_fg: Some("#CDD6F4"),
selection_bg: Some("#585B70"),
cmdbar_bg: Some("#1E1E2E"),
)
I got the same issue (also using Catpuccin), fixed it with these overrides to my
theme.ron
Thanks! :)
I'm opening an issue with Catppuccin for gitui port so it can be fixed for everyone :)
@Bjorn-Eric-Abr what Catppuccin variant is that for? I tried it on Macchiato but nothing changes/is fixed.
From a little testing it seems to be that the hex values must be capitalised. Hence why @Bjorn-Eric-Abr suggestion works?
Doesn't seem to have anything to do with the actual hex value.
It would also help to not use blue as the background for selected items, I don't think catppuccin is the only theme this is going to be problematic with
This is also happening for me on zsh, however, @Bjorn-Eric-Abr 's solutino doesn't seem to fix it for me. I went through and adjusted all of the hex values to be uppercase, but random options decide to be legible? I'll also note I have my iterm set to catpuccinn frappe as well...
EDIT: I'm an idiot, and did not do my symbolic links correctly. @Bjorn-Eric-Abr's solution of capitalizing the Hex values works for me as well!
Just for information, I have no problem on a Manjaro Linux system in the Gnome 48 environment and the original (with lowercase hex values) themes.
$ wezterm --version
wezterm 20240203-110809-5046fc22
$ gitui --version
gitui nightly 2025-02-28 (99f6967)
$ fish --version
fish, version 4.0.2
I also have a small function to detect the dark mode automatically:
function gitui
set mode (gsettings get org.gnome.desktop.interface color-scheme)
if test "$mode" = "prefer-dark"
command gitui -t catppuccin-mocha.ron $argv
else
command gitui -t catppuccin-latte.ron $argv
end
end