Menu

A launcher Home screen over any wallpaper: windowShowWallpaper, a Photo Picker override, and the contrast math we got wrong
📰

A launcher Home screen over any wallpaper: windowShowWallpaper, a Photo Picker override, and the contrast math we got wrong

DEV Community: android·ReClaim·6 days ago
#NoiaSPR0
#devtoandroid#devto#dev#wallpaper#color
Reading 0:00
15s threshold

We're building ReClaim , a minimalist Android launcher that's on Google Play . Its Home screen is a clock, a few favorites, a short task list, and two corner shortcuts. It has no widgets and no dock. Most of the pixels on the Home screen belong to the user's wallpaper.

That makes the wallpaper a real design problem. A launcher doesn't pick the background. The user does, and it can be anything: a white beach, a black AMOLED gradient, a busy photo of their dog. Every piece of text we draw has to stay readable over all of it. This post covers how ReClaim's Home screen sits on the wallpaper, how a user can override it with their own photo, who wins when the two disagree, and the contrast math that turned out to be wrong when we checked it for this write-up.

Stack: Kotlin, Jetpack Compose, Hilt, DataStore, Coil 2.7, minSdk 26 , targetSdk 36 . Snippets are trimmed from the real code; // ... marks cuts. The last post covered the app drawer. This one stays on Home.

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.