Summary: | (KStatusNotifierItem): Message Counts in KMail tray icon don't show when using a plasma themed svg icon | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Kubicle <kde.bugs> |
Component: | UI | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | hrvoje.senjan, jjm, kdenis, montel, TheodorStormgrade |
Priority: | NOR | ||
Version: | 5.1.2 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Kubicle
2011-08-03 11:34:14 UTC
currently theming system tray icons with SVGs and application custom-painting are mutually exclusive. for now, i recommend not using a themed svg for kmail if you wish to see the count. (that customization combined with the status removing "always show this icon" modification makes this already seem a bit fishy: the user has carefully removed all means of status change notification. :) we may in future support something along the lines of (limited) custom overlays (such as counts) to status notifiers. Thanks for a quick response. Yes, this more of a minor nuisance (not many plasma themes include kmail/akregator icons), with a number of workarounds available (like using a customized regular png icon for theming). The use case for "always show icon" is that this is the only way (that I know of) to keep kmail loaded and running in the background when closing it's window, so it would be nice to have some new message feedback even with an svg icon (even if message counts are off the table at this point). For example, kopete handles svg icon files nicely by switching "kopete" and "kopete-offline" icons when necessary (and can even load the small status overlays over the svgs). The simplest way to "solve" the problem could be just switching the icon when there's new mail (diff below): 74c74 < mIcon = KIcon( "kmail" ); --- > mIcon = KIcon( "mail-unread-new" ); 184a185 > setIconByName( "mail-unread-new" ); Of course this could be configurable in a similar way that user's can choose their own icons for mail folders. And a few more changes would be required to reflect the new mail status in the tray icon tooltip as well. Another option could be toggling the active/passive mode in the StatusNotifierItem based on whether there is mail or not. (That seems to be the tendency in StatusNotifierItems, go active when there is something noteworthy and remain passive [hidden] otherwise). This shouldn't be a problem for those that wish to have the icon always shown, as "always show icon" can be forced in the notification tray settings. Git commit 487cace7ac63c51e89585475a808abcdf5ff86ae by Montel Laurent. Committed on 30/03/2012 at 13:29. Pushed by mlaurent into branch 'master'. Change icon when we have unread emails M +3 -1 kmail/kmsystemtray.cpp http://commits.kde.org/kdepim/487cace7ac63c51e89585475a808abcdf5ff86ae Git commit 9d579cdb3ea4765f373563f00648d9577473edf2 by Montel Laurent. Committed on 30/03/2012 at 13:29. Pushed by mlaurent into branch 'KDE/4.8'. Change icon when we have unread emails (cherry picked from commit 487cace7ac63c51e89585475a808abcdf5ff86ae) M +3 -1 kmail/kmsystemtray.cpp http://commits.kde.org/kdepim/9d579cdb3ea4765f373563f00648d9577473edf2 Much appreciated... Looking forward to the change in 4.9 and 4.8.3 (If I've understood the commits correctly?) yes in 4.8.2/4.9 I'm not sure how to interpret this correctly. It's still unconfirmed, and it does not work, but according to messages it is supposed to be fixed? The issue is still present using kde 4.10 beta1 still the case in latest kmail: 15.12.2-1 *** This bug has been marked as a duplicate of bug 377521 *** |