Move SemanticColorsLightDark to compound module
This commit is contained in:
parent
c2c77aad2a
commit
82c6aca7e5
10 changed files with 33 additions and 23 deletions
|
|
@ -7,9 +7,7 @@
|
|||
|
||||
package io.element.android.features.enterprise.api
|
||||
|
||||
import io.element.android.compound.tokens.generated.SemanticColors
|
||||
import io.element.android.compound.tokens.generated.compoundColorsDark
|
||||
import io.element.android.compound.tokens.generated.compoundColorsLight
|
||||
import io.element.android.compound.colors.SemanticColorsLightDark
|
||||
import io.element.android.libraries.matrix.api.core.SessionId
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
|
|
@ -43,15 +41,3 @@ fun EnterpriseService.canConnectToAnyHomeserver(): Boolean {
|
|||
it.isEmpty() || it.contains(EnterpriseService.ANY_ACCOUNT_PROVIDER)
|
||||
}
|
||||
}
|
||||
|
||||
data class SemanticColorsLightDark(
|
||||
val light: SemanticColors,
|
||||
val dark: SemanticColors,
|
||||
) {
|
||||
companion object {
|
||||
val default = SemanticColorsLightDark(
|
||||
light = compoundColorsLight,
|
||||
dark = compoundColorsDark,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue