-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Problem description
There are some Linux distributions right now like elementary OS that are strictly sticking to the standard so Sublime Text is always showing the light color scheme on there.
The old method of determining to show the dark theme based on the GTK Theme has stopped working and may no longer work for more distributions in the future as this standard has been implemented already in both GNOME and KDE.
Preferred solution
Implement the freedesktop color scheme preference: https://github.com/flatpak/xdg-desktop-portal/blob/d7a304a00697d7d608821253cd013f3b97ac0fb6/data/org.freedesktop.impl.portal.Settings.xml#L33-L45
Alternatives
The current way of doing things (using GTK Theme) may be useful to keep for figuring out whether to use dark theme or not in older distributions but won't be adopted for some distributions like "elementary OS" as stated above.
Additional Information
https://bugzilla.mozilla.org/show_bug.cgi?id=1734934
flatpak/xdg-desktop-portal#633
https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/12
https://blogs.gnome.org/alexm/2021/10/04/dark-style-preference/