Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c290fde6 authored by Guillaume Jacquart's avatar Guillaume Jacquart
Browse files

Merge branch '3197-fix_darkmode_header_color' into 'main'

fix:3197: Set header to black in darkmode.

See merge request !27
parents 08c55d22 8818b4fc
Loading
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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,