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
In the web the following property overrides the background_image in any case when the browser is in dark mode.
background-image:url("img/dark-background.png");
However, when the config only includes the background_image property and no background_image_dark, the plugin doesn't generate the dark-background.png file.
Which then results in a black browser window without background, the logo is there as this gets generated even without any dark parameters.
In my opinion, the background should be generated and just be the same as the light background even if no explicit dark background is set, just like the logo.
@Bungeefan thanks for the bug report. I think a better approach is to not include any dark mode styling in styles.css if dark mode settings are not included in pubspec.yaml. I will push an update soon with this fix.
Describe the bug
In the web the following property overrides the background_image in any case when the browser is in dark mode.
However, when the config only includes the
background_image
property and nobackground_image_dark
, the plugin doesn't generate thedark-background.png
file.Which then results in a black browser window without background, the logo is there as this gets generated even without any dark parameters.
In my opinion, the background should be generated and just be the same as the light background even if no explicit dark background is set, just like the logo.
Configuration
Device (please complete the following information):
prefers-color-scheme: dark
)To Reproduce
Steps to reproduce the behavior, using the example app:
The text was updated successfully, but these errors were encountered: