[frameworks-kirigami] [Bug 394800] Kirigami tints icons all black when using additional images

2018-05-28 Thread Murillo Fernandes Bernardes
https://bugs.kde.org/show_bug.cgi?id=394800

--- Comment #1 from Murillo Fernandes Bernardes  ---
Created attachment 112929
  --> https://bugs.kde.org/attachment.cgi?id=112929&action=edit
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kirigami] [Bug 394800] New: Kirigami tints icons all black when using additional images

2018-05-28 Thread Murillo Fernandes Bernardes
https://bugs.kde.org/show_bug.cgi?id=394800

Bug ID: 394800
   Summary: Kirigami tints icons all black when using additional
images
   Product: frameworks-kirigami
   Version: Master
  Platform: Compiled Sources
OS: Linux
Status: UNCONFIRMED
  Severity: normal
  Priority: NOR
 Component: general
  Assignee: notm...@gmail.com
  Reporter: mfbernar...@gmail.com
  Target Milestone: Not decided

Created attachment 112928
  --> https://bugs.kde.org/attachment.cgi?id=112928&action=edit
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kirigami] [Bug 394204] New: Kirigami showPassiveNotification with action button hijacks touch events after timeout

2018-05-13 Thread Murillo Fernandes Bernardes
https://bugs.kde.org/show_bug.cgi?id=394204

Bug ID: 394204
   Summary: Kirigami showPassiveNotification with action button
hijacks touch events after timeout
   Product: frameworks-kirigami
   Version: 5.46.0
  Platform: Other
OS: other
Status: UNCONFIRMED
  Severity: normal
  Priority: NOR
 Component: general
  Assignee: notm...@gmail.com
  Reporter: mfbernar...@gmail.com
  Target Milestone: Not decided

Calling showPassiveNotification with an actionText and callBack ends up
hijacking the bottom area of the screen.

Even with the actionButton invisible it still receives and handles all touch
events.

According to MouseArea documentation it does not propagate the enabled property
to children, so by binding background enabled to root's it works as expected,
although might not be the best approach.


-- src/controls/templates/private/PassiveNotification.qml.old   2018-05-13
15:24:26.0 +0200
+++ src/controls/templates/private/PassiveNotification.qml  2018-05-13
15:34:34.0 +0200
@@ -105,6 +105,7 @@

 Item {
 id: background
+enabled: root.enabled
 width: backgroundRect.width + Units.gridUnit
 height: backgroundRect.height + Units.gridUnit
 Rectangle {

-- 
You are receiving this mail because:
You are watching all bug changes.