mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-01 23:32:13 +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
|
fun get(): ThemeColors
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("FunctionName")
|
||||||
fun FollowSystemColors(light: ThemeColors, dark: ThemeColors) = MaybeFollowSystemColors {
|
fun FollowSystemColors(light: ThemeColors, dark: ThemeColors) = MaybeFollowSystemColors {
|
||||||
when {
|
when {
|
||||||
isSystemInDarkTheme() -> dark
|
isSystemInDarkTheme() -> dark
|
||||||
@ -15,4 +16,5 @@ fun FollowSystemColors(light: ThemeColors, dark: ThemeColors) = MaybeFollowSyste
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("FunctionName")
|
||||||
fun IgnoreSystemColors(colors: ThemeColors) = MaybeFollowSystemColors { colors }
|
fun IgnoreSystemColors(colors: ThemeColors) = MaybeFollowSystemColors { colors }
|
||||||
|
@ -32,7 +32,7 @@ fun SessionMaterialTheme(
|
|||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
val preferences = AppTextSecurePreferences(context)
|
val preferences = AppTextSecurePreferences(context)
|
||||||
|
|
||||||
val jjcachedColors = cachedColors ?: preferences.colors.also { cachedColors = it }
|
val cachedColors = cachedColors ?: preferences.colors.also { cachedColors = it }
|
||||||
|
|
||||||
SessionMaterialTheme(
|
SessionMaterialTheme(
|
||||||
colors = cachedColors.get(),
|
colors = cachedColors.get(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user