Bug 334818

Summary: Label doesn't pick up UI font changes at runtime
Product: [Frameworks and Libraries] libplasma Reporter: Eike Hein <hein>
Component: componentsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: kde, sebas
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eike Hein 2014-05-15 14:34:28 UTC
When changing the "General" font in the Fonts KCM, existing PlasmaComponents.Label instances don't pick up the new font. Newly-constructed instances do, though.

A good testcase is the Kicker menu widget: Once the FullRepresentation popup is instanciated, those delegates stick around (unless a sycoca change happens), but subdialog delegates get freshly constructed when the first dialog is opened, and discarded when the dialog is closed.

Reproducible: Always
Comment 1 Kai Uwe Broulik 2014-12-28 21:05:48 UTC
It doesn't seem to pick up color changes (anymore?) either, switching to Breeze-Dark gives me darkgray text on black.
Comment 2 Kai Uwe Broulik 2014-12-28 21:12:58 UTC
I think the issue lie somewhere else. Label just binds to the theme.defaultFont, theme installs an event filter and emits a changed signal if it changes. But that event never gets emitted in the first place, the event filter doesn't work apparently.
Comment 3 Kai Uwe Broulik 2014-12-28 22:43:57 UTC
Git commit b4e1fd5f1ca389e17e0b5b771938eb59fb60535b by Kai Uwe Broulik.
Committed on 28/12/2014 at 22:42.
Pushed by broulik into branch 'master'.

Keep the event filter around so get notified of font changes at runtime

Changelog: Fix labels not picking up changes to font settings at runtime

REVIEW: 121728

M  +0    -6    src/plasma/private/theme_p.cpp

http://commits.kde.org/plasma-framework/b4e1fd5f1ca389e17e0b5b771938eb59fb60535b