From f7ebf159b600bdb091b28c65d46920c9093301cf Mon Sep 17 00:00:00 2001 From: Yashraj254 Date: Wed, 4 Oct 2023 04:41:36 +0530 Subject: [PATCH] changed toolbar title font weight to Medium --- .../notificationsettings/NotificationSettingsScreen.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/hieuwu/groceriesstore/presentation/notificationsettings/NotificationSettingsScreen.kt b/app/src/main/java/com/hieuwu/groceriesstore/presentation/notificationsettings/NotificationSettingsScreen.kt index b7249904..6e9fe028 100644 --- a/app/src/main/java/com/hieuwu/groceriesstore/presentation/notificationsettings/NotificationSettingsScreen.kt +++ b/app/src/main/java/com/hieuwu/groceriesstore/presentation/notificationsettings/NotificationSettingsScreen.kt @@ -25,6 +25,7 @@ import androidx.compose.ui.graphics.Color import androidx.compose.ui.res.colorResource import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import androidx.hilt.navigation.compose.hiltViewModel @@ -40,15 +41,15 @@ fun NotificationSettingsScreen( Scaffold( topBar = { CenterAlignedTopAppBar( - title = { Text(text = "Notifications", color = Color.White) }, + title = { Text(text = "Notifications", color = Color.White, fontWeight = FontWeight.Medium) }, actions = { ClickableText( text = AnnotatedString("SAVE"), - style = TextStyle(color = Color.White), + style = TextStyle(color = Color.White, fontWeight = FontWeight.Medium), onClick = { viewModel.updateNotificationSettings() }, - modifier = Modifier.padding(8.dp) + modifier = Modifier.padding(horizontal = 8.dp) ) }, navigationIcon = {