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

Does it support background color using ANSI? #893

Open
provCristianMaluenda opened this issue Jul 7, 2023 · 6 comments
Open

Does it support background color using ANSI? #893

provCristianMaluenda opened this issue Jul 7, 2023 · 6 comments

Comments

@provCristianMaluenda
Copy link

provCristianMaluenda commented Jul 7, 2023

Hi,
I am trying to set the background color using ANSI. The console looks fine, but xbar changes the color to the text and not the background.
I am using Python3 and the code is like:

HEALTHY='\x1b[42m'
UNHEALTHY='\x1b[41m'
NC='\x1b[0m'

print(f'{HEALTHY}dev{NC}')

Console:
image
xbar shows the text blue instead of the background:
image

I saw the example #703 but I can not find an example of a text with a colored background.

Thanks

@rcheetah
Copy link

rcheetah commented Sep 3, 2024

I can replicate this on mac os 14.6.1 (23G93) and xbar v2.1.7-beta

I'm wondering too! For a plugin I would like to add a red background for the menu text if the plugin needs attention.

@leaanthony
Copy link
Collaborator

If you could try this PR then I'd be happy to merge it: #818

@rcheetah
Copy link

rcheetah commented Sep 9, 2024

Thank you! Sadly I wasn't able to build it on my machine. I'm not a go dev and never used wails.
Also I didn't find any documentation on how to build the app. I tried the build.sh in /app, but I got a build error:

xbar v2.1.7-beta-43-g8d0deba
          2024/09/09 11:39:16 open at login: app needs to be running as package.app file to start at login
          FATAL: This application was built using "go build". This is unsupported. Please compile using "wails build".

I'm stuck here and sadly I don't have the time to further dig into this. I'm hopeful somebody familiar in developing for mac os will test this PR.

@leaanthony
Copy link
Collaborator

If @matryer is ok for me to merge it, perhaps he could do another release?

@matryer
Copy link
Owner

matryer commented Sep 9, 2024 via email

@leaanthony
Copy link
Collaborator

Done!

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