Let SuperButton use textActionAccent for enterprise build.
This commit is contained in:
parent
00507fa309
commit
846201df78
1 changed files with 19 additions and 11 deletions
|
|
@ -42,6 +42,7 @@ import io.element.android.compound.tokens.generated.internal.DarkColorTokens
|
|||
import io.element.android.compound.tokens.generated.internal.LightColorTokens
|
||||
import io.element.android.libraries.designsystem.preview.ElementPreview
|
||||
import io.element.android.libraries.designsystem.preview.PreviewsDayNight
|
||||
import io.element.android.libraries.designsystem.theme.LocalIsEnterpriseBuild
|
||||
import io.element.android.libraries.designsystem.theme.components.ButtonSize
|
||||
import io.element.android.libraries.designsystem.theme.components.HorizontalDivider
|
||||
import io.element.android.libraries.designsystem.theme.components.lowHorizontalPaddingValue
|
||||
|
|
@ -66,7 +67,13 @@ fun SuperButton(
|
|||
}
|
||||
}
|
||||
val isLightTheme = ElementTheme.isLightTheme
|
||||
val colors = remember(isLightTheme) {
|
||||
val colors = if (LocalIsEnterpriseBuild.current) {
|
||||
listOf(
|
||||
ElementTheme.colors.textActionAccent,
|
||||
ElementTheme.colors.textActionAccent,
|
||||
)
|
||||
} else {
|
||||
remember(isLightTheme) {
|
||||
if (isLightTheme) {
|
||||
listOf(
|
||||
LightColorTokens.colorBlue900,
|
||||
|
|
@ -79,6 +86,7 @@ fun SuperButton(
|
|||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val shaderBrush = remember(colors) {
|
||||
object : ShaderBrush() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue