weather: add burn-in protection via pixel drift - #16
Open
dharmapoudel wants to merge 1 commit into
Open
dharmapoudel wants to merge 1 commit into
dharmapoudel wants to merge 1 commit into
Conversation
The weather screen is fully static -- same glyphs and tiles in the same pixels for hours -- which risks image persistence on long sessions (e.g. wall-mounted dashboards). Drift the whole content wrapper a few pixels every 60 seconds, cycling through 5 small offsets (max 5px) with a 2.5s ease-in-out transition. The background stays put; the 40/32px padding absorbs the shift without clipping. Same approach as the ambient dashboard in my Glassy Overlay.
Owner
|
the device doesn't have an OLED screen and i haven't heard of any reports of burn-in. the display itself has a bit of retention because it's not the nicest LCD, but it goes away with a power cycle. just trying to figure out if this is actually needed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The weather screen is fully static -- the same glyphs and tiles sit in the same pixels for hours, which risks image persistence on long sessions (e.g. a wall-mounted dashboard).
What this does
Drifts the whole content wrapper a few pixels every 60 seconds, cycling through 5 small offsets (max 5px) with a 2.5s ease-in-out CSS transition. The background stays put; the existing 40/32px padding absorbs the shift without clipping. Same approach as the ambient dashboard in my Glassy Overlay system overlay.
Files
packages/webapps/catalog/weather/src/App.tsx--BURNIN_STEPS/BURNIN_SHIFT_MSconstants, shift state + interval inApp, transform applied to an inner content wrapper.Validation
tsc --noEmitclean,vite buildclean.