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

electron apps black icons #255

Closed
varlesh opened this issue Dec 24, 2016 · 21 comments
Closed

electron apps black icons #255

varlesh opened this issue Dec 24, 2016 · 21 comments
Labels

Comments

@varlesh
Copy link
Collaborator

varlesh commented Dec 24, 2016

hardcode-tray git version
icon theme: ePapirus
inkscape: 0.91
on elementaryOS loki applied black icons for electron apps.
LOG:

hardcode-tray -s 24 -fs
Welcome to the tray icons hardcoder fixer!
Your indicator icon size is : 24
Your current icon theme is : ePapirus
Svg to png functions are : Enabled
Applications will be fixed : All
1 - Apply
2 - Revert
Please choose: 1
Applying now..

Clementine               [#.......................................] 1/34 2.9%
Google Chrome            [##......................................] 2/34 5.9%
Skype                    [######################################..] 32/34 94.1%
Wire                     [########################################] 34/34 100.0%

Tested with skype4linux and wire:
2016-12-24 10 29 58

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 24, 2016

icon converted with inkscape to white color by manual fine. For example:

inkscape -z -f wire-tray.svg -e wire-tray.png

@bil-elmoussaoui What happened again?

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 24, 2016

also script change premissions to ROOT on inkscape config home user folder ~/.config/inkscape
2016-12-24 10 39 05

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 24, 2016

it's happened with only electron apps. Telegram, Clementine worked fine:
2016-12-24 10 54 36

@bilelmoussaoui
Copy link
Owner

Even when you try --force-inskcape ? For the config folder of inkscape, i will see what i can do about it. It must be due to running inkscape as root (which shouldn't btw causes this..)

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 24, 2016

Even when you try --force-inskcape ?

Yes, i'm attach log and doing this repeatedly - electron apps not use inkscape, because icon black.
also option revert not worked - status show OK, but really icons not reverted.

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 24, 2016

@bil-elmoussaoui maybe better use inkscape for all (by default) and remove cairo? Because cairo bugged :(

@bilelmoussaoui
Copy link
Owner

It's impossible that electron apps won't use inkscape instead of cairo. I will try to investigate more about this tomorrow morning. Are you using elementary OS? and where i can find the theme you're using?

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 24, 2016

Ok, thank you!
it's Papirus mod for elementary...

wget -qO- https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-icon-theme/master/install-papirus-root.sh | sh

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 27, 2016

@bil-elmoussaoui any news?

@bilelmoussaoui
Copy link
Owner

@varlesh I just installed elementary OS again, tried installing skypeforlinux but the tray icons are not working on elementary at all... do you have any idea?

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 27, 2016

need install libs:
sudo apt install libappindicator1 python-appindicator libappindicator3-1 libindicator3-7 libindicator7 wingpanel-indicator-ayatana

@bilelmoussaoui
Copy link
Owner

Ok i got the indicators now, and i got the dark icons too. It seems that inkscape does not convert icons right. As when i use --force-inkscape, it uses inkscape as expected (did some tests). I will try to extract the asar file and see if the icons are black or white..

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 27, 2016

No, inkscape worked right, because i'm convert icon manual:
inkscape -z -f input.svg -e output.png
And for other apps (not electron) all worked fine.
extract not needed - icons available on /tmp - chromium folders

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 27, 2016

it's happened with electron apps only and i don't know why...

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 27, 2016

i think script not use inkscape for electron or maybe electron.py have error

@bilelmoussaoui
Copy link
Owner

You're right! the issue is from electron.py i guess.. as i forgot to add the --force-inkscape to the electron script. I will add a hacky solution to fix this, a better fix will land with #248

@bilelmoussaoui
Copy link
Owner

Fixed! i've also fixed the same issue with chrome and spotify script. This issue shouldn't happen at all never again with the new version of the code!

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 27, 2016

revert worked too?

@bilelmoussaoui
Copy link
Owner

Yes it works perfectly on my computer. You must have corrupted the bak file that's why it doesn't revert to the right file. I'm thinking of a better backup revert feature. Like having the backup saved by date and time so you can have multiple versions saved. All of those saved on .config/hardcode-tray. For now, all i can tell you is reinstall the application to get the default asar file back and apply the script again. It should work fine.

@varlesh
Copy link
Collaborator Author

varlesh commented Dec 27, 2016

@bil-elmoussaoui Big thx!!! All fine:
image

@bilelmoussaoui
Copy link
Owner

bilelmoussaoui commented Dec 27, 2016

Happy to hear that it works! stay tuned, the new release will add some nice features!

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

No branches or pull requests

2 participants