Skip to content

Render media widget bar text with NativeRendering for consistency with other bar widgets - #11042

Open
Realrandombacon wants to merge 1 commit into
omacom:quattrofrom
Realrandombacon:fix/media-widget-native-rendering
Open

Render media widget bar text with NativeRendering for consistency with other bar widgets#11042
Realrandombacon wants to merge 1 commit into
omacom:quattrofrom
Realrandombacon:fix/media-widget-native-rendering

Conversation

@Realrandombacon

Copy link
Copy Markdown

Problem

The media widget's bar text (play glyph + scrolling title) looks
slightly different from other bar widgets (clock, network, audio…)
even though they all use the same font family (bar.fontFamily) and
the same size (Style.font.body).

Cause

Every widget routed through WidgetButton renders its label with
renderType: Text.NativeRendering. The media widget's bar-row Text
elements use QML's default Text.QtRendering, a different
rasterizer whose output is visibly different at small bar font sizes.

Fix

Add renderType: Text.NativeRendering to the two bar-row Text
elements (glyph and labelText) in
shell/plugins/services/media/BarWidget.qml — 2 lines, no behavior
change beyond the rasterizer.

🤖 Generated with Claude Code

…h other bar widgets

Other bar widgets (clock, network, audio, etc.) render their label
through WidgetButton with renderType: Text.NativeRendering, while the
media widget's play glyph and scrolling title use the default
QtRendering. Same font family and size, but the different rasterizer is
visible at bar sizes. Align the two bar-row Text elements on
NativeRendering.

Co-Authored-By: Claude Code <noreply@anthropic.com>
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.

1 participant