feat(#30): replace category swatch grid with HSV color picker #35
Reference in New Issue
Block a user
Delete Branch "feat/30-category-rgb-color-picker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
com.github.skydoves:colorpicker-compose:1.2.0(Apache-2.0, Compose-native HSV picker) togradle/libs.versions.tomlandapp/build.gradle.kts.LazyVerticalGridand theColorSwatchprivate composable inCategoryScreen.ktwith the library'sHsvColorPicker, driven by aColorPickerController. Initial color is seeded via the newinitialColorparameter frominitial?.color ?: Category.DEFAULT_COLOR_OTHER.colorstate is updated live viaonColorChanged(gated byenvelope.fromUserto ignore the initial seed).Category.coloris unchanged — stillInt(ARGB) — so the data layer is untouched.textslot inverticalScroll(rememberScrollState())and cap the picker atheight(280.dp)so confirm/cancel stay reachable on small screens.Test plan
./gradlew :app:assembleDebug— build succeeds (warnings are pre-existing, unrelated to this change).DEFAULT_COLOR_OTHER) on first open.colorstate updates in real time (visible on the picker itself).DEFAULT_COLOR_*is unaffected (the picker is only on the add/edit flow, never shown for defaults).Closes #30