jaspernbrouwer / powerline-gitstatus

A Powerline segment for showing the status of a Git working copy
MIT License
383 stars 52 forks source link

Unable to customize colors #43

Open springcomp opened 2 years ago

springcomp commented 2 years ago

I have installed powerline and am able to customize the color of the default common.vsc.branch segment from the colorschemes/default.json file. I have been able to left the original file untouched in ~/.local and use a customized version in ~\.config.

However, I have not been able to make powerline_gitstatus.gitstatus segment to pick up on my color customizations. It appears to not work even when applying customizations both in ~/.local or in ~/.config.

image

In the previous configuration file, I applied a mediumorange color to both segments. However, as can be seen in the following snapshot, only the builtin segment takes the customization, not powerline_gitstatus.gitstatus.

image

Is there anything I’m missing?

tomaz-suller commented 2 years ago

I'm not sure if this is an issue with the module itself, but it seems that the gitstatus and gitstatus_branch parameters do not affect rendering in any way.

@springcomp I've just tested it here and it seems that changing the gitstatus_branch_clean and gitstatus_branch_dirty achieves what you want. As a side note, you shouldn't rely on modifications to the files in ~/.local since they can be overwritten in case of a update to Powerline.

I'm running Arch Linux, installed powerline from pacman (version 2.8.2-2) and pipeline_gitstatus from pip (Python version 3.9.7). I reckon the problem is not platform specific since you seem to be using Ubuntu or at least GNOME, but who knows.

springcomp commented 2 years ago

Hi @tomaz-suller please give me some time to investigate your solution. Thanks for the feedback.