kwin/qml
David Edmundson 110fa039cb Use consistent size icon in OSD
Summary:
The OSD's icon is based on the implicitSize of the IconItem.

For most icons this will be a hardcoded value from
KIconLoader::global()->currentSize

However, since bc33f0470d4d6bcbf30475f85b36705e8a99528b in
plasma-framework we sometimes return that value, sometimes will return the
source size of the underlying image depending on internal paths of how
the icon is loaded and whether it was in the plasma theme or not.

This patch overrides the implicitWidth given to the layout to be the
standard icon size.

BUG: 400083

Test Plan:
Loaded the force kill window OSD.
Icon still looked the same size on breeze.

I didn't reproduce the issue in the bug

Reviewers: #kwin, graesslin

Reviewed By: #kwin, graesslin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16432
2018-10-26 12:13:50 +01:00
..
onscreennotification/plasma Use consistent size icon in OSD 2018-10-26 12:13:50 +01:00
outline/plasma Animate quick tiling outline 2017-04-25 16:38:52 +02:00
virtualkeyboard Require Qt 5.7 and remove pre-5.7 code 2017-02-07 20:43:19 +01:00
CMakeLists.txt Introduce a KWin internal on-screen-notification service 2016-12-21 19:43:49 +01:00