-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/align filter component #49
Merged
+376
โ48
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e85f8d7
feat: SuwikiContainerAlign
BEEEAM-J 94a23f3
feat: SuwikiFilterContainer
BEEEAM-J f4406cf
fix: SuwikiFilterContainer ๋ณ ์ ๋ณ๊ฒฝ
BEEEAM-J 54b3385
feat: SuwikiFilterButton
BEEEAM-J 2b478a3
Merge branch 'develop' into feature/align-filter-component
BEEEAM-J 8b05322
feat: SuwikiAlignButton
BEEEAM-J 678cc7f
chore: ktlintFormat
BEEEAM-J 7d6c0d5
refactor: SuwikiFilterContainer ๋ณ color๋ ๋ณ ํด๋ฆญ ์ฌ๋ถ๋ก ๋ณ๊ฒฝํ๋๋ก ์์
BEEEAM-J 5513259
chore: ktlintFormat
BEEEAM-J da208d5
refactor: SuwikiAlignButton ํด๋ฆญ ๋ฒ์ ์์
BEEEAM-J 515b317
refactor: SuwikiAlignButton ๊ตฌํ ๋ฐฉ์ ์์
BEEEAM-J 1941ff1
refactor: SuwikiAlignContainer ํฌ๊ธฐ ๋์ ์ผ๋ก ๋ณํ๋๋ก ์์
BEEEAM-J a3d08b5
refactor: SuwikiFilterButton ๋ถํ์ํ Box ๋ฐ ์์ฑ ์ ๊ฑฐ
BEEEAM-J 5ed97f7
refactor: SuwikiFilterContainer ํฌ๊ธฐ ๋์ ์ผ๋ก ๋ณํ๋๋ก ์์
BEEEAM-J bfcf8b7
chore/#48 : ktlint format
BEEEAM-J f747056
Merge branch 'develop' into feature/align-filter-component
BEEEAM-J f180b7c
refactor/#48 : Color, Typography ์ ์ฉ
BEEEAM-J 2b22f9d
refactor/#48 : SuwikiAlignButton shadow ์์ฑ ์ถ๊ฐ
BEEEAM-J 70a0065
refactor/#48 : ๋ถํ์ํ ํฌ๊ธฐ ์ ์ ์ฝ๋ ์ ๊ฑฐ
BEEEAM-J 0878df1
refactor/#48 : ๋ถํ์ํ ํฌ๊ธฐ ์ ์ ์ฝ๋ ์ ๊ฑฐ ๋ฐ ์์
BEEEAM-J File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: SuwikiAlignButton
commit 8b0532254f636c540397aeced1d8873d402d7710
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
...ignsystem/src/main/java/com/suwiki/core/designsystem/component/align/SuwikiAlignButton.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.suwiki.core.designsystem.component.align | ||
|
||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.layout.Arrangement | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.size | ||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.material3.Icon | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.draw.clip | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import com.suwiki.core.designsystem.R | ||
import com.suwiki.core.ui.extension.suwikiClickable | ||
|
||
@Composable | ||
fun SuwikiAlignButton( | ||
onClick: () -> Unit = {}, | ||
) { | ||
Box( | ||
modifier = Modifier | ||
.size(40.dp) | ||
.suwikiClickable(onClick = onClick) | ||
.clip(RoundedCornerShape(10.dp)) | ||
.background(Color(0xFFFFFFFF)), | ||
) { | ||
Icon( | ||
painter = painterResource(id = R.drawable.ic_filter), | ||
contentDescription = "", | ||
modifier = Modifier.align(Alignment.Center), | ||
tint = Color(0xFF6A6A6A), | ||
) | ||
} | ||
} | ||
|
||
@Preview(showSystemUi = true) | ||
@Composable | ||
fun SuwikiAlignButtonPreview() { | ||
Column( | ||
verticalArrangement = Arrangement.Center, | ||
horizontalAlignment = Alignment.CenterHorizontally, | ||
) { | ||
SuwikiAlignButton() | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
๊ตณ์ด Box๋ก ์๊ฐ์ธ๋ ๋์ง ์๋์?
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.
๋ฒํผ๊ณผ ๋ด๋ถ์ ์์ด์ฝ ์ฌ์ด์ ๊ฐ๊ฒฉ์ ํํํ๋ ค๊ณ ๋ฐ์ค๋ก ๊ฐ์๋๋ฐ ํน์ ๋ ์ข์ ๋ฐฉ๋ฒ์ด ์๋์???
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.
์ค์ท modifier ์ด๋ ๊ฒ ์ค์ ํ๋๊น ๋๋ค์~
ํ๋ ๋ฐฐ์ ์ด๋ค!