-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f20d929
commit c8e6ccc
Showing
3 changed files
with
125 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
core-ui/src/main/java/org/signal/core/ui/theme/ExtendedColors.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package org.signal.core.ui.theme | ||
|
||
import androidx.compose.runtime.Immutable | ||
import androidx.compose.runtime.staticCompositionLocalOf | ||
import androidx.compose.ui.graphics.Color | ||
|
||
@Immutable | ||
data class ExtendedColors( | ||
val neutralSurface: Color, | ||
val colorOnCustom: Color, | ||
val colorOnCustomVariant: Color, | ||
val colorSurface1: Color, | ||
val colorSurface2: Color, | ||
val colorSurface3: Color, | ||
val colorSurface4: Color, | ||
val colorSurface5: Color, | ||
val colorTransparent1: Color, | ||
val colorTransparent2: Color, | ||
val colorTransparent3: Color, | ||
val colorTransparent4: Color, | ||
val colorTransparent5: Color, | ||
val colorNeutral: Color, | ||
val colorNeutralVariant: Color, | ||
val colorTransparentInverse1: Color, | ||
val colorTransparentInverse2: Color, | ||
val colorTransparentInverse3: Color, | ||
val colorTransparentInverse4: Color, | ||
val colorTransparentInverse5: Color, | ||
val colorNeutralInverse: Color, | ||
val colorNeutralVariantInverse: Color | ||
) | ||
|
||
val LocalExtendedColors = staticCompositionLocalOf { | ||
ExtendedColors( | ||
neutralSurface = Color.Unspecified, | ||
colorOnCustom = Color.Unspecified, | ||
colorOnCustomVariant = Color.Unspecified, | ||
colorSurface1 = Color.Unspecified, | ||
colorSurface2 = Color.Unspecified, | ||
colorSurface3 = Color.Unspecified, | ||
colorSurface4 = Color.Unspecified, | ||
colorSurface5 = Color.Unspecified, | ||
colorTransparent1 = Color.Unspecified, | ||
colorTransparent2 = Color.Unspecified, | ||
colorTransparent3 = Color.Unspecified, | ||
colorTransparent4 = Color.Unspecified, | ||
colorTransparent5 = Color.Unspecified, | ||
colorNeutral = Color.Unspecified, | ||
colorNeutralVariant = Color.Unspecified, | ||
colorTransparentInverse1 = Color.Unspecified, | ||
colorTransparentInverse2 = Color.Unspecified, | ||
colorTransparentInverse3 = Color.Unspecified, | ||
colorTransparentInverse4 = Color.Unspecified, | ||
colorTransparentInverse5 = Color.Unspecified, | ||
colorNeutralInverse = Color.Unspecified, | ||
colorNeutralVariantInverse = Color.Unspecified | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters