Bug 394800 - Kirigami tints icons all black when using additional images
Summary: Kirigami tints icons all black when using additional images
Status: RESOLVED DUPLICATE of bug 451538
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: Master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-28 17:38 UTC by Murillo Bernardes
Modified: 2022-08-25 13:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Minimal app to reproduce the problem (70.76 KB, application/x-bzip2)
2018-05-28 17:38 UTC, Murillo Bernardes
Details
Image showing the problem (159.21 KB, image/png)
2018-05-28 17:41 UTC, Murillo Bernardes
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***