powerlevel10k icon indicating copy to clipboard operation
powerlevel10k copied to clipboard

Git icons don't change colour

Open superjohanna opened this issue 1 year ago • 3 comments

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

superjohanna avatar Jun 19 '24 18:06 superjohanna

I think I'm setting that color using:

POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_COLOR

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

rwmitchell avatar Jun 19 '24 19:06 rwmitchell

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

kuntau avatar Jun 24 '24 06:06 kuntau

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

romkatv avatar Jun 24 '24 06:06 romkatv