Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button, Dialog 컴포넌트 작업 #31

Merged

Conversation

fbghgus123
Copy link
Collaborator

개요

이슈 링크 혹은 PR 내용 요약

  • Button, Dialog 컴포넌트 구현

작업 내용

실제 작업 내용

  • Button Component 구현
  • Dialog Component 구현

시연 화면 (option)

실행 스크린샷 혹은 영상 첨부

Button Dialog
image image

To Reviers

리뷰어들에게 전할 말

  • 컴포즈로 개발해본 경험이 적으니, 현업 개발자분들의 과감한 피드백 부탁드립니다.

Close

close #

@fbghgus123 fbghgus123 added the feature develop feature label Jun 23, 2024
@fbghgus123 fbghgus123 self-assigned this Jun 23, 2024
@fbghgus123 fbghgus123 linked an issue Jun 23, 2024 that may be closed by this pull request
Copy link
Member

@ddyeon ddyeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

역시 카호현 멋있는데?🥸

@@ -13,18 +13,24 @@ object DoraColorTokens {
val G3 = Color(0xFFDEE2E6)
val G2 = Color(0xFFE9ECEF)
val G1 = Color(0xFFF4F6F8)
val White = Color(0xFF000000)
val White = Color(0xFFFFFFFF)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㅋㅋㅋㅋㅋㅋㅋ굿~

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

찾았다 범인

Comment on lines +18 to +21

object DialogRoundTokens {
val Radius = DoraRoundTokens.Round16
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 token을 shape, color정도만 생성하는 걸로 이해했는데
컴포넌트별로 만들어주는건가유?!!!!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddyeon
컴포넌트 별로 만드는게 좋긴 하지만, 귀찮으면 변경해도 괜춘할 듯
드나 발표에서는 컴포넌트 별로 만드는 방식으로 개발 했었어

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오끼 근데 어디까지 만들지를 정하면 좋을 것 같넹~~ 금욜에 이야기해보자

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

나도 이렇게 이해했는데?! 아냐 ?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

앗 그렇구만 그렇게 하자

val ContainerColor1_Off = DoraColorTokens.G2
val OnContainerColor_1Off = DoraColorTokens.G4
val ContentColor_1Off = DoraColorTokens.G4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10ff는 뭔가유? 투명도인강

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddyeon
헉 수정하겠음
1_off인데 ....

Comment on lines +15 to +16
enabled: Boolean,
onClickButton: () -> Unit,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enable에 defaultValue줘도 좋을 것 같다는 느낌쓰~~!!
아직 disable경우가 적으니!!!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddyeon
넴 ~
근데 오버라이딩 하면서 디폴트 값을 사용하지 못하게 돼서 넣진 않았던 것 같음

Copy link
Collaborator Author

@fbghgus123 fbghgus123 Jun 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddyeon
image
오버라이드 한 메서드라 default value가 설정 안되는 이슈 ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

옹~~ 근데 DoraButton에는 넣을 수 있지 않을까?!!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

�override여도 default는 넣을 수 있는뎅 @composable이랑 합치면 안되는구낭 나도 몰랐넹
근데 도라버튼에 enabled를,, 흠 default value를 넣어야하낭 고민이긴 하네

넣으면 편할 것 같은데, 안넣는게 맞는 것 같기도 하고, 넣으면 편할 것 같은데... 안넣는게 맞는 것 같기도 하고...넣으면 편할 것 같은데... 안넣는게 맞는 것 같기도 하고...넣으면 편할 것 같은데... 안넣는게 맞는 것 같기도 하고...넣으면 편할 것 같은데... 안넣는게 맞는 것 같기도 하고...넣으면 편할 것 같은데... 안넣는게 맞는 것 같기도 하고...넣으면 편할 것 같은데... 안넣는게 맞는 것 같기도 하고...넣으면 편할 것 같은데... 안넣는게 맞는 것 같기도 하고...넣으면 편할 것 같은데... 안넣는게 맞는 것 같기도 하고...넣으면 편할 것 같은데... 안넣는게 맞는 것 같기도 하고...

Comment on lines +57 to +61
Text(
modifier = Modifier.padding(top = 8.dp),
text = content,
style = DoraTypoTokens.caption3Medium,
color = DialogColorTokens.ContentColor,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

content 두 줄일 때 가운데 정렬 필수인 것 같당~~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddyeon
image
위와 같이 수정

Comment on lines +19 to +20
enabled: Boolean,
radius: RoundedCornerShape,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fbghgus123 오빠 여기에 넣을 수 있을것 같은뎅?!!

@Ahn-seokjoo
Copy link
Collaborator

image
머머야 이거 !


@Composable
internal fun DoraButton(
modifier: Modifier,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 보통 = Modifier로 넣어주긴해

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ahn-seokjoo
앗 그렇구만 !


@Composable
fun DoraDialog(
modifier: Modifier = Modifier,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여긴넣어놨네~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

???

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다연이 피드백 받고 수정한 듯

@fbghgus123 fbghgus123 merged commit a342b06 into develop Jun 25, 2024
2 checks passed
@fbghgus123 fbghgus123 deleted the feature/button-toast-dialog-컴포넌트-만들기 branch June 25, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature develop feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button, Toast, Dialog 컴포넌트 만들기
3 participants