Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,47 +1,29 @@
package com.afternote.feature.setting.presentation.shared.component

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.requiredSize
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import com.afternote.feature.setting.presentation.R
import com.afternote.core.ui.ProfileImage
import com.afternote.core.ui.button.PlusBadgeButton

/**
* 프로필 사진 자리 + 우하단 「추가」 배지. 표시 전용이며 picker 가 붙어 있지 않다.
*
* 남은 소비처는 수신인 등록 화면 하나다. 프로필 편집 화면은 사진 선택을 붙이면서(#1438) core:ui 의
* [ProfileImagePicker][com.afternote.core.ui.ProfileImagePicker] 로 옮겼다. 시안의 프로필 노드가
* core 자산(`core_ui_ic_profile_placeholder`, 48dp 배지)과 같다는 #2003 의 판정을 따랐다.
*
* 이쪽은 `ic_default_profile`(60dp 뷰포트)과 48dp 칸 안에 72dp 로 넘쳐 그려지는 `ic_plus` 를 쓴다.
* 수신인 등록 화면의 수렴은 #2003 에 남아 있다.
* 수신자 등록·수정의 표시 전용 아바타. 사진 선택 계약이 없는 화면이므로
* 클릭을 요구하는 ProfileImagePicker 대신 표시 컴포넌트와 장식 배지를 조합한다.
*/
@Composable
fun ProfilePhotoWithAddBadge(modifier: Modifier = Modifier) {
internal fun ProfilePhotoWithAddBadge(modifier: Modifier = Modifier) {
Box(modifier = modifier.size(134.dp)) {
Image(
painter = painterResource(R.drawable.setting_ic_default_profile),
contentDescription = "기본",
modifier = Modifier.fillMaxSize(),
ProfileImage()
PlusBadgeButton(
contentDescription = null,
onClick = null,
paddingValues = PaddingValues(17.dp),
modifier = Modifier.align(Alignment.BottomEnd),
size = 48.dp,
)
Box(
modifier =
Modifier
.align(Alignment.BottomEnd)
.size(48.dp),
contentAlignment = Alignment.Center,
) {
Image(
painter = painterResource(R.drawable.setting_ic_plus),
contentDescription = "추가",
modifier = Modifier.requiredSize(72.dp),
)
}
}
}

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading