From 0fcd9972900f5a6fedb09ea4639c7753fde0b9b7 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 3 Jul 2023 20:40:16 +0930 Subject: [PATCH] Fix divider color --- app/src/main/java/org/thoughtcrime/securesms/ui/Themes.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/ui/Themes.kt b/app/src/main/java/org/thoughtcrime/securesms/ui/Themes.kt index a19082c088..67c44c6368 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/ui/Themes.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/ui/Themes.kt @@ -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) ) }