diff --git a/elibcompose/src/main/java/foundation/e/elibcompose/widgets/settings/SettingsAppBar.kt b/elibcompose/src/main/java/foundation/e/elibcompose/widgets/settings/SettingsAppBar.kt index 2408159b7fcab8a956ade83f7b4a34d59ff2a6ea..e21d3c248c65d72cbe9d3e8fc32b635d7649f959 100644 --- a/elibcompose/src/main/java/foundation/e/elibcompose/widgets/settings/SettingsAppBar.kt +++ b/elibcompose/src/main/java/foundation/e/elibcompose/widgets/settings/SettingsAppBar.kt @@ -22,15 +22,14 @@ import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.IconButton import androidx.compose.material3.LargeTopAppBar +import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.material3.TopAppBarDefaults import androidx.compose.material3.TopAppBarScrollBehavior import androidx.compose.runtime.Composable -import androidx.compose.ui.res.colorResource import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.lerp import androidx.compose.ui.unit.sp -import foundation.e.elib.R as eR @OptIn(ExperimentalMaterial3Api::class) @Composable @@ -44,9 +43,9 @@ fun SettingsAppBar( LargeTopAppBar( colors = TopAppBarDefaults.topAppBarColors( - containerColor = colorResource(eR.color.e_action_bar), - titleContentColor = colorResource(eR.color.e_primary_text_color), - scrolledContainerColor = colorResource(eR.color.e_action_bar), + containerColor = MaterialTheme.colorScheme.background, + titleContentColor = MaterialTheme.colorScheme.onBackground, + scrolledContainerColor = MaterialTheme.colorScheme.primary, ), title = { Text(title, style = TextStyle(fontSize = textSize)) }, scrollBehavior = scrollBehavior,