ux: Hint 박스 배경도 텍스트와 함께 사라짐 (자리만 유지)
수정: Hint 1 / Hint 2 의 background 색을 조건부로 전환.
- 텍스트 가시: 기존 색 (orange/green/teal)
- 텍스트 비가시: Color.Transparent
heightIn 으로 박스 공간(높이)은 그대로 유지 →
배경 카드만 사라지고 자리는 유지.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+8
-2
@@ -257,7 +257,10 @@ fun PlacementGuideView(appState: AppState) {
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.heightIn(min = 96.dp) // 1.5× of current ~64dp natural height
|
||||
.background(hint1Bg.copy(alpha = 0.7f), RoundedCornerShape(16.dp))
|
||||
.background(
|
||||
if (waitingForStart) hint1Bg.copy(alpha = 0.7f) else Color.Transparent,
|
||||
RoundedCornerShape(16.dp)
|
||||
)
|
||||
.padding(horizontal = 20.dp, vertical = 14.dp),
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
@@ -541,7 +544,10 @@ fun PlacementGuideView(appState: AppState) {
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.heightIn(min = 102.dp) // 1.5× of current ~68dp natural height
|
||||
.background(hintBg.copy(alpha = 0.7f), RoundedCornerShape(16.dp))
|
||||
.background(
|
||||
if (hint2Visible) hintBg.copy(alpha = 0.7f) else Color.Transparent,
|
||||
RoundedCornerShape(16.dp)
|
||||
)
|
||||
.padding(horizontal = 20.dp, vertical = 14.dp),
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user