mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Fixing text color of pills in light theme
This commit is contained in:
parent
6736bebc9c
commit
37a990368c
2 changed files with 7 additions and 1 deletions
|
@ -59,6 +59,10 @@
|
||||||
<item name="android:fontFamily">sans-serif-medium</item>
|
<item name="android:fontFamily">sans-serif-medium</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="TextAppearance.Vector.Body.OnError">
|
||||||
|
<item name="android:textColor">?colorOnError</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="TextAppearance.Vector.Caption" parent="TextAppearance.MaterialComponents.Caption">
|
<style name="TextAppearance.Vector.Caption" parent="TextAppearance.MaterialComponents.Caption">
|
||||||
<item name="fontFamily">sans-serif</item>
|
<item name="fontFamily">sans-serif</item>
|
||||||
<item name="android:fontFamily">sans-serif</item>
|
<item name="android:fontFamily">sans-serif</item>
|
||||||
|
@ -81,4 +85,4 @@
|
||||||
<item name="android:letterSpacing">0.02</item>
|
<item name="android:letterSpacing">0.02</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -121,6 +121,8 @@ class PillImageSpan(private val glideRequests: GlideRequests,
|
||||||
chipIcon = icon
|
chipIcon = icon
|
||||||
if (matrixItem is MatrixItem.EveryoneInRoomItem) {
|
if (matrixItem is MatrixItem.EveryoneInRoomItem) {
|
||||||
chipBackgroundColor = ColorStateList.valueOf(ThemeUtils.getColor(context, R.attr.colorError))
|
chipBackgroundColor = ColorStateList.valueOf(ThemeUtils.getColor(context, R.attr.colorError))
|
||||||
|
// setTextColor API does not exist right now for ChipDrawable, use textAppearance
|
||||||
|
setTextAppearanceResource(R.style.TextAppearance_Vector_Body_OnError)
|
||||||
}
|
}
|
||||||
setBounds(0, 0, intrinsicWidth, intrinsicHeight)
|
setBounds(0, 0, intrinsicWidth, intrinsicHeight)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue