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

Add transparent colour option #34

Open
amankhoza opened this issue Apr 2, 2017 · 3 comments
Open

Add transparent colour option #34

amankhoza opened this issue Apr 2, 2017 · 3 comments

Comments

@amankhoza
Copy link

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
Copy link
Author

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.

@bellini666
Copy link
Owner

@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.

@amankhoza
Copy link
Author

amankhoza commented Sep 13, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants