matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
https://xbarapp.com
MIT License
17.55k stars 643 forks source link

No color on menubar with xbar #628

Closed drbayer closed 3 years ago

drbayer commented 3 years ago

I'm trying to move from bitbar to xbar, and I notice that plugins in xbar do not display color on the menubar but they do in the drop down. Here is a very simple plugin to illustrate:

test.5s.sh

#!/usr/bin/env bash

declare -a colors=('#ff0000' '#00ff00' '#0000ff')
time=$(date "+%s")
index=$((time % 3))

echo "Test ${colors[index]} | color=${colors[index]}"
echo "---"
echo "color: ${colors[index]} | color=${colors[index]}"

When I run this using bitbar I see the Test line in color on the menubar and the color: line in color in the drop down. When I run this using xbar I only get color on the color: line in the drop down.

I'm running xbar v2.0.19-beta on macOS 11.2.3 Big Sur.

leaanthony commented 3 years ago

Thanks for the detailed report! We'll look into this 👍

matryer commented 3 years ago

I think this has something to do with this: https://github.com/matryer/xbar/issues/630

leaanthony commented 3 years ago

Duplicate duplicate! 😃

matryer commented 3 years ago

@drbayer we think this is fixed, could you try the latest release and let us know?

drbayer commented 3 years ago

Beautiful! Works great.

matryer commented 3 years ago

@drbayer thanks David :)