Bug 499562 - No KDE styling for Qt's QML MessageDialog component
Summary: No KDE styling for Qt's QML MessageDialog component
Status: CONFIRMED
Alias: None
Product: plasma-integration
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.0.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6, regression
Depends on:
Blocks:
 
Reported: 2025-02-05 20:32 UTC by Eamonn Rea
Modified: 2025-07-21 15:26 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Current Remove Connection Dialogue Example Screenshot (20.89 KB, image/png)
2025-02-06 22:58 UTC, Eamonn Rea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eamonn Rea 2025-02-05 20:32:44 UTC
SUMMARY
When clicking the Remove Connection button (the "-" button along the bottom of Wi-Fi & Networking, or by right-clicking on a connection and choosing "Delete" from the context menu), the dialogue theming does not match the rest of the system.

Possibly relevant and potentially related, the theming issue is similar to the problem in Bug 487387.


STEPS TO REPRODUCE
1. Open the Wi-Fi & Networking menu in System Settings.
2. Choose a connection to remove from the list.
3. The dialogue that appears does not look match the rest of the system.

OBSERVED RESULT
The "Remove Connection" dialogue does not match the rest of the system.

EXPECTED RESULT
The "Remove Connection" dialogue should match the rest of the system.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Justin Zobel 2025-02-06 05:06:39 UTC
Confirmed on
Operating System: KDE Linux 202502050256
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 x Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Intel(R) UHD Graphics
Comment 2 David Redondo 2025-02-06 15:02:31 UTC
What do you mean with "doesn't follow theming? It certainly looks a bit off but colors etc. are correct for me. Can you provide a screenshot?
Comment 3 Eamonn Rea 2025-02-06 22:54:05 UTC
I was referring to the Breeze theming, around buttons, the black border around the window, and the general layout does not really match the rest of the system. Comparing it with other dialogues it is a bit off. I will attach a screenshot after posting this comment.
Comment 4 Eamonn Rea 2025-02-06 22:58:30 UTC
Created attachment 178035 [details]
Current Remove Connection Dialogue Example Screenshot
Comment 5 David Redondo 2025-02-07 07:55:38 UTC
Thanks. I will take a look
Comment 6 Bug Janitor Service 2025-02-07 08:53:23 UTC Comment hidden (spam)
Comment 7 David Redondo 2025-02-07 09:38:13 UTC Comment hidden (spam)
Comment 8 Nate Graham 2025-02-24 21:44:37 UTC
*** Bug 500060 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2025-04-09 17:05:51 UTC
*** Bug 502589 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2025-05-13 18:56:37 UTC
*** Bug 504095 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2025-05-21 13:44:47 UTC
*** Bug 504603 has been marked as a duplicate of this bug. ***
Comment 12 Nate Graham 2025-05-21 13:46:23 UTC
This is mostly a Qt issue; in Qt 6, QML dialogs come from Qt directly, and don't use our theming.

We need to either redirect the requests in our own code so we can show a KDE-provided dialog, or else work upstream with the Qt people to make their dialog respect our theming.
Comment 13 Nate Graham 2025-06-10 15:42:24 UTC
*** Bug 505436 has been marked as a duplicate of this bug. ***
Comment 14 cwo 2025-06-11 12:47:33 UTC
The issue here seems to be MessageDialog. (We have separate bugs for ColorDialog and FontDialog, and File/FolderDialog we already get good dialogs).

This isn't a particularly heavily used component in the first place:

https://lxr.kde.org/search?%21v=kf6-qt6&_filestring=.qml&_string=MessageDialog

Most of them are the Kirigami.Addons MessageDialog, and some completely custom things named MessageDialog. I think the QtQuick.Dialogs version is only used in

- The Networks kcm to remove connections
- Sticky Notes widget for removing notes
- colord-kcm (which is X11 only)

And a few times in apps:

- Elisa in Settings and Track dialogs
- KDE Connect SMS
- DayKountdown
- (and Cutehmi uses the Platform version, which is deprecated in favor of the QtQuick.Dialogs version)

Seems like these could just be ported to Kirigami.PromptDialog or similar (except maybe Sticky Notes?).
Comment 15 Nate Graham 2025-06-11 14:20:15 UTC
That's one option, yeah — except for Sticky Notes which could use a QtWidgets-based dialog.

Another option, I believe, is adding our own styling for this in Plasma Integration, overriding the junky upstream styling from Qt.