Closed jpnurmi closed 1 year ago
On a related note, light dialogs don't have any border so it doesn't stand out against the common background. I'd imagine the animated theme change would also look nicer if both ends of the transition had a border.
Light | Dark |
---|---|
If we specify DialogTheme.backgroundColor
for both light and dark themes then it transitions smooth. Currently, it's only specified for the dark theme:
https://github.com/ubuntu/yaru.dart/blob/main/lib/src/themes/common_themes.dart#L128-L140
ThemeData.dialogBackgroundColor
is planned to be deprecated: https://github.com/flutter/flutter/issues/91772
@Feichtmeier @Jupi007 Any ideas on how to make light dialogs stand out against light background? Should we specify a slightly different background color and/or a border color to avoid white on white?
Imo, a border would look consistent with the rest of our theme and widgets.
When switching between dark and light themes, Yaru-themed dialog's background color is momentarily fully transparent.
yaru-theme-switch.webm
The issue is specifically something with the dark Yaru theme. Switching between Material themes and even between Yaru light and Material dark is smooth.
material-theme-switch.webm