Bug 410943

Summary: QtQuick scenes inside a QQuickWidget inside a QTabBar have a background color that slightly differs from the tab frame's background color
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: Nate Graham <nate>
Component: generalAssignee: Marco Martin <notmart>
Status: CONFIRMED ---    
Severity: minor CC: bugseforuns, kde
Priority: NOR Keywords: usability
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screen Locking KCM (with D23184)

Description Nate Graham 2019-08-15 15:31:44 UTC
Created attachment 122142 [details]
Screen Locking KCM (with D23184)

When a QQuickWidget is placed inside a QTabBar, the background color of the QtQuick parts differ slightly from the background color of the area inside the QTabWidget. This appears to be because the Breeze theme slightly lightens the background color of the TabWidget's frame, but this does not happen for QtQuick components.

Perhaps we could detect when a QtQuick scene is placed inside a QtQuickWidget that's inside a QTabBar, and then perform the same background color adjustment. Basically we need to do this: https://cgit.kde.org/sddm-kcm.git/tree/src/qml/main.qml#n27

...but only conditionally, when it's inside a QTabBar.
Comment 1 Nate Graham 2019-11-20 16:03:40 UTC
*** Bug 414330 has been marked as a duplicate of this bug. ***