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
The white background for screenshots (when not expanded) can be jarring. It's perhaps a safe choice as developers may have added screenshots that assume a white background, but they detract from the purpose of dark mode.
Perhaps we could add guidelines that screenshots should expect a light or dark background, or enable a way to specify screenshots for each mode.
The text was updated successfully, but these errors were encountered:
Maybe a long shot, but if we could detect that a screenshot is too bright for dark mode, it could be a feedback in pana's analysis. Maybe we could even create a dimmed-down version, or just flag it that it needs dimming through CSS style?
Maybe a long shot, but if we could detect that a screenshot is too bright for dark mode, it could be a feedback in pana's analysis.
Not a bad idea: https://stackoverflow.com/a/38213966/4809566 has a suggestion for detecting brightness from javascript - we would probably do it server-side from pana, but it might not be that difficult...
We can probably only do that after we proxy the image data.
Using an external image in the fiddle gets a Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. at img.onload
The white background for screenshots (when not expanded) can be jarring. It's perhaps a safe choice as developers may have added screenshots that assume a white background, but they detract from the purpose of dark mode.
Perhaps we could add guidelines that screenshots should expect a light or dark background, or enable a way to specify screenshots for each mode.
The text was updated successfully, but these errors were encountered: