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.
- 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 YorkandSF Pro.otffonts plusRoboto,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.
- 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 Plugin8.13.0(minSdk = 26,targetSdk = 35,compileSdk = 35)
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
- Open the
Depthxdirectory in Android Studio (or build via CLI). - Build the debug APK:
cd Depthx ./gradlew :app:assembleDebug - Install and run on an Android device or emulator (Android 8.0 / API 26+).