You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Linux] resort to "-dark" suffix for detecting platform brightness
Some users have reported that toggling between light and dark system
theme results in Flutter detecting the opposite theme. This is because
the window text color, which is used to calculate the brightness, may
not have been yet refreshed when the theme change signal is emitted.
This commit replaces the unreliable (and untestable) window text color
-based theme detection with the simpler alternative proposed in
flutter#25535 to check for a "-dark" suffix in the theme name,
which is used by convention in dark GTK theme names (Yaru vs. Yaru-dark,
Adwaita vs. Adwaita-dark, Pop vs. Pop-dark, ...).
Ref: flutter/flutter#101438
0 commit comments