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
Describe the bug
When selecting text in e.g. a TextBox, the selected text color does not match adjust based on accent brightness.
Setting "blue" theme color in Windows:
Results in:
While in Flutter:
The text stays black making it hard to read due to low contrast. In the FluentThemeData I found that there is no option to change text selection color, only the accentColor is used instead.
Expected behavior
Text on dark accent colors should be white.
This would only apply to the TextBox (and related) widget, since we don't really have control over the SelectableText widget for now.
Yet, there is still a blocker for this: flutter/flutter#99231
Even in material's TextSelectionThemeData, there isn't a property to change the text color to have a better contrast with the background.
I like the idea of having a text selection theme data, but I don't like the idea to implement it without the issue mentioned above being fixed first.
On the other hand, I'd suggest to use a lighter shade of the accentColor as the default selection color.
I see. I am using the system accent color, so I cannot control that variable. I thought that the material selectable text style supported that (but I did not try). Let's see what flutter team comes up with then.
Describe the bug
When selecting text in e.g. a
TextBox
, the selected text color does not match adjust based on accent brightness.Setting "blue" theme color in Windows:
Results in:
While in Flutter:
The text stays black making it hard to read due to low contrast. In the
FluentThemeData
I found that there is no option to change text selection color, only theaccentColor
is used instead.Expected behavior
Text on dark accent colors should be white.
The text was updated successfully, but these errors were encountered: