Bug 394800

Summary: Kirigami tints icons all black when using additional images
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Murillo Bernardes <mfbernardes>
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: Master   
Target Milestone: Not decided   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Minimal app to reproduce the problem
Image showing the problem

Description Murillo Bernardes 2018-05-28 17:38:42 UTC
Created attachment 112928 [details]
Minimal app to reproduce the problem

While working on Subsurface-mobile I noticed Kirigami is tinting external icons totally black.

This does not happen to breeze icons, but it does happen to additional images used (both png and svg).

I traced the problem to kirigami/src/desktopicon.cpp. On lines 504-514 there is a check to decide when to tint. After the QPainter fills the image it turns black.


Reproduced using:
- Kubuntu 18.04, MacOS 10.13.4 and iOS 11.3
- Qt 5.10.1 and 5.11.0 downloaded directly from qt.io

Attached is a simple application that reproduces the problem.
Comment 1 Murillo Bernardes 2018-05-28 17:41:05 UTC
Created attachment 112929 [details]
Image showing the problem

On this screen three Kirigami.Icon are created.

First uses a png, second an svg, third uses one from breeze-icons.
Comment 2 Nate Graham 2022-08-25 13:20:24 UTC

*** This bug has been marked as a duplicate of bug 451538 ***