gnome-shell-notifications-alert icon indicating copy to clipboard operation
gnome-shell-notifications-alert copied to clipboard

Add transparent colour option

Open amankhoza opened this issue 7 years ago • 3 comments

If possible it would be cool if the flashing of the text colour could be set to transparent so that it takes the colour of the current panel/background colour.

amankhoza avatar Apr 02 '17 11:04 amankhoza

For anyone who's interested I have a quick fix for this:

In this._toggleStyle in extension.js change the commented out line to the one below it:

// let userStyle = "color: " + settings.get_string(SETTING_COLOR);
let userStyle = "color: transparent";

If I have time in the future I might find a way of adding a transparent option in the preferences for the extension and open a PR, but for now this does the job for me. Works great with extensions like Dynamic top bar.

amankhoza avatar Nov 19 '17 20:11 amankhoza

@amankhoza it's nice that you found a workaround. The major problem here is that the extension uses the Gtk.ColorButton widget which doesn't have a transparent option there.

One way of doing that would be to add a boolean option in the preferences to set the color do transparent. That would set the colorbutton insensitive while it is set and your code would be applied to the main code inside an if/else for that option.

bellini666 avatar Nov 20 '17 14:11 bellini666

If anyone is interested in implementing this, this extension has the exact same color picker popup and has an option for transparent color. Seems to be making use of alpha.

https://github.com/sustmi/gnome-shell-extension-windowoverlay-icons

amankhoza avatar Sep 13 '19 12:09 amankhoza