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

Git icons don't change colour #2711

Open
superjohanna opened this issue Jun 19, 2024 · 3 comments
Open

Git icons don't change colour #2711

superjohanna opened this issue Jun 19, 2024 · 3 comments

Comments

@superjohanna
Copy link

I tried changing the colour of the git part and I could change the text colour but not the logo colour.

`function my_git_formatter() {
emulate -L zsh

      if [[ -n $P9K_CONTENT ]]; then
        # If P9K_CONTENT is not empty, use it. It's either "loading" or from vcs_info (not from
        # gitstatus plugin). VCS_STATUS_* parameters are not available in this case.
        typeset -g my_git_format=$P9K_CONTENT
        return
      fi

      # Styling for different parts of Git status.
      local       meta='%b%F{221}' # white foreground
      local      clean='%b%F{221}' # black foreground
      local   modified='%b%F{221}' # black foreground
      local  untracked='%b%F{221}' # black foreground
      local conflicted='%b%F{221}' # red foreground`

Also in the provided example file the line
local meta='%b%F{221}' # white foreground
was
local meta='%7F' # white foreground
originally and I didn't know why this colour was different than the others.

I just typed typeset -g into the console and it spat out a lot of text from which I copied the %b%F{221} part

Here's an image of what I mean

image

@rwmitchell
Copy link

rwmitchell commented Jun 19, 2024

I think I'm setting that color using:

POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_COLOR

How you get to there from where you are....

@kuntau
Copy link

kuntau commented Jun 24, 2024

How to use hex format with this weird %b%f stuff?

      local       meta='%b%F{221}' # white foreground
      local      clean='%b%F{221}' # black foreground
      local   modified='%b%F{221}' # black foreground
      local  untracked='%b%F{221}' # black foreground
      local conflicted='%b%F{221}' # red foreground

@romkatv
Copy link
Owner

romkatv commented Jun 24, 2024

local clean='%b%F{#ffffff}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants