File tree Expand file tree Collapse file tree
app/src/main/java/com/texthip/thip/ui/common/buttons Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.fillMaxSize
1010import androidx.compose.foundation.layout.fillMaxWidth
1111import androidx.compose.foundation.layout.height
1212import androidx.compose.foundation.layout.padding
13+ import androidx.compose.foundation.layout.size
1314import androidx.compose.foundation.layout.width
1415import androidx.compose.foundation.shape.RoundedCornerShape
1516import androidx.compose.material3.Icon
@@ -31,6 +32,8 @@ import com.texthip.thip.ui.theme.ThipTheme.typography
3132fun 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
You can’t perform that action at this time.
0 commit comments