Created attachment 162761 [details] screenshot STEPS TO REPRODUCE 1. open Digital Clock settings 2. set "Text display" to "Manual" 3. click on "Choose style..." button OBSERVED RESULT Incorrectly styled font selector seen in the attached screenshot EXPECTED RESULT Correctly styled font selector SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.27.80 KDE Frameworks Version: 5.240.0 Qt Version: 6.6.0 Graphics Platform: Wayland
Can reproduce. It's quite horrible now. We must be doing something wrong in the Digital Clock code, as it works correctly in the Fonts KCM.
(In reply to Nate Graham from comment #1) > Can reproduce. It's quite horrible now. We must be doing something wrong in > the Digital Clock code, as it works correctly in the Fonts KCM. Nothing wrong per se. The difference is that the clock code uses the QML font dialog, which has this horrible default implementation. The KCM uses KFontChooserDialog, which is widgets-based
Ah right, and in Qt 6, the QML one no longer falls back to the Widgets one, right? Do we need to style it ourselves in plasma-integration or something?
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-integration/-/merge_requests/115
Git commit 53cfae46b00f7844718bb75c469cfcf6efcb070d by Nicolas Fella. Committed on 04/11/2023 at 23:19. Pushed by nicolasfella into branch 'master'. Implement Font dialogs QML FontDialog first queries the platform theme for an implementation. Since we don't provide one we get the default one, which is less than stellar. In Qt5 we would get a widgets-based one that works fine. We can get the Qt5 behavior back by asking for a QFontDialog (and passing DontUseNativeDialog to avoid endless recursion) M +1 -0 qt6/autotests/CMakeLists.txt M +1 -0 qt6/src/platformtheme/CMakeLists.txt A +64 -0 qt6/src/platformtheme/kdeplatformfontdialoghelper.cpp [License: LGPL(3+eV) LGPL(v3.0) LGPL(v2.0)] A +32 -0 qt6/src/platformtheme/kdeplatformfontdialoghelper.h [License: LGPL(3+eV) LGPL(v3.0) LGPL(v2.0)] M +3 -1 qt6/src/platformtheme/kdeplatformtheme.cpp https://invent.kde.org/plasma/plasma-integration/-/commit/53cfae46b00f7844718bb75c469cfcf6efcb070d