Use color from ElementTheme.
This commit is contained in:
parent
0d5912e7fd
commit
cc7fd55269
18 changed files with 33 additions and 33 deletions
|
|
@ -88,7 +88,7 @@ private fun EditingModeView(
|
|||
Icon(
|
||||
imageVector = CompoundIcons.Edit(),
|
||||
contentDescription = null,
|
||||
tint = ElementTheme.materialColors.secondary,
|
||||
tint = ElementTheme.colors.iconSecondary,
|
||||
modifier = Modifier
|
||||
.padding(vertical = 8.dp)
|
||||
.size(16.dp),
|
||||
|
|
@ -97,7 +97,7 @@ private fun EditingModeView(
|
|||
text = text,
|
||||
style = ElementTheme.typography.fontBodySmRegular,
|
||||
textAlign = TextAlign.Start,
|
||||
color = ElementTheme.materialColors.secondary,
|
||||
color = ElementTheme.colors.textSecondary,
|
||||
modifier = Modifier
|
||||
.padding(vertical = 8.dp)
|
||||
.weight(1f)
|
||||
|
|
@ -105,7 +105,7 @@ private fun EditingModeView(
|
|||
Icon(
|
||||
imageVector = CompoundIcons.Close(),
|
||||
contentDescription = stringResource(CommonStrings.action_close),
|
||||
tint = ElementTheme.materialColors.secondary,
|
||||
tint = ElementTheme.colors.iconSecondary,
|
||||
modifier = Modifier
|
||||
.padding(top = 8.dp, bottom = 8.dp, start = 16.dp, end = 12.dp)
|
||||
.size(16.dp)
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ object ElementRichTextEditorStyle {
|
|||
return baseStyle.copy(
|
||||
text = baseStyle.text.copy(
|
||||
color = if (hasFocus) {
|
||||
ElementTheme.materialColors.primary
|
||||
ElementTheme.colors.textPrimary
|
||||
} else {
|
||||
ElementTheme.materialColors.secondary
|
||||
ElementTheme.colors.textSecondary
|
||||
},
|
||||
lineHeight = TextUnit.Unspecified,
|
||||
includeFontPadding = true,
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ internal fun VoiceMessagePreview(
|
|||
|
||||
Text(
|
||||
text = time.formatShort(),
|
||||
color = ElementTheme.materialColors.secondary,
|
||||
color = ElementTheme.colors.textSecondary,
|
||||
style = ElementTheme.typography.fontBodySmMedium,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue