Bug 397248 - Tray icon not used form Plasma theme
Summary: Tray icon not used form Plasma theme
Status: CONFIRMED
Alias: None
Product: krfb
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: George Goldberg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-07 19:21 UTC by varlesh
Modified: 2018-08-08 13:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
preview bug (883.45 KB, image/png)
2018-08-07 19:23 UTC, varlesh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description varlesh 2018-08-07 19:21:05 UTC
All KDE applications used icons for tray from plasma theme. But KRFB not... it's spoil style with monochrome icons on tray.
After add file krfb.svg on plasma theme with ID's:
- krfb
- 22-22-krfb
KRFB used system icon from system icon theme, but not from plasma theme.

https://github.com/PapirusDevelopmentTeam/adapta-kde/issues/73
Comment 1 varlesh 2018-08-07 19:23:59 UTC
Created attachment 114362 [details]
preview bug
Comment 2 Kai Uwe Broulik 2018-08-08 13:15:45 UTC
The problem is that krfb sets a custom pixmap icon:

setIconByPixmap(QIcon::fromTheme("krfb").pixmap(22, 22, QIcon::Disabled));

So it can be "disabled" or "enabled" depending on whether there is a client connected or not.

Moreover, QIcon::fromTheme uses the application icon theme instead of Plasma's.