Set product sans as the default font and make corner more round (android 12-ish look)

This commit is contained in:
Mathieu 2022-01-03 15:02:29 +01:00
parent 0335e1c7a5
commit a080089811
2 changed files with 9 additions and 10 deletions

View File

@ -5,7 +5,7 @@ import androidx.compose.material.Shapes
import androidx.compose.ui.unit.dp
val Shapes = Shapes(
small = RoundedCornerShape(4.dp),
medium = RoundedCornerShape(4.dp),
small = RoundedCornerShape(6.dp),
medium = RoundedCornerShape(12.dp),
large = RoundedCornerShape(0.dp)
)

View File

@ -27,21 +27,20 @@ val productSansFont = FontFamily(
// Set of Material typography styles to start with
val Typography = Typography(
body1 = TextStyle(
fontFamily = FontFamily.Default,
fontFamily = productSansFont,
fontWeight = FontWeight.Normal,
fontSize = 16.sp
)
/* Other default text styles to override
),
button = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.W500,
fontFamily = productSansFont,
fontWeight = FontWeight.Medium,
fontSize = 14.sp
),
caption = TextStyle(
fontFamily = FontFamily.Default,
fontFamily = productSansFont,
fontWeight = FontWeight.Normal,
fontSize = 12.sp
)
*/
),
defaultFontFamily = productSansFont
)