erikw / tmux-powerline

⚡️ A tmux plugin giving you a hackable status bar consisting of dynamic & beautiful looking powerline segments, written purely in bash.
BSD 3-Clause "New" or "Revised" License
3.36k stars 508 forks source link

separator_foreground_color not working #426

Closed curbol closed 1 month ago

curbol commented 1 month ago

In the default theme there is this documentation on how to style each segment:

# * non_default_separator - specify an alternative character for this segment's separator
# * separator_background_color - specify a unique background color for the separator
# * separator_foreground_color - specify a unique foreground color for the separator

Expectation

My interpretation of this is that I should be able to change the color of the separator to a different color than the main segment text.

I'm expecting something like this where the separator is a different color than the text (screenshot from neovim):

image

Example segment definition that doesn't work correctly (abbreviated variable names):

"weather ${BG} ${FG} ${SEPARATOR} ${SEPARATOR_BG} ${SEPARATOR_FG}"

What actually happens

separator_background_color and separator_foreground_color don't do anything. Instead the separator always uses the colors of background_color and foreground_color

In the example above, the ${SEPARATOR_BG} and ${SEPARATOR_FG} don't appear to do anything. The ${SEPARATOR} is always the color of ${BG} and ${FG}.

image

From looking at example screenshots, I haven't ever seen a case where the separator is a different color, which leads me to believe this feature isn't working.

xx4h commented 1 month ago

You're right, this feature is not working. This is not theme related, it is not working at all.

I'll have a look, thanks for reporting :+1:

xx4h commented 1 month ago

Tested #427, but would be nice if someone else could give it a try as well.

curbol commented 1 month ago

Thanks for the fix. I confirmed that it's working:

image