Skip to content

matekbd-status: Fix flag icons being stretched to square in the tray - #98

Open
vkareh wants to merge 1 commit into
masterfrom
fix-flag-icon-aspect-ratio
Open

matekbd-status: Fix flag icons being stretched to square in the tray#98
vkareh wants to merge 1 commit into
masterfrom
fix-flag-icon-aspect-ratio

Conversation

@vkareh

@vkareh vkareh commented Aug 8, 2026

Copy link
Copy Markdown
Member

GTK forces flag images to a square pixel size and scales width/height independently, so flags get stretched to a square instead of preserving their aspect ratio.

This change loads flags into a square bounding box and letterbox them onto a transparent square canvas before passing to GTK, so the distortion never happens in the first place.

Fixes #11

GTK forces flag images to a square pixel size and scales width/height
independently, so flags get stretched to a square instead of preserving
their aspect ratio.

This change loads flags into a square bounding box and letterbox them
onto a transparent square canvas before passing to GTK, so the
distortion never happens in the first place.

Fixes #11
@vkareh
vkareh requested a review from a team August 8, 2026 12:38
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.

Flags are not scaled correctly

1 participant