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

colorize no longer works in gnome 3.36.1 #112

Open
caribo opened this issue Apr 2, 2020 · 5 comments
Open

colorize no longer works in gnome 3.36.1 #112

caribo opened this issue Apr 2, 2020 · 5 comments

Comments

@caribo
Copy link

caribo commented Apr 2, 2020

Since upgrading to gnome 3.36.1 setting output text colour using the color attribute no longer affects the colour of the text.

Maybe related to the following commit ?

https://gitlab.gnome.org/rockon999/gnome-shell/-/commit/8c0fc84e35b6017314d92d589b5a915ee1dcf16d

@t-moennich
Copy link

fyi related merge requests are maybe:
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1148
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1125

Also, as a fun fact, if we use a emoji in the argos title, the coloring is working.
If not, the color were just the default from current theme.

So as always, emojis are the solution! :trollface:

@caribo
Copy link
Author

caribo commented Apr 9, 2020

Can you tell me how to "use a emoji in the argos title" so I can test your emoji workaround ?

@t-moennich
Copy link

t-moennich commented Apr 9, 2020

Can you tell me how to "use a emoji in the argos title" so I can test your emoji workaround ?

@caribo yes of course!
You can use any emoji code https://www.webfx.com/tools/emoji-cheat-sheet/ here (Could also be disabled in argos with emojize=false)

So as an simple example

#!/usr/local/bin/node

// This don't work
console.log(`<span foreground="#e86f6f">Test red</span>`);
// This also NOT works, the emoji must be at the start
console.log(`<span foreground="#e86f6f">Test red</span> :smile:`);
// This WILL work
console.log(`:smile: <span foreground="#e86f6f">Test red</span>`);
// This also works, why so ever (an empty span do NOT work..)
console.log(`<span> </span> <span foreground="#e86f6f">Test red</span>`);

So as a workaround, the first thing in the text must be an emoji or empty span tag with at least one whitespace 🤷‍♂️

@mstoetzer
Copy link

There is a dev RPM package using the following patch for menuitem.js: link

@ivan-gorin
Copy link

What is the actual issue behind this? Is it a gnome shell problem or an argos problem?

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