mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-21 23:15:23 +00:00
Suppress compose name warning
This commit is contained in:
parent
25e7c7ec61
commit
7bb1a3a513
@ -8,6 +8,7 @@ fun interface MaybeFollowSystemColors {
|
||||
fun get(): ThemeColors
|
||||
}
|
||||
|
||||
@Suppress("FunctionName")
|
||||
fun FollowSystemColors(light: ThemeColors, dark: ThemeColors) = MaybeFollowSystemColors {
|
||||
when {
|
||||
isSystemInDarkTheme() -> dark
|
||||
@ -15,4 +16,5 @@ fun FollowSystemColors(light: ThemeColors, dark: ThemeColors) = MaybeFollowSyste
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("FunctionName")
|
||||
fun IgnoreSystemColors(colors: ThemeColors) = MaybeFollowSystemColors { colors }
|
||||
|
@ -32,7 +32,7 @@ fun SessionMaterialTheme(
|
||||
val context = LocalContext.current
|
||||
val preferences = AppTextSecurePreferences(context)
|
||||
|
||||
val jjcachedColors = cachedColors ?: preferences.colors.also { cachedColors = it }
|
||||
val cachedColors = cachedColors ?: preferences.colors.also { cachedColors = it }
|
||||
|
||||
SessionMaterialTheme(
|
||||
colors = cachedColors.get(),
|
||||
|
Loading…
Reference in New Issue
Block a user