p-e-w / argos

Create GNOME Shell extensions in seconds

Home Page:https://extensions.gnome.org/extension/1176/argos/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

colorize no longer works in gnome 3.36.1

caribo opened this issue · comments

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

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:

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

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 🤷‍♂️

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

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