Update toolbar action colors (#325)

This commit is contained in:
David Perez 2023-12-05 11:37:35 -06:00 committed by Álison Fernandes
parent fad80fbd69
commit 4ce89abbbf
4 changed files with 8 additions and 9 deletions

View file

@ -41,13 +41,15 @@ fun BitwardenMediumTopAppBar(
colors = TopAppBarDefaults.largeTopAppBarColors(
containerColor = MaterialTheme.colorScheme.surface,
scrolledContainerColor = MaterialTheme.colorScheme.surfaceContainer,
navigationIconContentColor = MaterialTheme.colorScheme.onSurface,
titleContentColor = MaterialTheme.colorScheme.onSurface,
actionIconContentColor = MaterialTheme.colorScheme.onSurfaceVariant,
),
scrollBehavior = scrollBehavior,
title = {
Text(
text = title,
style = MaterialTheme.typography.titleLarge,
color = MaterialTheme.colorScheme.onSurface,
)
},
actions = actions,

View file

@ -48,7 +48,6 @@ fun BitwardenOverflowActionItem(
Icon(
painter = painterResource(id = R.drawable.ic_more),
contentDescription = stringResource(id = R.string.more),
tint = MaterialTheme.colorScheme.onSurface,
)
}
DropdownMenu(

View file

@ -1,6 +1,7 @@
package com.x8bit.bitwarden.ui.platform.components
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
@ -27,14 +28,10 @@ fun BitwardenTextButton(
onClick = onClick,
modifier = modifier,
enabled = isEnabled,
colors = ButtonDefaults.textButtonColors(),
) {
Text(
text = label,
color = if (isEnabled) {
MaterialTheme.colorScheme.primary
} else {
MaterialTheme.colorScheme.onSurface.copy(alpha = .38f)
},
style = MaterialTheme.typography.labelLarge,
modifier = Modifier
.padding(

View file

@ -71,6 +71,9 @@ fun BitwardenTopAppBar(
colors = TopAppBarDefaults.largeTopAppBarColors(
containerColor = MaterialTheme.colorScheme.surface,
scrolledContainerColor = MaterialTheme.colorScheme.surfaceContainer,
navigationIconContentColor = MaterialTheme.colorScheme.onSurface,
titleContentColor = MaterialTheme.colorScheme.onSurface,
actionIconContentColor = MaterialTheme.colorScheme.onSurfaceVariant,
),
scrollBehavior = scrollBehavior,
navigationIcon = {
@ -81,7 +84,6 @@ fun BitwardenTopAppBar(
Icon(
painter = it.navigationIcon,
contentDescription = it.navigationIconContentDescription,
tint = MaterialTheme.colorScheme.onSurface,
)
}
}
@ -90,7 +92,6 @@ fun BitwardenTopAppBar(
Text(
text = title,
style = MaterialTheme.typography.titleLarge,
color = MaterialTheme.colorScheme.onSurface,
)
},
actions = actions,