UI: 피드백 반영 — Placement/Donut/뒤로가기/토스트
[Placement] - 복부 높이: 500dp→weight(1f) 유동, 스크롤 제거 - 화살표 크기: 50→70, head 20→28, stroke 7→9 - 6/6, 60% 비개발자 모드에서 제거 - Step indicator를 이미지 위로 이동 [Donut] - Bladdy 크기: 80/110dp→120/150dp (비개발자) - 도넛 크기: 260/320dp→300/360dp (비개발자) - 볼륨 텍스트 배경 제거 (투명) - 원 내부 흰색 반투명 배경 추가 - measuring 메시지 제거 (Auto 대기 중 표시 안 함) - 배터리 옆 초록 connection dot 제거 - Volume 카드 제거, Fill/Level만 유지 (maxVolumeMl 기준) - "빠른 저장"→"Quick Save" 영어 통일 - 측정 부족/미감지 토스트 제거 [기타] - HOME 뒤로가기 → "Exit App?" 확인 다이얼로그 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,8 +11,12 @@ import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import app.rive.runtime.kotlin.core.Rive
|
||||
import com.example.medilightv2android.services.KeychainService
|
||||
@@ -62,7 +66,30 @@ fun MedilightApp(modifier: Modifier = Modifier) {
|
||||
val context = LocalContext.current
|
||||
val appState = remember { AppState(context) }
|
||||
|
||||
// Android 뒤로가기 = 바로 전 화면
|
||||
// HOME에서 뒤로가기 → 앱 종료 확인
|
||||
var showExitDialog by remember { mutableStateOf(false) }
|
||||
BackHandler(enabled = appState.currentScreen == AppScreen.HOME) {
|
||||
showExitDialog = true
|
||||
}
|
||||
if (showExitDialog) {
|
||||
androidx.compose.material3.AlertDialog(
|
||||
onDismissRequest = { showExitDialog = false },
|
||||
title = { androidx.compose.material3.Text("Exit App") },
|
||||
text = { androidx.compose.material3.Text("Are you sure you want to exit?") },
|
||||
confirmButton = {
|
||||
androidx.compose.material3.TextButton(onClick = { (context as? android.app.Activity)?.finish() }) {
|
||||
androidx.compose.material3.Text("Exit", color = Color.Red)
|
||||
}
|
||||
},
|
||||
dismissButton = {
|
||||
androidx.compose.material3.TextButton(onClick = { showExitDialog = false }) {
|
||||
androidx.compose.material3.Text("Cancel")
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
// 다른 화면에서 뒤로가기 = 바로 전 화면
|
||||
BackHandler(enabled = appState.currentScreen != AppScreen.HOME
|
||||
&& appState.currentScreen != AppScreen.PIN_ENTRY) {
|
||||
when (appState.currentScreen) {
|
||||
|
||||
Reference in New Issue
Block a user