argos icon indicating copy to clipboard operation
argos copied to clipboard

colorize no longer works in gnome 3.36.1

Open caribo opened this issue 5 years ago • 5 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

caribo avatar Apr 02 '20 16:04 caribo

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:

t-moennich avatar Apr 09 '20 04:04 t-moennich

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

caribo avatar Apr 09 '20 11:04 caribo

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 :man_shrugging:

t-moennich avatar Apr 09 '20 13:04 t-moennich

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

mstoetzer avatar May 06 '20 05:05 mstoetzer

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

ivan-gorin avatar Nov 24 '22 18:11 ivan-gorin