gitui icon indicating copy to clipboard operation
gitui copied to clipboard

UI is unintelligible on WezTerm + Fish Shell + Catppuccin theme

Open andreacfromtheapp opened this issue 1 year ago • 7 comments

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:

  1. 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

Screenshot 2024-07-02 at 11 46 31 AM

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

andreacfromtheapp avatar Jul 02 '24 10:07 andreacfromtheapp

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"),
)

More info on theme file here

Bjorn-Eric-Abr avatar Jul 03 '24 09:07 Bjorn-Eric-Abr

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 :)

andreacfromtheapp avatar Jul 03 '24 09:07 andreacfromtheapp

@Bjorn-Eric-Abr what Catppuccin variant is that for? I tried it on Macchiato but nothing changes/is fixed.

andreacfromtheapp avatar Jul 06 '24 07:07 andreacfromtheapp

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.

GiggleSquid avatar Jun 14 '25 14:06 GiggleSquid

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

ForsakenHarmony avatar Jun 27 '25 08:06 ForsakenHarmony

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...

Image

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!

jjellison avatar Jul 19 '25 05:07 jjellison

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

ChristopheCJean avatar Jul 25 '25 14:07 ChristopheCJean