Bug 400911 - [nightly build/flatpak] Icons in the toolbox change on mouseover while a third-party icon theme is used on the system
Summary: [nightly build/flatpak] Icons in the toolbox change on mouseover while a thir...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kolourpaint
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kolourpaint-support
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-10 12:39 UTC by Patrick Silva
Modified: 2019-01-06 12:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
demonstration (683.51 KB, video/webm)
2018-11-10 12:39 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2018-11-10 12:39:05 UTC
Created attachment 116231 [details]
demonstration

STEPS TO REPRODUCE
1. install nightly build of KolourPaint via kdeapps repo
https://community.kde.org/Guidelines_and_HOWTOs/Flatpak
2. open KolourPaint
3. hover over icons in the toolbox

OBSERVED RESULT
some icons change on mouseover, watch the screencast please.

EXPECTED RESULT
icons do not change on mouseover


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.14.3
Qt Version: 5.12.0 beta4
KDE Frameworks Version: 5.52.0

ADDITIONAL INFORMATION
the behavior deswcribed here does not occur with kolourPaint 18.08.3
install from Arch Linux repos.
Comment 1 Patrick Silva 2018-12-29 10:24:24 UTC
This behavior only occurs while a third-party icon theme is used on the system. settings.
Comment 2 Martin Koller 2018-12-29 11:05:47 UTC
It seems Qt's QIcon delivers a different pixmap when the QToolButton is hovered (it's in QIcon::Active mode), although this is not handled by kolourpaint and therefore nothing I can fix.
Check the difference of the available icon images in the different themes.
Maybe this 3rd party theme also installs a different icon engine plugin ?
Comment 3 Patrick Silva 2018-12-29 11:14:48 UTC
I can reproduce the behavior with newaita and antü themes, both installed from kde store.
Where is the right place to report this bug?
Thanks Martin.
Comment 4 Martin Koller 2018-12-29 12:17:36 UTC
I tried to reproduce the problem with Newaita on my openSuse Leap 15 system,
but I don't see a problem here.
The Newaita icon theme does not install any plugin - only icons, so I assume the problem is somewhere else, but to be honest I don't know where.
I would assume that the issue shall also be seen with other KDE apps then (at least with apps which include their own icons which are non-standard in a theme)

In fact what happens is that Newaita does not include the special tool icons kolourpaint needs, so it falls back to some other icon theme (e.g. in your video when hovering and here on my system always to be breeze icon theme).
You can see what paths it checks when you run "strace kolourpaint" in a shell and then search for e.g. tool_curve

This still does not explain why this happens on your system only on hover.
Maybe it has to do with the KF5 library versions or some system/distribution specific changes.

When I check for loaded theme related libs in a running kolourpaint, I do
grep -i theme /proc/<PID of kolourpaint>/maps
and it shows e.g.
/usr/lib64/qt5/plugins/platformthemes/KDEPlasmaPlatformTheme.so
/usr/lib64/libKF5IconThemes.so.5.45.0
maybe this is different on your system ?
Comment 5 Patrick Silva 2018-12-29 13:33:52 UTC
I can't start flatpak kolourpaint with strace command on my system.

output of grep -i theme /proc/<PID of kolourpaint>/maps:

/usr/lib/plugins/platformthemes/KDEPlasmaPlatformTheme.so
/usr/lib/plugins/platformthemes/KDEPlasmaPlatformTheme.so
/usr/lib/plugins/platformthemes/KDEPlasmaPlatformTheme.so
/usr/lib/plugins/platformthemes/KDEPlasmaPlatformTheme.so
/usr/lib/plugins/platformthemes/libqflatpak.so
/usr/lib/plugins/platformthemes/libqflatpak.so
/usr/lib/plugins/platformthemes/libqflatpak.so
/usr/lib/libKF5IconThemes.so.5.53.0
/usr/lib/libKF5IconThemes.so.5.53.0
/usr/lib/libKF5IconThemes.so.5.53.0
/usr/lib/libKF5IconThemes.so.5.53.0
Comment 6 Martin Koller 2018-12-31 10:03:30 UTC
Is there any change if you remove or rename /usr/lib/plugins/platformthemes/libqflatpak.so
before you start kolourpaint ?
Comment 7 Patrick Silva 2019-01-05 18:04:05 UTC
(In reply to Martin Koller from comment #6)
> Is there any change if you remove or rename
> /usr/lib/plugins/platformthemes/libqflatpak.so
> before you start kolourpaint ?

No. Such file does not exist on my system.
Comment 8 Martin Koller 2019-01-06 08:49:20 UTC
See your comment #5
YOU told me that kolourpaint has this file loaded.
Since I do not know this file, I thought maybe this is the reason for the difference.
Comment 9 Patrick Silva 2019-01-06 12:08:45 UTC
Yes, your grep command shows /usr/lib/plugins/platformthemes/libqflatpak.so.
However not even /usr/lib/plugins/platformthemes/ directory exists.
'cd /usr/lib/plugins/platformthemes/' command output is
'bash: cd: /usr/lib/plugins/platformthemes/: No such file or directory'.

I get the same results on neon dev unstable.