mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Fix divider color
This commit is contained in:
parent
70e63a23bc
commit
0fcd997290
@ -19,8 +19,8 @@ data class ExtraColors(
|
||||
val settingsBackground: Color,
|
||||
)
|
||||
|
||||
fun Context.getColorFromTheme(@AttrRes attr: Int): Color =
|
||||
MaterialColors.getColor(this, attr, 0).let(::Color)
|
||||
fun Context.getColorFromTheme(@AttrRes attr: Int, defaultValue: Int = 0x0): Color =
|
||||
MaterialColors.getColor(this, attr, defaultValue).let(::Color)
|
||||
|
||||
@Composable
|
||||
fun AppTheme(
|
||||
@ -29,7 +29,7 @@ fun AppTheme(
|
||||
val extraColors = LocalContext.current.run {
|
||||
ExtraColors(
|
||||
cell = getColorFromTheme(R.attr.colorCellBackground),
|
||||
divider = getColorFromTheme(R.attr.dividerColor),
|
||||
divider = getColorFromTheme(R.attr.dividerHorizontal),
|
||||
settingsBackground = getColorFromTheme(R.attr.colorSettingsBackground)
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user