Skip to content

Commit 6e8de2d

Browse files
committed
[refactor]: ActionMediumButton 아이콘 사이즈, 색상 지정가능하도록 수정(#37)
1 parent 1043730 commit 6e8de2d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/main/java/com/texthip/thip/ui/common/buttons/ActionMediumButton.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.fillMaxSize
1010
import androidx.compose.foundation.layout.fillMaxWidth
1111
import androidx.compose.foundation.layout.height
1212
import androidx.compose.foundation.layout.padding
13+
import androidx.compose.foundation.layout.size
1314
import androidx.compose.foundation.layout.width
1415
import androidx.compose.foundation.shape.RoundedCornerShape
1516
import androidx.compose.material3.Icon
@@ -31,6 +32,8 @@ import com.texthip.thip.ui.theme.ThipTheme.typography
3132
fun ActionMediumButton(
3233
text: String,
3334
icon: Painter? = null,
35+
iconSize: Int = 24,
36+
iconTint: Color = Color.Unspecified,
3437
contentColor: Color,
3538
backgroundColor: Color,
3639
hasRightIcon: Boolean = false,
@@ -55,6 +58,7 @@ fun ActionMediumButton(
5558
painter = icon,
5659
contentDescription = null,
5760
tint = contentColor,
61+
modifier = Modifier.size(iconSize.dp)
5862
)
5963
}
6064

0 commit comments

Comments
 (0)