Skip to content

Commit dbb16bd

Browse files
committed
feat: stamp wallpaper caption after GC16 as sleep-engaged indicator
Paint the sidecar caption (title + artist/date) via a fast DU update after the main GC16 refresh, rather than baking it into the full repaint. The caption's appearance is now the last visible change before deep sleep, giving a clear signal that sleep mode engaged.
1 parent f715218 commit dbb16bd

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/viewers/sleep_screen_viewer.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,7 @@ void SleepScreenViewer::show()
226226
// ── Try a painting wallpaper first ───────────────────────────────────────
227227
bool has_wallpaper = WallpaperViewer::show_random();
228228

229-
if (has_wallpaper) {
230-
draw_wallpaper_caption(W, H);
231-
} else {
229+
if (!has_wallpaper) {
232230
// ── Geometric lock-screen design ───────────────────────────────────────
233231

234232
// Picture-frame border: 3-px outer + 1-px inner + corner squares.
@@ -309,6 +307,14 @@ void SleepScreenViewer::show()
309307
// Full GC16 refresh — clean panel for the long retention period.
310308
screen.force_full_update();
311309
page.paint(false);
310+
311+
// Paint the wallpaper caption AFTER the GC16 as a fast DU stamp.
312+
// This is the last visible change before deep sleep — the appearance
313+
// of the caption text is the indicator that sleep has been engaged.
314+
if (has_wallpaper) {
315+
draw_wallpaper_caption(W, H);
316+
screen.update(Screen::UpdateMode::FAST);
317+
}
312318
}
313319

314320
#endif

0 commit comments

Comments
 (0)