-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
draw mail count background with cairo #3
draw mail count background with cairo #3
Conversation
I'm using appindicator, which doesn't support the counter. The icon looks otherwise blurry and pixelated, maybe because it uses a fixed size that is too small. Anyway, I force disabled appindicator and I can see that the icon is completely broken. Firetray + appindicator uses system icons, while the GTK tray icon uses an image embedded in the xpi. Since the addon is not unpacked, it cannot be loaded. It's the same problem I found on Windows. Manually extracting the xpi fixes the problem, but your solution seems better. Maybe you could make it easier to change the default size with something like the following:
EDIT: |
Appindicator means, your normal FireTray setting is to switch the icon? Deleted some useless text here. |
Forget my previous two comments... too early, not enough coffee yet... ;) |
Updated my pull request, using some of your suggestions. If your icon looks blurry, this might not the problem of the simple background square, but rather of the foreground (number), which is rendered beginning with line 290 in the same file (FiretrayGtkStatusIcon.jsm). I didn't touch anything there. |
I don't know what makes the icon blurry, but the problem is not limited to the counter. Even the regular icon and custom icons look blurry. I've seen this happen with most of the application using XEmbed for the trayicon (I'm using KDE). |
Weird thing. I'm using FireTray with gtk3 (xfce4-panel) and with regular system icons (Faenza icon set I suppose). Everything works and looks the same as it did with Thunderbird versions before 60. But I don't know, how this all works, FireTray seems pretty complex to me. |
Oh, this isn't a regression, it's been this way for quite a while and the problem is not limited to Thunderbird. If I remember correctly Xembed icons (which should be what the gtk version of FireTray use) are limited to 22x22 pixels, so even with a not so high-res screen the icon looks blurry. |
Just in case, you were interested in mail count (number) shown in tray - this works for me.
I admit, it's just a workaround and this is my first contribution to a Thunderbird extension.
I wasn't able to figure out, why using an existing image as background to compose fails in current TB. But drawing with cairo works.