-
Notifications
You must be signed in to change notification settings - Fork 2
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
[ADD/#16] Button / 컴포넌트 구현 #21
Conversation
into add/#16-button-component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
컴포넌트들을 뚝딱뚝딱 구현하는 터닝 안드원들 신기하고 대단하네요,,!!
역시 이번 피알도 엄청납니당,, 최고!!!!
val interactionSource = remember { MutableInteractionSource() } | ||
val isPressed by interactionSource.collectIsPressedAsState() | ||
val backgroundColor = if (isPressed) TerningMain2 else TerningMain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
버튼 색상 변경 방법 신기하네요!!
InteractionSource를 알아보다가 말았는데 여기서 배우고 갑니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호!! 저도 새로운거 알아갑니다~~!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
진짜 너무 최고고,,, 너무 멋있고,,, 너무 짱이고,,, 정말이지 최고에요!! 수고하셨습니당❤️
val interactionSource = remember { MutableInteractionSource() } | ||
val isPressed by interactionSource.collectIsPressedAsState() | ||
val backgroundColor = if (isPressed) TerningMain2 else TerningMain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호!! 저도 새로운거 알아갑니다~~!!
@@ -33,7 +33,7 @@ fun ProvideTerningTypography(typography: TerningTypography, content: @Composable | |||
} | |||
|
|||
@Composable | |||
fun TerningTheme( | |||
fun TerningPointTheme( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
우왕 완전 센스쟁이!!
val isPressed by interactionSource.collectIsPressedAsState() | ||
val backgroundColor = if (isPressed) TerningMain2 else TerningMain | ||
|
||
CompositionLocalProvider(LocalRippleTheme provides NoRippleTheme) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
궁금한거 있습니다!!! 이렇게 선언만 해두면 바로 ripple이 사라지는건가요??????
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네! 기존에 있던 LocalRippleTheme을 NoRippleTheme으로 바꿔준 겁니당
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
베이직 버튼 요긴하게 잘 쓰겠습니당 ㅜㅜ!!
) { | ||
Column( | ||
modifier = Modifier | ||
.fillMaxSize(), | ||
.wrapContentHeight() // Modifier 변경 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 주석은 일부러 남겨두신 걸까욤?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
지우는 걸 깜빡했네요!😂 수정했습니당
override fun rippleAlpha(): RippleAlpha = RippleAlpha( | ||
draggedAlpha = 0.0f, | ||
focusedAlpha = 0.0f, | ||
hoveredAlpha = 0.0f, | ||
pressedAlpha = 0.0f | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리플테마 적용 감사해용 🥹
⛳️ Work Description
core > designsystem
패키징 수정 & 프리뷰 라이브러리 추가📸 Screenshot
1️⃣RectangleButton
2️⃣RoundButton
📢 To Reviewers
TerningTheme
->TerningPointTheme
으로 바꿨어요!타이포 사용할 땐 그대로
TerningTheme
으로 접근하시면 됩니당