sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
812 stars 39 forks source link

ST doesn't perform gamma corrected alpha blending on Linux #5626

Open pushqrdx opened 2 years ago

pushqrdx commented 2 years ago

Description of the bug

Sublime Text doesn't perform gamma correction on Linux resulting in frail looking text.

Expected behavior

Like on Windows and MacOS, ST should perform gamma correction on Linux

Sublime Text build number

all

Operating system & version

Linux

(Linux) Desktop environment and/or window manager

any

BenjaminSchaaf commented 1 year ago

We do have gamma correction on all 3 platforms and empirically match GTKs text rendering. Do you have a specific example where this isn't the case?

deathaxe commented 1 year ago

The issue's origin is a discussion at discord.

see: https://discord.com/channels/280102180189634562/280102180189634562/1078807279920484405

FWIW, most light color schemes look pretty light and with low contrast to me on my Win 11 box. Not sure if it is related with gamma correction, or poorly choosen colors in color schemes. But popular color schemes such as AYU-light are barely readable. Not a big deal for me as I prefer dark ones anyway.

pushqrdx commented 1 year ago

and empirically match GTKs text rendering

@BenjaminSchaaf this is exactly why the net effect is that it appears like ST doesn't have gamma correction as GTK does NOT perform any gamma correction and assumes gamma 1.0 so matching it means disabled gamma correction.