Skip to content

matekbd-status: Fix green tint on indicator text - #96

Open
vkareh wants to merge 2 commits into
masterfrom
icon-subpixel-antialiasing
Open

matekbd-status: Fix green tint on indicator text#96
vkareh wants to merge 2 commits into
masterfrom
icon-subpixel-antialiasing

Conversation

@vkareh

@vkareh vkareh commented Aug 5, 2026

Copy link
Copy Markdown
Member

Keyboard layout indicator text could render with subpixel antialiasing even though SUBPIXEL was already avoided, because cairo falls back to the font's own fontconfig antialiasing mode whenever the requested mode is DEFAULT. This produced green/magenta color fringing on light-colored indicator text.

Also render indicator icon properly on HiDPI displays.

Fixes #71

vkareh added 2 commits August 5, 2026 16:50
Keyboard layout indicator text could render with subpixel antialiasing
even though SUBPIXEL was already avoided, because cairo falls back to
the font's own fontconfig antialiasing mode whenever the requested mode
is DEFAULT. This produced green/magenta color fringing on light-colored
indicator text.

Fixes #71
The keyboard layout indicator icon was always drawn at scale 1 and then
stretched by GTK+ to fit HiDPI outputs, making it blurrier than the
surrounding panel text.

This change renders both the flag image and the text-based icon at the
monitor's actual device scale so GTK+ can downscale instead of upscale.
@vkareh
vkareh requested a review from a team August 5, 2026 21:10
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.

Color of layout indicator text is green when antialiasing in font.conf is turned on

1 participant