Skip to content

Commit

Permalink
[FEATURE]#75 : RedDot 공용 ui 사이즈 파라미터 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Aug 4, 2024
1 parent 8c94c1f commit 089ee14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/ui/src/main/kotlin/com/bff/wespot/ui/RedDot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.bff.wespot.designsystem.theme.WeSpotTheme
import com.bff.wespot.designsystem.theme.WeSpotThemeManager
import com.bff.wespot.designsystem.util.OrientationPreviews

@Composable
fun RedDot(modifier: Modifier = Modifier) {
fun RedDot(modifier: Modifier = Modifier, size: Dp = 6.dp) {
val color = WeSpotThemeManager.colors.dangerColor

Canvas(modifier = modifier.size(6.dp)) {
Canvas(modifier = modifier.size(size)) {
drawCircle(color)
}
}
Expand Down

0 comments on commit 089ee14

Please sign in to comment.