Skip to content

[gui] StatusWidget: Fix base theme font not being applied#1011

Merged
ludouzi merged 1 commit into
fooyin:masterfrom
lstrsrt:status-widget-font
Apr 9, 2026
Merged

[gui] StatusWidget: Fix base theme font not being applied#1011
ludouzi merged 1 commit into
fooyin:masterfrom
lstrsrt:status-widget-font

Conversation

@lstrsrt

@lstrsrt lstrsrt commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Add a function to update the base font on style/theme change. The <font> tag still takes priority.

@ludouzi

ludouzi commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

The reason the theme entry Fooyin::StatusLabel or the base font is not applied by Qt automatically is because StatusLabel is only a compile-time alias of ElidedLabel. At runtime, it's still ElidedLabel.

As such, the fix may be as simple as:

class StatusLabel : public ElidedLabel
{
    Q_OBJECT

public:
    using ElidedLabel::ElidedLabel;
};

@lstrsrt lstrsrt force-pushed the status-widget-font branch from 484b4be to fbecde9 Compare April 9, 2026 19:35
@lstrsrt

lstrsrt commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

Yeah that's a better solution; changed.

@ludouzi ludouzi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ludouzi ludouzi merged commit 731c965 into fooyin:master Apr 9, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants