Bug 2249260 - F39: glitchy theming of inactive and disabled widgets under Qt5 with dark theme
Summary: F39: glitchy theming of inactive and disabled widgets under Qt5 with dark theme
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qt5-qtbase
Version: 39
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Grulich
QA Contact: Fedora Extras Quality Assurance
URL: https://bugreports.qt.io/browse/QTBUG...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-11 18:24 UTC by Rok Mandeljc
Modified: 2023-12-13 01:34 UTC (History)
5 users (show)

Fixed In Version: qt5-qtbase-5.15.11-6.fc39 qt5-qtbase-5.15.11-7.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-17 01:38:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rok Mandeljc 2023-11-11 18:24:27 UTC
With Fedora 39 dropping adwaita-qt for its Qt5 and Qt6, the issues with Qt's built-in theme are showing up. 

In particular, when using dark theme, certain widgets (push button, tab widget, scroll area) are reverting to bright theme when they are inactive (the window is out of focus) or disabled. 

Upstream bug: https://bugreports.qt.io/browse/QTBUG-112879

The upstream has a series of commits to address this issue, slated for the upcoming Qt 6.5.4 and 6.6.1 releases. So for qt6-qtbase, this will sort itself out once Fedora updates to the new release.

But for the qt5-qtbase, the following commits should be backported on top of already-backported theming support carried by Fedora qt5-qbase build:
* Fix memory leak in QGtk3Interface::themeName - 55d3a2442c92addd688a9f570515d391a79bf2cf
* Fix disabled button color in Linux (X11/Wayland) - 3e971798e73d5414f65841f70de0ba5d5f71097f
* Fix inactive palette in gtk3 theme - 18a8b8f3c6d6bff6d646599572c59b09e97e34b0
* Fix tooltip palette issue in gtk3 theme - 173038ae190f36866070181a6cb5b5f743c33539
* QGtk3Theme: define light, midlight, mid, dark and shadow colors - 516cae81dfc82c7289445c34389aa6bf0de2d79f

Reproducible: Always

Steps to Reproduce:
1.Run a Qt5 application that does not provide its own theming overrides (such as VirtualBox, or Qt Widgets Gallery Example from Qt for Python)
2.Drag the window around or bring a different application window to focus.
Actual Results:  
The affected widgets switch to bright theme.

Expected Results:  
All widgets should retain dark theming.

Comment 1 Jan Grulich 2023-11-13 08:28:48 UTC
Thank you. I will backport all these.

Comment 2 Fedora Update System 2023-11-14 11:34:58 UTC
FEDORA-2023-d57cc5c7b6 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d57cc5c7b6

Comment 3 Fedora Update System 2023-11-14 11:35:43 UTC
FEDORA-2023-ec5471d827 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ec5471d827

Comment 4 Fedora Update System 2023-11-15 03:24:16 UTC
FEDORA-2023-ec5471d827 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-ec5471d827`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-ec5471d827

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-11-15 04:06:35 UTC
FEDORA-2023-d57cc5c7b6 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-d57cc5c7b6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-d57cc5c7b6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2023-11-17 01:38:38 UTC
FEDORA-2023-d57cc5c7b6 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2023-11-28 02:24:13 UTC
FEDORA-2023-ec5471d827 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-ec5471d827`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-ec5471d827

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-12-13 01:34:06 UTC
FEDORA-2023-ec5471d827 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.