Also specify a default StyleName for fonts
ClosedPublic

Authored by fvogt on Aug 6 2017, 9:57 AM.

Details

Summary

When saving, kcm_fonts adds the default selected StyleName,
so it needs to specified here as well to avoid mismatches.

BUG: 383191

Test Plan

Ran pkcon install with no kdeglobals.
Without this change: Bold title in the auth dialog
With this change: Normal title in the auth dialog

Diff Detail

Repository
R135 Integration for Qt applications in Plasma
Branch
stylename
Lint
No Linters Available
Unit
No Unit Test Coverage
fvogt created this revision.Aug 6 2017, 9:57 AM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 6 2017, 9:57 AM
davidedmundson accepted this revision.Aug 6 2017, 11:12 AM
This revision is now accepted and ready to land.Aug 6 2017, 11:12 AM
cfeck added a subscriber: cfeck.Aug 6 2017, 11:12 AM

Note that saving the style name is a bug, see https://bugs.kde.org/show_bug.cgi?id=378523

fvogt added a comment.Aug 6 2017, 11:35 AM
In D7160#132870, @cfeck wrote:

Note that saving the style name is a bug, see https://bugs.kde.org/show_bug.cgi?id=378523

While I'm not 100% sure that is true as that's how the user selects the font in kcm_fonts, I still think this patch is
by itself an improvement as the stylenames are provided by the font creators to ship predefined metrics for aesthetics.
Possibly related: https://github.com/qt/qtbase/commit/2bb01172a76f14b1f57010b79207f6b9a9bf3f53

So still ok to land?