Skip to content
dipesht16Public

About

Create stunning iOS-style depth effect wallpapers on Android. Features Google ML Kit AI subject segmentation, a manual mask editor with 6x pinch-to-zoom/pan navigation, customizable clocks/typography, and a native live wallpaper service.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Depth Wallpaper (DepthX)

A native Android application built with Kotlin and Jetpack Compose that lets you create iOS-style depth-effect lock screen and home screen wallpapers — placing a customizable clock behind the foreground subject of any photo.

Features

  • AI Subject Segmentation: Automatically isolates the foreground subject from any selected photo using Google ML Kit Subject Segmentation (play-services-mlkit-subject-segmentation).
  • Live Wallpaper Engine: Native Android WallpaperService (DepthWallpaperService) rendering layered Background → Clock → Foreground Cutout → Date HUD, synced to minute/second boundaries and midnight date rollovers.
  • Studio Editor (6 customization tabs):
    • Basics: Clock font size, horizontal position, and vertical position.
    • Typography: 14 font families (bundled New York and SF Pro .otf fonts plus Roboto, Outfit, Inter, Lilita One, Rubik) and color swatches.
    • Effects: Text opacity, drop shadow, edge stroke, and filled stroke.
    • Transform: Rotation, vertical stretch, and 2D skews (horizontalSkew, verticalSkew, bottomSkewH, leftSkew).
    • Date & Date Settings: Toggleable date HUD with position, size, color swatches, date formats, All Caps, and Bold options.
  • Manual Mask Refinement Editor: Paint with Brush or Eraser, pinch-to-zoom/pan (1x–6x), Undo/Redo/Reset, and export a full-resolution transparent PNG cutout (PorterDuff.Mode.SRC_IN).
  • Project Management: Save, edit, duplicate, delete, sort (Recent / Name), and mark wallpapers as active, with rendered preview thumbnails.
  • Fullscreen Preview & Settings: Borderless fullscreen preview, 3×3 alignment grid overlay toggle, performance presets, and cache management.

Tech Stack

  • Language: Kotlin 2.1.0
  • UI: Jetpack Compose (Material 3, Compose BOM 2025.02.00), Navigation Compose
  • ML / Imaging: Google ML Kit Subject Segmentation (16.0.0-beta1), Coil (2.7.0)
  • Persistence: Kotlinx Serialization JSON (projects.json) & SharedPreferences
  • Build System: Gradle 9.4.1, Android Gradle Plugin 8.13.0 (minSdk = 26, targetSdk = 35, compileSdk = 35)

Project Structure

Depthx/
├── app/src/main/
│   ├── assets/fonts/          # Bundled New York & SF Pro .otf fonts
│   ├── java/com/yourcompany/depthx/
│   │   ├── data/              # Models, FileManager, ProjectRepository, SegmentationService
│   │   ├── service/           # DepthWallpaperService & BitmapLoader
│   │   ├── ui/                # Theme, FontHelper, Components, and Compose Screens
│   │   └── MainActivity.kt    # Navigation Compose host
│   └── res/                   # Icons, wallpaper XML, strings, styles
├── gradle/                    # Gradle wrapper & version catalog (libs.versions.toml)
├── build.gradle.kts
├── gradle.properties
└── settings.gradle.kts

Build & Run

  1. Open the Depthx directory in Android Studio (or build via CLI).
  2. Build the debug APK:
    cd Depthx
    ./gradlew :app:assembleDebug
  3. Install and run on an Android device or emulator (Android 8.0 / API 26+).

About

Create stunning iOS-style depth effect wallpapers on Android. Features Google ML Kit AI subject segmentation, a manual mask editor with 6x pinch-to-zoom/pan navigation, customizable clocks/typography, and a native live wallpaper service.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages