Merge pull request #5457 from element-hq/feature/bma/internalCompound
Internalize compound-android
This commit is contained in:
@@ -913,3 +913,8 @@ ij_yaml_sequence_on_new_line = false
|
||||
ij_yaml_space_before_colon = false
|
||||
ij_yaml_spaces_within_braces = true
|
||||
ij_yaml_spaces_within_brackets = true
|
||||
|
||||
[**/generated/**]
|
||||
generated_code = true
|
||||
ij_formatter_enabled = false
|
||||
ktlint = disabled
|
||||
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -1,4 +1,5 @@
|
||||
screenshots/**/*.png filter=lfs diff=lfs merge=lfs -text
|
||||
libraries/compound/screenshots/** filter=lfs diff=lfs merge=lfs -text
|
||||
**/snapshots/**/*.png filter=lfs diff=lfs merge=lfs -text
|
||||
**/docs/images-lfs/*.png filter=lfs diff=lfs merge=lfs -text
|
||||
libraries/mediaupload/impl/src/test/assets/* filter=lfs diff=lfs merge=lfs -text
|
||||
|
||||
@@ -56,6 +56,12 @@ echo "Deleting previous screenshots"
|
||||
echo "Record screenshots"
|
||||
./gradlew recordPaparazziDebug --stacktrace $GRADLE_ARGS
|
||||
|
||||
echo "Deleting previous screenshots"
|
||||
./gradlew removeOldScreenshots --stacktrace --warn $GRADLE_ARGS
|
||||
|
||||
echo "Record screenshots (Compound)"
|
||||
./gradlew :libraries:compound:recordRoborazziDebug --stacktrace -PpreDexEnable=false --max-workers 4 --warn $GRADLE_ARGS
|
||||
|
||||
echo "Committing changes"
|
||||
git config http.sslVerify false
|
||||
|
||||
|
||||
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
@@ -78,6 +78,7 @@ jobs:
|
||||
name: tests-and-screenshot-tests-results
|
||||
path: |
|
||||
**/build/paparazzi/failures/
|
||||
**/build/roborazzi/failures/
|
||||
**/build/reports/tests/*UnitTest/
|
||||
|
||||
# https://github.com/codecov/codecov-action
|
||||
|
||||
@@ -15,6 +15,7 @@ plugins {
|
||||
alias(libs.plugins.compose.compiler) apply false
|
||||
alias(libs.plugins.ksp) apply false
|
||||
alias(libs.plugins.dependencycheck) apply false
|
||||
alias(libs.plugins.roborazzi) apply false
|
||||
alias(libs.plugins.dependencyanalysis)
|
||||
alias(libs.plugins.detekt)
|
||||
alias(libs.plugins.ktlint)
|
||||
@@ -192,6 +193,21 @@ subprojects {
|
||||
tasks.findByName("recordPaparazziRelease")?.dependsOn(removeOldScreenshotsTask)
|
||||
}
|
||||
|
||||
// Make sure to delete old snapshot before recording new ones
|
||||
subprojects {
|
||||
val screenshotsDir = File("${project.projectDir}/screenshots")
|
||||
val removeOldScreenshotsTask = tasks.register("removeOldScreenshots") {
|
||||
onlyIf { screenshotsDir.exists() }
|
||||
doFirst {
|
||||
println("Delete previous screenshots located at $screenshotsDir\n")
|
||||
screenshotsDir.deleteRecursively()
|
||||
}
|
||||
}
|
||||
tasks.findByName("recordRoborazzi")?.dependsOn(removeOldScreenshotsTask)
|
||||
tasks.findByName("recordRoborazziDebug")?.dependsOn(removeOldScreenshotsTask)
|
||||
tasks.findByName("recordRoborazziRelease")?.dependsOn(removeOldScreenshotsTask)
|
||||
}
|
||||
|
||||
subprojects {
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
||||
compilerOptions {
|
||||
|
||||
Submodule enterprise updated: 95789d4011...ffc02b8d0f
@@ -13,7 +13,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.compound)
|
||||
implementation(projects.libraries.compound)
|
||||
implementation(projects.libraries.architecture)
|
||||
implementation(projects.libraries.matrix.api)
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ android {
|
||||
setupDependencyInjection()
|
||||
|
||||
dependencies {
|
||||
implementation(libs.compound)
|
||||
implementation(projects.libraries.compound)
|
||||
api(projects.features.enterprise.api)
|
||||
implementation(projects.libraries.architecture)
|
||||
implementation(projects.libraries.matrix.api)
|
||||
|
||||
@@ -14,7 +14,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
api(projects.features.enterprise.api)
|
||||
implementation(libs.compound)
|
||||
implementation(projects.libraries.compound)
|
||||
implementation(projects.libraries.matrix.api)
|
||||
implementation(projects.tests.testutils)
|
||||
}
|
||||
|
||||
@@ -54,3 +54,7 @@ ksp.allow.all.target.configuration=false
|
||||
|
||||
# Used to prevent detekt from reusing invalid cached rules
|
||||
detekt.use.worker.api=true
|
||||
|
||||
# Let test include roborazzi verification
|
||||
# https://github.com/takahirom/roborazzi?tab=readme-ov-file#roborazzitest
|
||||
roborazzi.test.verify=true
|
||||
|
||||
@@ -32,6 +32,7 @@ accompanist = "0.37.3"
|
||||
|
||||
# Test
|
||||
test_core = "1.7.0"
|
||||
roborazzi = "1.46.1"
|
||||
|
||||
# Jetbrain
|
||||
datetime = "0.7.1"
|
||||
@@ -174,7 +175,6 @@ coil_network_okhttp = { module = "io.coil-kt.coil3:coil-network-okhttp", version
|
||||
coil_compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil" }
|
||||
coil_gif = { module = "io.coil-kt.coil3:coil-gif", version.ref = "coil" }
|
||||
coil_test = { module = "io.coil-kt.coil3:coil-test", version.ref = "coil" }
|
||||
compound = { module = "io.element.android:compound-android", version = "25.7.4" }
|
||||
datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "datetime" }
|
||||
serialization_json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization_json" }
|
||||
kotlinx_collections_immutable = "org.jetbrains.kotlinx:kotlinx-collections-immutable:0.4.0"
|
||||
@@ -227,6 +227,11 @@ google_autoservice_annotations = { module = "com.google.auto.service:auto-servic
|
||||
# Miscellaneous
|
||||
androidx-test-ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx-test-ext-junit" }
|
||||
|
||||
# Test
|
||||
test_roborazzi = { module = "io.github.takahirom.roborazzi:roborazzi", version.ref = "roborazzi" }
|
||||
test_roborazzi_compose = { module = "io.github.takahirom.roborazzi:roborazzi-compose", version.ref = "roborazzi" }
|
||||
test_roborazzi_junit = { module = "io.github.takahirom.roborazzi:roborazzi-junit-rule", version.ref = "roborazzi" }
|
||||
|
||||
[bundles]
|
||||
|
||||
[plugins]
|
||||
@@ -244,6 +249,7 @@ dependencygraph = "com.savvasdalkitsis.module-dependency-graph:0.12"
|
||||
dependencycheck = "org.owasp.dependencycheck:12.1.6"
|
||||
dependencyanalysis = { id = "com.autonomousapps.dependency-analysis", version.ref = "dependencyAnalysis" }
|
||||
paparazzi = "app.cash.paparazzi:2.0.0-alpha02"
|
||||
roborazzi = { id = "io.github.takahirom.roborazzi", version.ref = "roborazzi" }
|
||||
sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
|
||||
firebaseAppDistribution = { id = "com.google.firebase.appdistribution", version.ref = "firebaseAppDistribution" }
|
||||
knit = { id = "org.jetbrains.kotlinx.knit", version = "0.5.0" }
|
||||
|
||||
29
libraries/compound/build.gradle.kts
Normal file
29
libraries/compound/build.gradle.kts
Normal file
@@ -0,0 +1,29 @@
|
||||
import extension.testCommonDependencies
|
||||
|
||||
/*
|
||||
* Copyright 2022, 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
plugins {
|
||||
id("io.element.android-compose-library")
|
||||
alias(libs.plugins.roborazzi)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "io.element.android.compound"
|
||||
|
||||
testOptions {
|
||||
unitTests.isIncludeAndroidResources = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.showkase)
|
||||
testCommonDependencies(libs)
|
||||
testImplementation(libs.test.roborazzi)
|
||||
testImplementation(libs.test.roborazzi.compose)
|
||||
testImplementation(libs.test.roborazzi.junit)
|
||||
}
|
||||
}
|
||||
BIN
libraries/compound/screenshots/Avatar Colors - Dark.png
LFS
Normal file
BIN
libraries/compound/screenshots/Avatar Colors - Dark.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Avatar Colors - Light.png
LFS
Normal file
BIN
libraries/compound/screenshots/Avatar Colors - Light.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Icons - Dark.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Icons - Dark.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Icons - Light.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Icons - Light.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Icons - Rtl.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Icons - Rtl.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Semantic Colors - Dark HC.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Semantic Colors - Dark HC.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Semantic Colors - Dark.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Semantic Colors - Dark.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Semantic Colors - Light HC.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Semantic Colors - Light HC.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Semantic Colors - Light.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Semantic Colors - Light.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Typography.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Typography.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Vector Icons - Dark.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Vector Icons - Dark.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Compound Vector Icons - Light.png
LFS
Normal file
BIN
libraries/compound/screenshots/Compound Vector Icons - Light.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/ForcedDarkElementTheme.png
LFS
Normal file
BIN
libraries/compound/screenshots/ForcedDarkElementTheme.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Legacy Colors.png
LFS
Normal file
BIN
libraries/compound/screenshots/Legacy Colors.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Material Typography.png
LFS
Normal file
BIN
libraries/compound/screenshots/Material Typography.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Material3 Colors - Dark HC.png
LFS
Normal file
BIN
libraries/compound/screenshots/Material3 Colors - Dark HC.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Material3 Colors - Dark.png
LFS
Normal file
BIN
libraries/compound/screenshots/Material3 Colors - Dark.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Material3 Colors - Light HC.png
LFS
Normal file
BIN
libraries/compound/screenshots/Material3 Colors - Light HC.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/Material3 Colors - Light.png
LFS
Normal file
BIN
libraries/compound/screenshots/Material3 Colors - Light.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/MaterialText Colors.png
LFS
Normal file
BIN
libraries/compound/screenshots/MaterialText Colors.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/MaterialYou Theme - Dark.png
LFS
Normal file
BIN
libraries/compound/screenshots/MaterialYou Theme - Dark.png
LFS
Normal file
Binary file not shown.
BIN
libraries/compound/screenshots/MaterialYou Theme - Light.png
LFS
Normal file
BIN
libraries/compound/screenshots/MaterialYou Theme - Light.png
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.annotations
|
||||
|
||||
@RequiresOptIn(
|
||||
message = "This is a Core color token, which should only be used to declare semantic colors, otherwise it" +
|
||||
" would look the same on both light and dark modes. Only use it as is if you know what you are doing."
|
||||
)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS)
|
||||
annotation class CoreColorToken
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.previews
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.unit.dp
|
||||
import kotlinx.collections.immutable.ImmutableMap
|
||||
import kotlin.math.ceil
|
||||
|
||||
@Composable
|
||||
fun ColorListPreview(
|
||||
backgroundColor: Color,
|
||||
foregroundColor: Color,
|
||||
colors: ImmutableMap<String, Color>,
|
||||
modifier: Modifier = Modifier,
|
||||
numColumns: Int = 1,
|
||||
) {
|
||||
Row(
|
||||
modifier = modifier.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
colors.keys
|
||||
.chunked(ceil(colors.keys.size / numColumns.toDouble()).toInt())
|
||||
.forEach { subList ->
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.background(color = backgroundColor)
|
||||
.weight(1f)
|
||||
) {
|
||||
subList.forEach { name ->
|
||||
val color = colors[name]!!
|
||||
ColorPreview(
|
||||
backgroundColor = backgroundColor,
|
||||
foregroundColor = foregroundColor,
|
||||
name = name,
|
||||
color = color
|
||||
)
|
||||
}
|
||||
Spacer(modifier = Modifier.height(2.dp))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.previews
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Brush
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import io.element.android.compound.utils.toHrf
|
||||
|
||||
@Composable
|
||||
fun ColorPreview(
|
||||
backgroundColor: Color,
|
||||
foregroundColor: Color,
|
||||
name: String,
|
||||
color: Color,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
Column(modifier = modifier.fillMaxWidth()) {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = 10.dp),
|
||||
text = name + " " + color.toHrf(),
|
||||
fontSize = 6.sp,
|
||||
color = foregroundColor,
|
||||
)
|
||||
val backgroundBrush = Brush.linearGradient(
|
||||
listOf(
|
||||
backgroundColor,
|
||||
foregroundColor,
|
||||
)
|
||||
)
|
||||
Row(
|
||||
modifier = Modifier.background(backgroundBrush)
|
||||
) {
|
||||
repeat(2) {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.padding(1.dp)
|
||||
.background(Color.White)
|
||||
.background(color = color)
|
||||
.height(10.dp)
|
||||
.weight(1f)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.previews
|
||||
|
||||
import androidx.compose.material3.ColorScheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import kotlinx.collections.immutable.persistentMapOf
|
||||
|
||||
@Composable
|
||||
internal fun ColorsSchemePreview(
|
||||
backgroundColor: Color,
|
||||
foregroundColor: Color,
|
||||
colorScheme: ColorScheme,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
val colors = persistentMapOf(
|
||||
"primary" to colorScheme.primary,
|
||||
"onPrimary" to colorScheme.onPrimary,
|
||||
"primaryContainer" to colorScheme.primaryContainer,
|
||||
"onPrimaryContainer" to colorScheme.onPrimaryContainer,
|
||||
"inversePrimary" to colorScheme.inversePrimary,
|
||||
"secondary" to colorScheme.secondary,
|
||||
"onSecondary" to colorScheme.onSecondary,
|
||||
"secondaryContainer" to colorScheme.secondaryContainer,
|
||||
"onSecondaryContainer" to colorScheme.onSecondaryContainer,
|
||||
"tertiary" to colorScheme.tertiary,
|
||||
"onTertiary" to colorScheme.onTertiary,
|
||||
"tertiaryContainer" to colorScheme.tertiaryContainer,
|
||||
"onTertiaryContainer" to colorScheme.onTertiaryContainer,
|
||||
"background" to colorScheme.background,
|
||||
"onBackground" to colorScheme.onBackground,
|
||||
"surface" to colorScheme.surface,
|
||||
"onSurface" to colorScheme.onSurface,
|
||||
"surfaceVariant" to colorScheme.surfaceVariant,
|
||||
"onSurfaceVariant" to colorScheme.onSurfaceVariant,
|
||||
"surfaceTint" to colorScheme.surfaceTint,
|
||||
"inverseSurface" to colorScheme.inverseSurface,
|
||||
"inverseOnSurface" to colorScheme.inverseOnSurface,
|
||||
"error" to colorScheme.error,
|
||||
"onError" to colorScheme.onError,
|
||||
"errorContainer" to colorScheme.errorContainer,
|
||||
"onErrorContainer" to colorScheme.onErrorContainer,
|
||||
"outline" to colorScheme.outline,
|
||||
"outlineVariant" to colorScheme.outlineVariant,
|
||||
"scrim" to colorScheme.scrim,
|
||||
)
|
||||
ColorListPreview(
|
||||
backgroundColor = backgroundColor,
|
||||
foregroundColor = foregroundColor,
|
||||
colors = colors,
|
||||
modifier = modifier,
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* Copyright 2023, 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.previews
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.ColumnScope
|
||||
import androidx.compose.foundation.layout.IntrinsicSize
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.CompositionLocalProvider
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.vector.ImageVector
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.LocalLayoutDirection
|
||||
import androidx.compose.ui.res.vectorResource
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.LayoutDirection
|
||||
import androidx.compose.ui.unit.dp
|
||||
import io.element.android.compound.theme.ElementTheme
|
||||
import io.element.android.compound.tokens.generated.CompoundIcons
|
||||
import kotlinx.collections.immutable.ImmutableList
|
||||
import kotlinx.collections.immutable.toImmutableList
|
||||
|
||||
@Preview(widthDp = 730, heightDp = 1800)
|
||||
@Composable
|
||||
internal fun IconsCompoundPreviewLight() = ElementTheme {
|
||||
IconsCompoundPreview()
|
||||
}
|
||||
|
||||
@Preview(widthDp = 730, heightDp = 1800)
|
||||
@Composable
|
||||
internal fun IconsCompoundPreviewRtl() = ElementTheme {
|
||||
CompositionLocalProvider(
|
||||
LocalLayoutDirection provides LayoutDirection.Rtl,
|
||||
) {
|
||||
IconsCompoundPreview(
|
||||
title = "Compound Icons Rtl",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@Preview(widthDp = 730, heightDp = 1800)
|
||||
@Composable
|
||||
internal fun IconsCompoundPreviewDark() = ElementTheme(darkTheme = true) {
|
||||
IconsCompoundPreview()
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun IconsCompoundPreview(
|
||||
title: String = "Compound Icons",
|
||||
) {
|
||||
val context = LocalContext.current
|
||||
val content: Sequence<@Composable ColumnScope.() -> Unit> = sequence {
|
||||
for (icon in CompoundIcons.allResIds) {
|
||||
yield {
|
||||
Icon(
|
||||
modifier = Modifier.size(32.dp),
|
||||
imageVector = ImageVector.vectorResource(icon),
|
||||
contentDescription = null,
|
||||
)
|
||||
Text(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
text = context.resources.getResourceEntryName(icon)
|
||||
.removePrefix("ic_compound_")
|
||||
.replace("_", " "),
|
||||
textAlign = TextAlign.Center,
|
||||
style = ElementTheme.typography.fontBodyXsMedium,
|
||||
color = ElementTheme.colors.textSecondary,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
IconsPreview(
|
||||
title = title,
|
||||
content = content.toImmutableList(),
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun IconsPreview(
|
||||
title: String,
|
||||
content: ImmutableList<@Composable ColumnScope.() -> Unit>,
|
||||
) = Surface {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.background(MaterialTheme.colorScheme.surfaceVariant)
|
||||
.padding(16.dp)
|
||||
.width(IntrinsicSize.Max),
|
||||
verticalArrangement = Arrangement.spacedBy(6.dp),
|
||||
) {
|
||||
Text(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(bottom = 16.dp),
|
||||
style = ElementTheme.typography.fontHeadingSmMedium,
|
||||
text = title,
|
||||
textAlign = TextAlign.Center,
|
||||
)
|
||||
content.chunked(10).forEach { chunk ->
|
||||
Row(
|
||||
modifier = Modifier.height(IntrinsicSize.Max),
|
||||
// Keep same order of icons for an easier comparison of previews
|
||||
horizontalArrangement = Arrangement.Absolute.Left,
|
||||
) {
|
||||
chunk.forEachIndexed { index, icon ->
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.background(MaterialTheme.colorScheme.background)
|
||||
.fillMaxHeight()
|
||||
.width(64.dp)
|
||||
.padding(4.dp),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
) {
|
||||
icon()
|
||||
}
|
||||
if (index < chunk.size - 1) {
|
||||
Spacer(modifier = Modifier.width(6.dp))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.previews
|
||||
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import io.element.android.compound.theme.ElementTheme
|
||||
import io.element.android.compound.tokens.generated.compoundColorsHcDark
|
||||
import kotlinx.collections.immutable.ImmutableMap
|
||||
import kotlinx.collections.immutable.persistentMapOf
|
||||
|
||||
@Preview(heightDp = 2000)
|
||||
@Composable
|
||||
internal fun CompoundSemanticColorsLight() = ElementTheme {
|
||||
Surface {
|
||||
Column(
|
||||
modifier = Modifier.padding(16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(10.dp)
|
||||
) {
|
||||
Text("Compound Semantic Colors - Light")
|
||||
ColorListPreview(
|
||||
backgroundColor = Color.White,
|
||||
foregroundColor = Color.Black,
|
||||
colors = getSemanticColors(),
|
||||
numColumns = 2,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview(heightDp = 2000)
|
||||
@Composable
|
||||
internal fun CompoundSemanticColorsLightHc() = ElementTheme(
|
||||
compoundDark = compoundColorsHcDark,
|
||||
) {
|
||||
Surface {
|
||||
Column(
|
||||
modifier = Modifier.padding(16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(10.dp)
|
||||
) {
|
||||
Text("Compound Semantic Colors - Light HC")
|
||||
ColorListPreview(
|
||||
backgroundColor = Color.White,
|
||||
foregroundColor = Color.Black,
|
||||
colors = getSemanticColors(),
|
||||
numColumns = 2,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview(heightDp = 2000)
|
||||
@Composable
|
||||
internal fun CompoundSemanticColorsDark() = ElementTheme(darkTheme = true) {
|
||||
Surface {
|
||||
Column(
|
||||
modifier = Modifier.padding(16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(10.dp)
|
||||
) {
|
||||
Text("Compound Semantic Colors - Dark")
|
||||
ColorListPreview(
|
||||
backgroundColor = Color.White,
|
||||
foregroundColor = Color.Black,
|
||||
colors = getSemanticColors(),
|
||||
numColumns = 2,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview(heightDp = 2000)
|
||||
@Composable
|
||||
internal fun CompoundSemanticColorsDarkHc() = ElementTheme(
|
||||
darkTheme = true,
|
||||
compoundDark = compoundColorsHcDark,
|
||||
) {
|
||||
Surface {
|
||||
Column(
|
||||
modifier = Modifier.padding(16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(10.dp)
|
||||
) {
|
||||
Text("Compound Semantic Colors - Dark HC")
|
||||
ColorListPreview(
|
||||
backgroundColor = Color.White,
|
||||
foregroundColor = Color.Black,
|
||||
colors = getSemanticColors(),
|
||||
numColumns = 2,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun getSemanticColors(): ImmutableMap<String, Color> {
|
||||
return with(ElementTheme.colors) {
|
||||
persistentMapOf(
|
||||
"bgAccentHovered" to bgAccentHovered,
|
||||
"bgAccentPressed" to bgAccentPressed,
|
||||
"bgAccentRest" to bgAccentRest,
|
||||
"bgAccentSelected" to bgAccentSelected,
|
||||
"bgActionPrimaryDisabled" to bgActionPrimaryDisabled,
|
||||
"bgActionPrimaryHovered" to bgActionPrimaryHovered,
|
||||
"bgActionPrimaryPressed" to bgActionPrimaryPressed,
|
||||
"bgActionPrimaryRest" to bgActionPrimaryRest,
|
||||
"bgActionSecondaryHovered" to bgActionSecondaryHovered,
|
||||
"bgActionSecondaryPressed" to bgActionSecondaryPressed,
|
||||
"bgActionSecondaryRest" to bgActionSecondaryRest,
|
||||
"bgBadgeAccent" to bgBadgeAccent,
|
||||
"bgBadgeDefault" to bgBadgeDefault,
|
||||
"bgBadgeInfo" to bgBadgeInfo,
|
||||
"bgCanvasDefault" to bgCanvasDefault,
|
||||
"bgCanvasDefaultLevel1" to bgCanvasDefaultLevel1,
|
||||
"bgCanvasDisabled" to bgCanvasDisabled,
|
||||
"bgCriticalHovered" to bgCriticalHovered,
|
||||
"bgCriticalPrimary" to bgCriticalPrimary,
|
||||
"bgCriticalSubtle" to bgCriticalSubtle,
|
||||
"bgCriticalSubtleHovered" to bgCriticalSubtleHovered,
|
||||
"bgDecorative1" to bgDecorative1,
|
||||
"bgDecorative2" to bgDecorative2,
|
||||
"bgDecorative3" to bgDecorative3,
|
||||
"bgDecorative4" to bgDecorative4,
|
||||
"bgDecorative5" to bgDecorative5,
|
||||
"bgDecorative6" to bgDecorative6,
|
||||
"bgInfoSubtle" to bgInfoSubtle,
|
||||
"bgSubtlePrimary" to bgSubtlePrimary,
|
||||
"bgSubtleSecondary" to bgSubtleSecondary,
|
||||
"bgSubtleSecondaryLevel0" to bgSubtleSecondaryLevel0,
|
||||
"bgSuccessSubtle" to bgSuccessSubtle,
|
||||
"borderAccentSubtle" to borderAccentSubtle,
|
||||
"borderCriticalHovered" to borderCriticalHovered,
|
||||
"borderCriticalPrimary" to borderCriticalPrimary,
|
||||
"borderCriticalSubtle" to borderCriticalSubtle,
|
||||
"borderDisabled" to borderDisabled,
|
||||
"borderFocused" to borderFocused,
|
||||
"borderInfoSubtle" to borderInfoSubtle,
|
||||
"borderInteractiveHovered" to borderInteractiveHovered,
|
||||
"borderInteractivePrimary" to borderInteractivePrimary,
|
||||
"borderInteractiveSecondary" to borderInteractiveSecondary,
|
||||
"borderSuccessSubtle" to borderSuccessSubtle,
|
||||
"gradientActionStop1" to gradientActionStop1,
|
||||
"gradientActionStop2" to gradientActionStop2,
|
||||
"gradientActionStop3" to gradientActionStop3,
|
||||
"gradientActionStop4" to gradientActionStop4,
|
||||
"gradientInfoStop1" to gradientInfoStop1,
|
||||
"gradientInfoStop2" to gradientInfoStop2,
|
||||
"gradientInfoStop3" to gradientInfoStop3,
|
||||
"gradientInfoStop4" to gradientInfoStop4,
|
||||
"gradientInfoStop5" to gradientInfoStop5,
|
||||
"gradientInfoStop6" to gradientInfoStop6,
|
||||
"gradientSubtleStop1" to gradientSubtleStop1,
|
||||
"gradientSubtleStop2" to gradientSubtleStop2,
|
||||
"gradientSubtleStop3" to gradientSubtleStop3,
|
||||
"gradientSubtleStop4" to gradientSubtleStop4,
|
||||
"gradientSubtleStop5" to gradientSubtleStop5,
|
||||
"gradientSubtleStop6" to gradientSubtleStop6,
|
||||
"iconAccentPrimary" to iconAccentPrimary,
|
||||
"iconAccentTertiary" to iconAccentTertiary,
|
||||
"iconCriticalPrimary" to iconCriticalPrimary,
|
||||
"iconDisabled" to iconDisabled,
|
||||
"iconInfoPrimary" to iconInfoPrimary,
|
||||
"iconOnSolidPrimary" to iconOnSolidPrimary,
|
||||
"iconPrimary" to iconPrimary,
|
||||
"iconPrimaryAlpha" to iconPrimaryAlpha,
|
||||
"iconQuaternary" to iconQuaternary,
|
||||
"iconQuaternaryAlpha" to iconQuaternaryAlpha,
|
||||
"iconSecondary" to iconSecondary,
|
||||
"iconSecondaryAlpha" to iconSecondaryAlpha,
|
||||
"iconSuccessPrimary" to iconSuccessPrimary,
|
||||
"iconTertiary" to iconTertiary,
|
||||
"iconTertiaryAlpha" to iconTertiaryAlpha,
|
||||
"textActionAccent" to textActionAccent,
|
||||
"textActionPrimary" to textActionPrimary,
|
||||
"textBadgeAccent" to textBadgeAccent,
|
||||
"textBadgeInfo" to textBadgeInfo,
|
||||
"textCriticalPrimary" to textCriticalPrimary,
|
||||
"textDecorative1" to textDecorative1,
|
||||
"textDecorative2" to textDecorative2,
|
||||
"textDecorative3" to textDecorative3,
|
||||
"textDecorative4" to textDecorative4,
|
||||
"textDecorative5" to textDecorative5,
|
||||
"textDecorative6" to textDecorative6,
|
||||
"textDisabled" to textDisabled,
|
||||
"textInfoPrimary" to textInfoPrimary,
|
||||
"textLinkExternal" to textLinkExternal,
|
||||
"textOnSolidPrimary" to textOnSolidPrimary,
|
||||
"textPrimary" to textPrimary,
|
||||
"textSecondary" to textSecondary,
|
||||
"textSuccessPrimary" to textSuccessPrimary,
|
||||
"isLight" to if (isLight) Color.White else Color.Black,
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.previews
|
||||
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import io.element.android.compound.theme.ElementTheme
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
internal fun TypographyPreview() = ElementTheme {
|
||||
Surface {
|
||||
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
with(ElementTheme.materialTypography) {
|
||||
TypographyTokenPreview(displayLarge, "Display large")
|
||||
TypographyTokenPreview(displayMedium, "Display medium")
|
||||
TypographyTokenPreview(displaySmall, "Display small")
|
||||
TypographyTokenPreview(headlineLarge, "Headline large")
|
||||
TypographyTokenPreview(headlineMedium, "Headline medium")
|
||||
TypographyTokenPreview(headlineSmall, "Headline small")
|
||||
TypographyTokenPreview(titleLarge, "Title large")
|
||||
TypographyTokenPreview(titleMedium, "Title medium")
|
||||
TypographyTokenPreview(titleSmall, "Title small")
|
||||
TypographyTokenPreview(bodyLarge, "Body large")
|
||||
TypographyTokenPreview(bodyMedium, "Body medium")
|
||||
TypographyTokenPreview(bodySmall, "Body small")
|
||||
TypographyTokenPreview(labelLarge, "Label large")
|
||||
TypographyTokenPreview(labelMedium, "Label medium")
|
||||
TypographyTokenPreview(labelSmall, "Label small")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun TypographyTokenPreview(style: TextStyle, text: String) {
|
||||
Text(text = text, style = style)
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.showkase
|
||||
|
||||
import com.airbnb.android.showkase.annotation.ShowkaseRoot
|
||||
import com.airbnb.android.showkase.annotation.ShowkaseRootModule
|
||||
|
||||
@ShowkaseRoot
|
||||
class CompoundShowkaseRootModule : ShowkaseRootModule
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2023, 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.theme
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import kotlinx.collections.immutable.ImmutableList
|
||||
import kotlinx.collections.immutable.toImmutableList
|
||||
|
||||
/**
|
||||
* Data class to hold avatar colors.
|
||||
*/
|
||||
data class AvatarColors(
|
||||
/** Background color for the avatar. */
|
||||
val background: Color,
|
||||
/** Foreground color for the avatar. */
|
||||
val foreground: Color,
|
||||
)
|
||||
|
||||
/**
|
||||
* Avatar colors using semantic tokens.
|
||||
*/
|
||||
@Composable
|
||||
fun avatarColors(): List<AvatarColors> {
|
||||
return listOf(
|
||||
AvatarColors(background = ElementTheme.colors.bgDecorative1, foreground = ElementTheme.colors.textDecorative1),
|
||||
AvatarColors(background = ElementTheme.colors.bgDecorative2, foreground = ElementTheme.colors.textDecorative2),
|
||||
AvatarColors(background = ElementTheme.colors.bgDecorative3, foreground = ElementTheme.colors.textDecorative3),
|
||||
AvatarColors(background = ElementTheme.colors.bgDecorative4, foreground = ElementTheme.colors.textDecorative4),
|
||||
AvatarColors(background = ElementTheme.colors.bgDecorative5, foreground = ElementTheme.colors.textDecorative5),
|
||||
AvatarColors(background = ElementTheme.colors.bgDecorative6, foreground = ElementTheme.colors.textDecorative6),
|
||||
)
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
internal fun AvatarColorsPreviewLight() {
|
||||
ElementTheme {
|
||||
val chunks = avatarColors().chunked(4)
|
||||
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
for (chunk in chunks) {
|
||||
AvatarColorRow(chunk.toImmutableList())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
internal fun AvatarColorsPreviewDark() {
|
||||
ElementTheme(darkTheme = true) {
|
||||
val chunks = avatarColors().chunked(4)
|
||||
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
for (chunk in chunks) {
|
||||
AvatarColorRow(chunk.toImmutableList())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun AvatarColorRow(colors: ImmutableList<AvatarColors>) {
|
||||
Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
colors.forEach { color ->
|
||||
Box(
|
||||
modifier = Modifier.size(48.dp)
|
||||
.background(color.background),
|
||||
) {
|
||||
Text(
|
||||
modifier = Modifier.align(Alignment.Center),
|
||||
text = "A",
|
||||
color = color.foreground,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.theme
|
||||
|
||||
import android.os.Build
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.activity.SystemBarStyle
|
||||
import androidx.activity.compose.LocalActivity
|
||||
import androidx.activity.enableEdgeToEdge
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
import androidx.compose.material3.ColorScheme
|
||||
import androidx.compose.material3.LocalContentColor
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Typography
|
||||
import androidx.compose.material3.dynamicDarkColorScheme
|
||||
import androidx.compose.material3.dynamicLightColorScheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.CompositionLocalProvider
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.ReadOnlyComposable
|
||||
import androidx.compose.runtime.staticCompositionLocalOf
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.toArgb
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import io.element.android.compound.tokens.compoundTypography
|
||||
import io.element.android.compound.tokens.generated.SemanticColors
|
||||
import io.element.android.compound.tokens.generated.TypographyTokens
|
||||
import io.element.android.compound.tokens.generated.compoundColorsDark
|
||||
import io.element.android.compound.tokens.generated.compoundColorsLight
|
||||
|
||||
/**
|
||||
* Inspired from https://medium.com/@lucasyujideveloper/54cbcbde1ace
|
||||
*/
|
||||
object ElementTheme {
|
||||
/**
|
||||
* The current [SemanticColors] provided by [ElementTheme].
|
||||
* These come from Compound and are the recommended colors to use for custom components.
|
||||
* In Figma, these colors usually have the `Light/` or `Dark/` prefix.
|
||||
*/
|
||||
val colors: SemanticColors
|
||||
@Composable
|
||||
@ReadOnlyComposable
|
||||
get() = LocalCompoundColors.current
|
||||
|
||||
/**
|
||||
* The current Material 3 [ColorScheme] provided by [ElementTheme], coming from [MaterialTheme].
|
||||
* In Figma, these colors usually have the `M3/` prefix.
|
||||
*/
|
||||
val materialColors: ColorScheme
|
||||
@Composable
|
||||
@ReadOnlyComposable
|
||||
get() = MaterialTheme.colorScheme
|
||||
|
||||
/**
|
||||
* Compound [Typography] tokens. In Figma, these have the `Android/font/` prefix.
|
||||
*/
|
||||
val typography: TypographyTokens = TypographyTokens
|
||||
|
||||
/**
|
||||
* Material 3 [Typography] tokens. In Figma, these have the `M3 Typography/` prefix.
|
||||
*/
|
||||
val materialTypography: Typography
|
||||
@Composable
|
||||
@ReadOnlyComposable
|
||||
get() = MaterialTheme.typography
|
||||
|
||||
/**
|
||||
* Returns whether the theme version used is the light or the dark one.
|
||||
*/
|
||||
val isLightTheme: Boolean
|
||||
@Composable
|
||||
@ReadOnlyComposable
|
||||
get() = LocalCompoundColors.current.isLight
|
||||
}
|
||||
|
||||
// Global variables (application level)
|
||||
internal val LocalCompoundColors = staticCompositionLocalOf { compoundColorsLight }
|
||||
|
||||
/**
|
||||
* Sets up the theme for the application, or a part of it.
|
||||
*
|
||||
* @param darkTheme whether to use the dark theme or not. If `true`, the dark theme will be used.
|
||||
* @param applySystemBarsUpdate whether to update the system bars color scheme or not when the theme changes. It's `true` by default.
|
||||
* This is specially useful when you want to apply an alternate theme to a part of the app but don't want it to affect the system bars.
|
||||
* @param lightStatusBar whether to use a light status bar color scheme or not. By default, it's the opposite of [darkTheme].
|
||||
* @param dynamicColor whether to enable MaterialYou or not. It's `false` by default.
|
||||
* @param compoundLight the [SemanticColors] to use in light theme.
|
||||
* @param compoundDark the [SemanticColors] to use in dark theme.
|
||||
* @param materialColorsLight the Material 3 [ColorScheme] to use in light theme.
|
||||
* @param materialColorsDark the Material 3 [ColorScheme] to use in dark theme.
|
||||
* @param typography the Material 3 [Typography] tokens to use. It'll use [compoundTypography] by default.
|
||||
* @param content the content to apply the theme to.
|
||||
*/
|
||||
@Composable
|
||||
fun ElementTheme(
|
||||
darkTheme: Boolean = isSystemInDarkTheme(),
|
||||
applySystemBarsUpdate: Boolean = true,
|
||||
lightStatusBar: Boolean = !darkTheme,
|
||||
// true to enable MaterialYou
|
||||
dynamicColor: Boolean = false,
|
||||
compoundLight: SemanticColors = compoundColorsLight,
|
||||
compoundDark: SemanticColors = compoundColorsDark,
|
||||
materialColorsLight: ColorScheme = compoundLight.toMaterialColorScheme(),
|
||||
materialColorsDark: ColorScheme = compoundDark.toMaterialColorScheme(),
|
||||
typography: Typography = compoundTypography,
|
||||
content: @Composable () -> Unit,
|
||||
) {
|
||||
val currentCompoundColor = when {
|
||||
darkTheme -> compoundDark
|
||||
else -> compoundLight
|
||||
}
|
||||
|
||||
val colorScheme = when {
|
||||
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
|
||||
val context = LocalContext.current
|
||||
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
|
||||
}
|
||||
darkTheme -> materialColorsDark
|
||||
else -> materialColorsLight
|
||||
}
|
||||
|
||||
val statusBarColorScheme = if (dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
val context = LocalContext.current
|
||||
if (lightStatusBar) {
|
||||
dynamicDarkColorScheme(context)
|
||||
} else {
|
||||
dynamicLightColorScheme(context)
|
||||
}
|
||||
} else {
|
||||
colorScheme
|
||||
}
|
||||
|
||||
if (applySystemBarsUpdate) {
|
||||
val activity = LocalActivity.current as? ComponentActivity
|
||||
LaunchedEffect(statusBarColorScheme, darkTheme, lightStatusBar) {
|
||||
activity?.enableEdgeToEdge(
|
||||
// For Status bar use the background color of the app
|
||||
statusBarStyle = SystemBarStyle.auto(
|
||||
lightScrim = statusBarColorScheme.background.toArgb(),
|
||||
darkScrim = statusBarColorScheme.background.toArgb(),
|
||||
detectDarkMode = { !lightStatusBar }
|
||||
),
|
||||
// For Navigation bar use a transparent color so the content can be seen through it
|
||||
navigationBarStyle = if (darkTheme) {
|
||||
SystemBarStyle.dark(Color.Transparent.toArgb())
|
||||
} else {
|
||||
SystemBarStyle.light(Color.Transparent.toArgb(), Color.Transparent.toArgb())
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
CompositionLocalProvider(
|
||||
LocalCompoundColors provides currentCompoundColor,
|
||||
LocalContentColor provides colorScheme.onSurface,
|
||||
) {
|
||||
MaterialTheme(
|
||||
colorScheme = colorScheme,
|
||||
typography = typography,
|
||||
content = content
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.theme
|
||||
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.activity.SystemBarStyle
|
||||
import androidx.activity.compose.LocalActivity
|
||||
import androidx.activity.enableEdgeToEdge
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.DisposableEffect
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.toArgb
|
||||
|
||||
/**
|
||||
* Can be used to force a composable in dark theme.
|
||||
* It will automatically change the system ui colors back to normal when leaving the composition.
|
||||
*/
|
||||
@Composable
|
||||
fun ForcedDarkElementTheme(
|
||||
lightStatusBar: Boolean = false,
|
||||
content: @Composable () -> Unit,
|
||||
) {
|
||||
val colorScheme = MaterialTheme.colorScheme
|
||||
val wasDarkTheme = !ElementTheme.colors.isLight
|
||||
val activity = LocalActivity.current as? ComponentActivity
|
||||
DisposableEffect(Unit) {
|
||||
onDispose {
|
||||
activity?.enableEdgeToEdge(
|
||||
statusBarStyle = SystemBarStyle.auto(
|
||||
lightScrim = colorScheme.background.toArgb(),
|
||||
darkScrim = colorScheme.background.toArgb(),
|
||||
),
|
||||
navigationBarStyle = if (wasDarkTheme) {
|
||||
SystemBarStyle.dark(Color.Transparent.toArgb())
|
||||
} else {
|
||||
SystemBarStyle.light(
|
||||
scrim = Color.Transparent.toArgb(),
|
||||
darkScrim = Color.Transparent.toArgb()
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
ElementTheme(darkTheme = true, lightStatusBar = lightStatusBar, content = content)
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.theme
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
import io.element.android.compound.tokens.generated.internal.DarkColorTokens
|
||||
import io.element.android.compound.tokens.generated.internal.LightColorTokens
|
||||
|
||||
// =================================================================================================
|
||||
// IMPORTANT!
|
||||
// We should not be adding any new colors here. This file is only for legacy colors.
|
||||
// In fact, we should try to remove any references to these colors as we
|
||||
// iterate through the designs. All new colors should come from Compound's Design Tokens.
|
||||
// =================================================================================================
|
||||
|
||||
val LinkColor = Color(0xFF0086E6)
|
||||
|
||||
@OptIn(CoreColorToken::class)
|
||||
val SnackBarLabelColorLight = LightColorTokens.colorGray700
|
||||
@OptIn(CoreColorToken::class)
|
||||
val SnackBarLabelColorDark = DarkColorTokens.colorGray700
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.theme
|
||||
|
||||
import androidx.compose.material3.ColorScheme
|
||||
import androidx.compose.material3.darkColorScheme
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
import io.element.android.compound.tokens.generated.SemanticColors
|
||||
import io.element.android.compound.tokens.generated.internal.DarkColorTokens
|
||||
|
||||
/**
|
||||
* See the mapping in
|
||||
* https://www.figma.com/design/G1xy0HDZKJf5TCRFmKb5d5/Compound-Android-Components?node-id=311-14&p=f&t=QcVyNaPEZMDA6RFK-0
|
||||
*/
|
||||
@OptIn(CoreColorToken::class)
|
||||
fun SemanticColors.toMaterialColorSchemeDark(): ColorScheme = darkColorScheme(
|
||||
primary = bgActionPrimaryRest,
|
||||
onPrimary = textOnSolidPrimary,
|
||||
primaryContainer = bgCanvasDefault,
|
||||
onPrimaryContainer = textPrimary,
|
||||
inversePrimary = textOnSolidPrimary,
|
||||
secondary = textSecondary,
|
||||
onSecondary = textOnSolidPrimary,
|
||||
secondaryContainer = bgSubtlePrimary,
|
||||
onSecondaryContainer = textPrimary,
|
||||
tertiary = textSecondary,
|
||||
onTertiary = textOnSolidPrimary,
|
||||
tertiaryContainer = bgActionPrimaryRest,
|
||||
onTertiaryContainer = textOnSolidPrimary,
|
||||
background = bgCanvasDefault,
|
||||
onBackground = textPrimary,
|
||||
surface = bgCanvasDefault,
|
||||
onSurface = textPrimary,
|
||||
surfaceVariant = bgSubtleSecondary,
|
||||
onSurfaceVariant = textSecondary,
|
||||
surfaceTint = DarkColorTokens.colorGray1000,
|
||||
inverseSurface = DarkColorTokens.colorGray1300,
|
||||
inverseOnSurface = textOnSolidPrimary,
|
||||
error = textCriticalPrimary,
|
||||
onError = textOnSolidPrimary,
|
||||
errorContainer = DarkColorTokens.colorRed400,
|
||||
onErrorContainer = textCriticalPrimary,
|
||||
outline = borderInteractivePrimary,
|
||||
outlineVariant = DarkColorTokens.colorAlphaGray400,
|
||||
// Note: for light it will be colorGray1400
|
||||
scrim = DarkColorTokens.colorGray300,
|
||||
)
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.theme
|
||||
|
||||
import androidx.compose.material3.ColorScheme
|
||||
import androidx.compose.material3.lightColorScheme
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
import io.element.android.compound.tokens.generated.SemanticColors
|
||||
import io.element.android.compound.tokens.generated.internal.LightColorTokens
|
||||
|
||||
/**
|
||||
* See the mapping in
|
||||
* https://www.figma.com/design/G1xy0HDZKJf5TCRFmKb5d5/Compound-Android-Components?node-id=311-14&p=f&t=QcVyNaPEZMDA6RFK-0
|
||||
*/
|
||||
@OptIn(CoreColorToken::class)
|
||||
fun SemanticColors.toMaterialColorSchemeLight(): ColorScheme = lightColorScheme(
|
||||
primary = bgActionPrimaryRest,
|
||||
onPrimary = textOnSolidPrimary,
|
||||
primaryContainer = bgCanvasDefault,
|
||||
onPrimaryContainer = textPrimary,
|
||||
inversePrimary = textOnSolidPrimary,
|
||||
secondary = textSecondary,
|
||||
onSecondary = textOnSolidPrimary,
|
||||
secondaryContainer = bgSubtlePrimary,
|
||||
onSecondaryContainer = textPrimary,
|
||||
tertiary = textSecondary,
|
||||
onTertiary = textOnSolidPrimary,
|
||||
tertiaryContainer = bgActionPrimaryRest,
|
||||
onTertiaryContainer = textOnSolidPrimary,
|
||||
background = bgCanvasDefault,
|
||||
onBackground = textPrimary,
|
||||
surface = bgCanvasDefault,
|
||||
onSurface = textPrimary,
|
||||
surfaceVariant = bgSubtleSecondary,
|
||||
onSurfaceVariant = textSecondary,
|
||||
surfaceTint = LightColorTokens.colorGray1000,
|
||||
inverseSurface = LightColorTokens.colorGray1300,
|
||||
inverseOnSurface = textOnSolidPrimary,
|
||||
error = textCriticalPrimary,
|
||||
onError = textOnSolidPrimary,
|
||||
errorContainer = LightColorTokens.colorRed400,
|
||||
onErrorContainer = textCriticalPrimary,
|
||||
outline = borderInteractivePrimary,
|
||||
outlineVariant = LightColorTokens.colorAlphaGray400,
|
||||
// Note: for dark it will be colorGray300
|
||||
scrim = LightColorTokens.colorGray1400,
|
||||
)
|
||||
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.theme
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.LocalTextStyle
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.text.font.FontFamily
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import io.element.android.compound.utils.toHrf
|
||||
|
||||
@Preview(heightDp = 1200, widthDp = 420)
|
||||
@Composable
|
||||
internal fun MaterialTextPreview() = Row(
|
||||
modifier = Modifier.background(Color.Yellow)
|
||||
) {
|
||||
MaterialPreview(
|
||||
modifier = Modifier.weight(1f),
|
||||
darkTheme = false,
|
||||
)
|
||||
MaterialPreview(
|
||||
modifier = Modifier.weight(1f),
|
||||
darkTheme = true,
|
||||
)
|
||||
}
|
||||
|
||||
private data class Model(
|
||||
val name: String,
|
||||
val bgColor: Color,
|
||||
val textColor: Color,
|
||||
)
|
||||
|
||||
@Composable
|
||||
private fun MaterialPreview(
|
||||
darkTheme: Boolean,
|
||||
modifier: Modifier = Modifier,
|
||||
) = Column(modifier = modifier) {
|
||||
Text(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(8.dp),
|
||||
textAlign = TextAlign.Center,
|
||||
text = if (darkTheme) "Dark" else "Light",
|
||||
color = Color.Black,
|
||||
fontSize = 18.sp,
|
||||
fontWeight = FontWeight.Bold,
|
||||
)
|
||||
ElementTheme(
|
||||
darkTheme = darkTheme,
|
||||
) {
|
||||
Column(
|
||||
modifier = Modifier.fillMaxSize()
|
||||
) {
|
||||
listOf(
|
||||
Model("Background", MaterialTheme.colorScheme.background, MaterialTheme.colorScheme.onBackground),
|
||||
Model("Primary", MaterialTheme.colorScheme.primary, MaterialTheme.colorScheme.onPrimary),
|
||||
Model("PrimaryContainer", MaterialTheme.colorScheme.primaryContainer, MaterialTheme.colorScheme.onPrimaryContainer),
|
||||
Model("Secondary", MaterialTheme.colorScheme.secondary, MaterialTheme.colorScheme.onSecondary),
|
||||
Model("SecondaryContainer", MaterialTheme.colorScheme.secondaryContainer, MaterialTheme.colorScheme.onSecondaryContainer),
|
||||
Model("Tertiary", MaterialTheme.colorScheme.tertiary, MaterialTheme.colorScheme.onTertiary),
|
||||
Model("TertiaryContainer", MaterialTheme.colorScheme.tertiaryContainer, MaterialTheme.colorScheme.onTertiaryContainer),
|
||||
Model("Surface", MaterialTheme.colorScheme.surface, MaterialTheme.colorScheme.onSurface),
|
||||
Model("SurfaceVariant", MaterialTheme.colorScheme.surfaceVariant, MaterialTheme.colorScheme.onSurfaceVariant),
|
||||
Model("InverseSurface", MaterialTheme.colorScheme.inverseSurface, MaterialTheme.colorScheme.inverseOnSurface),
|
||||
Model("Error", MaterialTheme.colorScheme.error, MaterialTheme.colorScheme.onError),
|
||||
Model("ErrorContainer", MaterialTheme.colorScheme.errorContainer, MaterialTheme.colorScheme.onErrorContainer),
|
||||
).forEach {
|
||||
TextPreview(
|
||||
name = it.name,
|
||||
bgColor = it.bgColor,
|
||||
textColor = it.textColor,
|
||||
)
|
||||
}
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.padding(1.dp)
|
||||
.fillMaxWidth()
|
||||
.background(MaterialTheme.colorScheme.background)
|
||||
) {
|
||||
Text(
|
||||
text = "Below\n".repeat(3),
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
Text(
|
||||
modifier = Modifier
|
||||
.padding(12.dp)
|
||||
.fillMaxWidth()
|
||||
// the alpha applied to the scrim color does not seem to be mandatory.
|
||||
// The library ignores the alpha level provided and apply it's own.
|
||||
// For testing the color, manually set an alpha.
|
||||
.background(color = MaterialTheme.colorScheme.scrim.copy(alpha = 0.32f))
|
||||
.padding(16.dp),
|
||||
text = "${"Scrim"}\n${MaterialTheme.colorScheme.scrim.toHrf()}",
|
||||
style = LocalTextStyle.current.copy(fontFamily = FontFamily.Monospace),
|
||||
textAlign = TextAlign.Center,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun TextPreview(
|
||||
name: String,
|
||||
bgColor: Color,
|
||||
textColor: Color,
|
||||
modifier: Modifier = Modifier,
|
||||
) = Text(
|
||||
modifier = modifier
|
||||
.padding(1.dp)
|
||||
.fillMaxWidth()
|
||||
.background(bgColor)
|
||||
.padding(horizontal = 16.dp, vertical = 8.dp),
|
||||
text = "$name\n${textColor.toHrf()}\n${bgColor.toHrf()}",
|
||||
style = LocalTextStyle.current.copy(fontFamily = FontFamily.Monospace),
|
||||
textAlign = TextAlign.Center,
|
||||
color = textColor,
|
||||
)
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.theme
|
||||
|
||||
import androidx.compose.material3.ColorScheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import io.element.android.compound.previews.ColorsSchemePreview
|
||||
import io.element.android.compound.tokens.generated.SemanticColors
|
||||
import io.element.android.compound.tokens.generated.compoundColorsHcDark
|
||||
import io.element.android.compound.tokens.generated.compoundColorsHcLight
|
||||
|
||||
fun SemanticColors.toMaterialColorScheme(): ColorScheme {
|
||||
return if (isLight) {
|
||||
toMaterialColorSchemeLight()
|
||||
} else {
|
||||
toMaterialColorSchemeDark()
|
||||
}
|
||||
}
|
||||
|
||||
@Preview(heightDp = 1200)
|
||||
@Composable
|
||||
internal fun ColorsSchemeLightPreview() = ElementTheme {
|
||||
ColorsSchemePreview(
|
||||
Color.Black,
|
||||
Color.White,
|
||||
ElementTheme.materialColors,
|
||||
)
|
||||
}
|
||||
|
||||
@Preview(heightDp = 1200)
|
||||
@Composable
|
||||
internal fun ColorsSchemeLightHcPreview() = ElementTheme(
|
||||
compoundLight = compoundColorsHcLight,
|
||||
) {
|
||||
ColorsSchemePreview(
|
||||
Color.Black,
|
||||
Color.White,
|
||||
ElementTheme.materialColors,
|
||||
)
|
||||
}
|
||||
|
||||
@Preview(heightDp = 1200)
|
||||
@Composable
|
||||
internal fun ColorsSchemeDarkPreview() = ElementTheme(
|
||||
darkTheme = true,
|
||||
) {
|
||||
ColorsSchemePreview(
|
||||
Color.White,
|
||||
Color.Black,
|
||||
ElementTheme.materialColors,
|
||||
)
|
||||
}
|
||||
|
||||
@Preview(heightDp = 1200)
|
||||
@Composable
|
||||
internal fun ColorsSchemeDarkHcPreview() = ElementTheme(
|
||||
darkTheme = true,
|
||||
compoundDark = compoundColorsHcDark,
|
||||
) {
|
||||
ColorsSchemePreview(
|
||||
Color.White,
|
||||
Color.Black,
|
||||
ElementTheme.materialColors,
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.theme
|
||||
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.map
|
||||
|
||||
enum class Theme {
|
||||
System,
|
||||
Dark,
|
||||
Light,
|
||||
}
|
||||
|
||||
val themes = listOf(Theme.System, Theme.Dark, Theme.Light)
|
||||
|
||||
@Composable
|
||||
fun Theme.isDark(): Boolean {
|
||||
return when (this) {
|
||||
Theme.System -> isSystemInDarkTheme()
|
||||
Theme.Dark -> true
|
||||
Theme.Light -> false
|
||||
}
|
||||
}
|
||||
|
||||
fun Flow<String?>.mapToTheme(): Flow<Theme> = map {
|
||||
when (it) {
|
||||
null -> Theme.System
|
||||
else -> Theme.valueOf(it)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.tokens
|
||||
|
||||
import androidx.compose.material3.Typography
|
||||
import androidx.compose.ui.text.PlatformTextStyle
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.font.FontFamily
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.LineHeightStyle
|
||||
import androidx.compose.ui.unit.em
|
||||
import androidx.compose.ui.unit.sp
|
||||
import com.airbnb.android.showkase.annotation.ShowkaseTypography
|
||||
import io.element.android.compound.tokens.generated.TypographyTokens
|
||||
|
||||
// 32px (Material) vs 34px, it's the closest one
|
||||
@ShowkaseTypography(name = "M3 Headline Large", group = "Compound")
|
||||
internal val compoundHeadingXlRegular = TypographyTokens.fontHeadingXlRegular
|
||||
|
||||
// both are 28px
|
||||
@ShowkaseTypography(name = "M3 Headline Medium", group = "Compound")
|
||||
internal val compoundHeadingLgRegular = TypographyTokens.fontHeadingLgRegular
|
||||
|
||||
// These are the default M3 values, but we're setting them manually so an update in M3 doesn't break our designs
|
||||
@ShowkaseTypography(name = "M3 Headline Small", group = "Compound")
|
||||
internal val defaultHeadlineSmall = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.Normal,
|
||||
lineHeight = 32.sp,
|
||||
fontSize = 24.sp,
|
||||
letterSpacing = 0.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
|
||||
// 22px (Material) vs 20px, it's the closest one
|
||||
@ShowkaseTypography(name = "M3 Title Large", group = "Compound")
|
||||
internal val compoundHeadingMdRegular = TypographyTokens.fontHeadingMdRegular
|
||||
|
||||
// 16px both
|
||||
@ShowkaseTypography(name = "M3 Title Medium", group = "Compound")
|
||||
internal val compoundBodyLgMedium = TypographyTokens.fontBodyLgMedium
|
||||
|
||||
// 14px both
|
||||
@ShowkaseTypography(name = "M3 Title Small", group = "Compound")
|
||||
internal val compoundBodyMdMedium = TypographyTokens.fontBodyMdMedium
|
||||
|
||||
// 16px both
|
||||
@ShowkaseTypography(name = "M3 Body Large", group = "Compound")
|
||||
internal val compoundBodyLgRegular = TypographyTokens.fontBodyLgRegular
|
||||
|
||||
// 14px both
|
||||
@ShowkaseTypography(name = "M3 Body Medium", group = "Compound")
|
||||
internal val compoundBodyMdRegular = TypographyTokens.fontBodyMdRegular
|
||||
|
||||
// 12px both
|
||||
@ShowkaseTypography(name = "M3 Body Small", group = "Compound")
|
||||
internal val compoundBodySmRegular = TypographyTokens.fontBodySmRegular
|
||||
|
||||
// 14px both, Title Small uses the same token so we have to declare it twice
|
||||
@ShowkaseTypography(name = "M3 Label Large", group = "Compound")
|
||||
internal val compoundBodyMdMedium_LabelLarge = TypographyTokens.fontBodyMdMedium
|
||||
|
||||
// 12px both
|
||||
@ShowkaseTypography(name = "M3 Label Medium", group = "Compound")
|
||||
internal val compoundBodySmMedium = TypographyTokens.fontBodySmMedium
|
||||
|
||||
// 11px both
|
||||
@ShowkaseTypography(name = "M3 Label Small", group = "Compound")
|
||||
internal val compoundBodyXsMedium = TypographyTokens.fontBodyXsMedium
|
||||
|
||||
internal val compoundTypography = Typography(
|
||||
// displayLarge = , 57px (Material) size. We have no equivalent
|
||||
// displayMedium = , 45px (Material) size. We have no equivalent
|
||||
// displaySmall = , 36px (Material) size. We have no equivalent
|
||||
headlineLarge = compoundHeadingXlRegular,
|
||||
headlineMedium = compoundHeadingLgRegular,
|
||||
headlineSmall = defaultHeadlineSmall,
|
||||
titleLarge = compoundHeadingMdRegular,
|
||||
titleMedium = compoundBodyLgMedium,
|
||||
titleSmall = compoundBodyMdMedium,
|
||||
bodyLarge = compoundBodyLgRegular,
|
||||
bodyMedium = compoundBodyMdRegular,
|
||||
bodySmall = compoundBodySmRegular,
|
||||
labelLarge = compoundBodyMdMedium_LabelLarge,
|
||||
labelMedium = compoundBodySmMedium,
|
||||
labelSmall = compoundBodyXsMedium,
|
||||
)
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
Files inside this package are generated automatically from the Compound project (https://github.com/vector-im/compound-design-tokens) and will be batch-replaced when new tokens are generated.
|
||||
@@ -0,0 +1,222 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated
|
||||
|
||||
import androidx.compose.runtime.Immutable
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This class holds all the semantic tokens of the Compound theme.
|
||||
*/
|
||||
@Immutable
|
||||
data class SemanticColors(
|
||||
/** Background colour for accent or brand actions. State: Hover */
|
||||
val bgAccentHovered: Color,
|
||||
/** Background colour for accent or brand actions. State: Pressed */
|
||||
val bgAccentPressed: Color,
|
||||
/** Background colour for accent or brand actions. State: Rest. */
|
||||
val bgAccentRest: Color,
|
||||
/** Background colour for accent or brand actions. State: Selected */
|
||||
val bgAccentSelected: Color,
|
||||
/** Background colour for primary actions. State: Disabled. */
|
||||
val bgActionPrimaryDisabled: Color,
|
||||
/** Background colour for primary actions. State: Hover. */
|
||||
val bgActionPrimaryHovered: Color,
|
||||
/** Background colour for primary actions. State: Pressed. */
|
||||
val bgActionPrimaryPressed: Color,
|
||||
/** Background colour for primary actions. State: Rest. */
|
||||
val bgActionPrimaryRest: Color,
|
||||
/** Background colour for secondary actions. State: Hover. */
|
||||
val bgActionSecondaryHovered: Color,
|
||||
/** Background colour for secondary actions. State: Pressed. */
|
||||
val bgActionSecondaryPressed: Color,
|
||||
/** Background colour for secondary actions. State: Rest. */
|
||||
val bgActionSecondaryRest: Color,
|
||||
/** Badge accent background colour */
|
||||
val bgBadgeAccent: Color,
|
||||
/** Badge default background colour */
|
||||
val bgBadgeDefault: Color,
|
||||
/** Badge info background colour */
|
||||
val bgBadgeInfo: Color,
|
||||
/** Default global background for the user interface.
|
||||
Elevation: Default (Level 0) */
|
||||
val bgCanvasDefault: Color,
|
||||
/** Default global background for the user interface.
|
||||
Elevation: Level 1. */
|
||||
val bgCanvasDefaultLevel1: Color,
|
||||
/** Default background for disabled elements. There's no minimum contrast requirement. */
|
||||
val bgCanvasDisabled: Color,
|
||||
/** High-contrast background color for critical state. State: Hover. */
|
||||
val bgCriticalHovered: Color,
|
||||
/** High-contrast background color for critical state. State: Rest. */
|
||||
val bgCriticalPrimary: Color,
|
||||
/** Default subtle critical surfaces. State: Rest. */
|
||||
val bgCriticalSubtle: Color,
|
||||
/** Default subtle critical surfaces. State: Hover. */
|
||||
val bgCriticalSubtleHovered: Color,
|
||||
/** Decorative background (1, Lime) for avatars and usernames. */
|
||||
val bgDecorative1: Color,
|
||||
/** Decorative background (2, Cyan) for avatars and usernames. */
|
||||
val bgDecorative2: Color,
|
||||
/** Decorative background (3, Fuchsia) for avatars and usernames. */
|
||||
val bgDecorative3: Color,
|
||||
/** Decorative background (4, Purple) for avatars and usernames. */
|
||||
val bgDecorative4: Color,
|
||||
/** Decorative background (5, Pink) for avatars and usernames. */
|
||||
val bgDecorative5: Color,
|
||||
/** Decorative background (6, Orange) for avatars and usernames. */
|
||||
val bgDecorative6: Color,
|
||||
/** Subtle background colour for informational elements. State: Rest. */
|
||||
val bgInfoSubtle: Color,
|
||||
/** Medium contrast surfaces.
|
||||
Elevation: Default (Level 2). */
|
||||
val bgSubtlePrimary: Color,
|
||||
/** Low contrast surfaces.
|
||||
Elevation: Default (Level 1). */
|
||||
val bgSubtleSecondary: Color,
|
||||
/** Lower contrast surfaces.
|
||||
Elevation: Level 0. */
|
||||
val bgSubtleSecondaryLevel0: Color,
|
||||
/** Subtle background colour for success state elements. State: Rest. */
|
||||
val bgSuccessSubtle: Color,
|
||||
/** accent border intended for keylines on message highlights */
|
||||
val borderAccentSubtle: Color,
|
||||
/** High-contrast border for critical state. State: Hover. */
|
||||
val borderCriticalHovered: Color,
|
||||
/** High-contrast border for critical state. State: Rest. */
|
||||
val borderCriticalPrimary: Color,
|
||||
/** Subtle border colour for critical state elements. */
|
||||
val borderCriticalSubtle: Color,
|
||||
/** Used for borders of disabled elements. There's no minimum contrast requirement. */
|
||||
val borderDisabled: Color,
|
||||
/** Used for the focus state outline. */
|
||||
val borderFocused: Color,
|
||||
/** Subtle border colour for informational elements. */
|
||||
val borderInfoSubtle: Color,
|
||||
/** Default contrast for accessible interactive element borders. State: Hover. */
|
||||
val borderInteractiveHovered: Color,
|
||||
/** Default contrast for accessible interactive element borders. State: Rest. */
|
||||
val borderInteractivePrimary: Color,
|
||||
/** ⚠️ Lowest contrast for non-accessible interactive element borders, <3:1. Only use for non-essential borders. Do not rely exclusively on them. State: Rest. */
|
||||
val borderInteractiveSecondary: Color,
|
||||
/** Subtle border colour for success state elements. */
|
||||
val borderSuccessSubtle: Color,
|
||||
/** Background gradient stop for super and send buttons */
|
||||
val gradientActionStop1: Color,
|
||||
/** Background gradient stop for super and send buttons */
|
||||
val gradientActionStop2: Color,
|
||||
/** Background gradient stop for super and send buttons */
|
||||
val gradientActionStop3: Color,
|
||||
/** Background gradient stop for super and send buttons */
|
||||
val gradientActionStop4: Color,
|
||||
/** Subtle background gradient stop for info */
|
||||
val gradientInfoStop1: Color,
|
||||
/** Subtle background gradient stop for info */
|
||||
val gradientInfoStop2: Color,
|
||||
/** Subtle background gradient stop for info */
|
||||
val gradientInfoStop3: Color,
|
||||
/** Subtle background gradient stop for info */
|
||||
val gradientInfoStop4: Color,
|
||||
/** Subtle background gradient stop for info */
|
||||
val gradientInfoStop5: Color,
|
||||
/** Subtle background gradient stop for info */
|
||||
val gradientInfoStop6: Color,
|
||||
/** Subtle background gradient stop for message highlight and bloom */
|
||||
val gradientSubtleStop1: Color,
|
||||
/** Subtle background gradient stop for message highlight and bloom */
|
||||
val gradientSubtleStop2: Color,
|
||||
/** Subtle background gradient stop for message highlight and bloom */
|
||||
val gradientSubtleStop3: Color,
|
||||
/** Subtle background gradient stop for message highlight and bloom */
|
||||
val gradientSubtleStop4: Color,
|
||||
/** Subtle background gradient stop for message highlight and bloom */
|
||||
val gradientSubtleStop5: Color,
|
||||
/** Subtle background gradient stop for message highlight and bloom */
|
||||
val gradientSubtleStop6: Color,
|
||||
/** Highest contrast accessible accent icons. */
|
||||
val iconAccentPrimary: Color,
|
||||
/** Lowest contrast accessible accent icons. */
|
||||
val iconAccentTertiary: Color,
|
||||
/** High-contrast icon for critical state. State: Rest. */
|
||||
val iconCriticalPrimary: Color,
|
||||
/** Use for icons in disabled elements. There's no minimum contrast requirement. */
|
||||
val iconDisabled: Color,
|
||||
/** High-contrast icon for informational elements. */
|
||||
val iconInfoPrimary: Color,
|
||||
/** Highest contrast icon color on top of high-contrast solid backgrounds like primary, accent, or destructive actions. */
|
||||
val iconOnSolidPrimary: Color,
|
||||
/** Highest contrast icons. */
|
||||
val iconPrimary: Color,
|
||||
/** Translucent version of primary icon. Refer to it for intended use. */
|
||||
val iconPrimaryAlpha: Color,
|
||||
/** ⚠️ Lowest contrast non-accessible icons, <3:1. Only use for non-essential icons. Do not rely exclusively on them. */
|
||||
val iconQuaternary: Color,
|
||||
/** Translucent version of quaternary icon. Refer to it for intended use. */
|
||||
val iconQuaternaryAlpha: Color,
|
||||
/** Lower contrast icons. */
|
||||
val iconSecondary: Color,
|
||||
/** Translucent version of secondary icon. Refer to it for intended use. */
|
||||
val iconSecondaryAlpha: Color,
|
||||
/** High-contrast icon for success state elements. */
|
||||
val iconSuccessPrimary: Color,
|
||||
/** Lowest contrast accessible icons. */
|
||||
val iconTertiary: Color,
|
||||
/** Translucent version of tertiary icon. Refer to it for intended use. */
|
||||
val iconTertiaryAlpha: Color,
|
||||
/** Accent text colour for plain actions. */
|
||||
val textActionAccent: Color,
|
||||
/** Default text colour for plain actions. */
|
||||
val textActionPrimary: Color,
|
||||
/** Badge accent text colour */
|
||||
val textBadgeAccent: Color,
|
||||
/** Badge info text colour */
|
||||
val textBadgeInfo: Color,
|
||||
/** Text colour for destructive plain actions. */
|
||||
val textCriticalPrimary: Color,
|
||||
/** Decorative text colour (1, Lime) for avatars and usernames. */
|
||||
val textDecorative1: Color,
|
||||
/** Decorative text colour (2, Cyan) for avatars and usernames. */
|
||||
val textDecorative2: Color,
|
||||
/** Decorative text colour (3, Fuchsia) for avatars and usernames. */
|
||||
val textDecorative3: Color,
|
||||
/** Decorative text colour (4, Purple) for avatars and usernames. */
|
||||
val textDecorative4: Color,
|
||||
/** Decorative text colour (5, Pink) for avatars and usernames. */
|
||||
val textDecorative5: Color,
|
||||
/** Decorative text colour (6, Orange) for avatars and usernames. */
|
||||
val textDecorative6: Color,
|
||||
/** Use for regular text in disabled elements. There's no minimum contrast requirement. */
|
||||
val textDisabled: Color,
|
||||
/** Accent text colour for informational elements. */
|
||||
val textInfoPrimary: Color,
|
||||
/** Text colour for external links. */
|
||||
val textLinkExternal: Color,
|
||||
/** For use as text color on top of high-contrast solid backgrounds like primary, accent, or destructive actions. */
|
||||
val textOnSolidPrimary: Color,
|
||||
/** Highest contrast text. */
|
||||
val textPrimary: Color,
|
||||
/** Lowest contrast text. */
|
||||
val textSecondary: Color,
|
||||
/** Accent text colour for success state elements. */
|
||||
val textSuccessPrimary: Color,
|
||||
/** True for light theme, false for dark theme. */
|
||||
val isLight: Boolean,
|
||||
)
|
||||
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated
|
||||
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
import io.element.android.compound.tokens.generated.internal.DarkColorTokens
|
||||
|
||||
/**
|
||||
* Semantic colors for the dark Compound theme.
|
||||
*/
|
||||
@OptIn(CoreColorToken::class)
|
||||
val compoundColorsDark = SemanticColors(
|
||||
bgAccentHovered = DarkColorTokens.colorGreen1000,
|
||||
bgAccentPressed = DarkColorTokens.colorGreen1100,
|
||||
bgAccentRest = DarkColorTokens.colorGreen900,
|
||||
bgAccentSelected = DarkColorTokens.colorAlphaGreen300,
|
||||
bgActionPrimaryDisabled = DarkColorTokens.colorGray700,
|
||||
bgActionPrimaryHovered = DarkColorTokens.colorGray1200,
|
||||
bgActionPrimaryPressed = DarkColorTokens.colorGray1100,
|
||||
bgActionPrimaryRest = DarkColorTokens.colorGray1400,
|
||||
bgActionSecondaryHovered = DarkColorTokens.colorAlphaGray200,
|
||||
bgActionSecondaryPressed = DarkColorTokens.colorAlphaGray300,
|
||||
bgActionSecondaryRest = DarkColorTokens.colorThemeBg,
|
||||
bgBadgeAccent = DarkColorTokens.colorAlphaGreen300,
|
||||
bgBadgeDefault = DarkColorTokens.colorAlphaGray300,
|
||||
bgBadgeInfo = DarkColorTokens.colorAlphaBlue300,
|
||||
bgCanvasDefault = DarkColorTokens.colorThemeBg,
|
||||
bgCanvasDefaultLevel1 = DarkColorTokens.colorGray300,
|
||||
bgCanvasDisabled = DarkColorTokens.colorGray200,
|
||||
bgCriticalHovered = DarkColorTokens.colorRed1000,
|
||||
bgCriticalPrimary = DarkColorTokens.colorRed900,
|
||||
bgCriticalSubtle = DarkColorTokens.colorRed200,
|
||||
bgCriticalSubtleHovered = DarkColorTokens.colorRed300,
|
||||
bgDecorative1 = DarkColorTokens.colorLime300,
|
||||
bgDecorative2 = DarkColorTokens.colorCyan300,
|
||||
bgDecorative3 = DarkColorTokens.colorFuchsia300,
|
||||
bgDecorative4 = DarkColorTokens.colorPurple300,
|
||||
bgDecorative5 = DarkColorTokens.colorPink300,
|
||||
bgDecorative6 = DarkColorTokens.colorOrange300,
|
||||
bgInfoSubtle = DarkColorTokens.colorBlue200,
|
||||
bgSubtlePrimary = DarkColorTokens.colorGray400,
|
||||
bgSubtleSecondary = DarkColorTokens.colorGray300,
|
||||
bgSubtleSecondaryLevel0 = DarkColorTokens.colorThemeBg,
|
||||
bgSuccessSubtle = DarkColorTokens.colorGreen200,
|
||||
borderAccentSubtle = DarkColorTokens.colorGreen700,
|
||||
borderCriticalHovered = DarkColorTokens.colorRed1000,
|
||||
borderCriticalPrimary = DarkColorTokens.colorRed900,
|
||||
borderCriticalSubtle = DarkColorTokens.colorRed500,
|
||||
borderDisabled = DarkColorTokens.colorGray500,
|
||||
borderFocused = DarkColorTokens.colorBlue900,
|
||||
borderInfoSubtle = DarkColorTokens.colorBlue700,
|
||||
borderInteractiveHovered = DarkColorTokens.colorGray1100,
|
||||
borderInteractivePrimary = DarkColorTokens.colorGray800,
|
||||
borderInteractiveSecondary = DarkColorTokens.colorGray600,
|
||||
borderSuccessSubtle = DarkColorTokens.colorGreen500,
|
||||
gradientActionStop1 = DarkColorTokens.colorGreen1100,
|
||||
gradientActionStop2 = DarkColorTokens.colorGreen900,
|
||||
gradientActionStop3 = DarkColorTokens.colorGreen700,
|
||||
gradientActionStop4 = DarkColorTokens.colorGreen500,
|
||||
gradientInfoStop1 = DarkColorTokens.colorAlphaBlue500,
|
||||
gradientInfoStop2 = DarkColorTokens.colorAlphaBlue400,
|
||||
gradientInfoStop3 = DarkColorTokens.colorAlphaBlue300,
|
||||
gradientInfoStop4 = DarkColorTokens.colorAlphaBlue200,
|
||||
gradientInfoStop5 = DarkColorTokens.colorAlphaBlue100,
|
||||
gradientInfoStop6 = DarkColorTokens.colorTransparent,
|
||||
gradientSubtleStop1 = DarkColorTokens.colorAlphaGreen500,
|
||||
gradientSubtleStop2 = DarkColorTokens.colorAlphaGreen400,
|
||||
gradientSubtleStop3 = DarkColorTokens.colorAlphaGreen300,
|
||||
gradientSubtleStop4 = DarkColorTokens.colorAlphaGreen200,
|
||||
gradientSubtleStop5 = DarkColorTokens.colorAlphaGreen100,
|
||||
gradientSubtleStop6 = DarkColorTokens.colorTransparent,
|
||||
iconAccentPrimary = DarkColorTokens.colorGreen900,
|
||||
iconAccentTertiary = DarkColorTokens.colorGreen800,
|
||||
iconCriticalPrimary = DarkColorTokens.colorRed900,
|
||||
iconDisabled = DarkColorTokens.colorGray700,
|
||||
iconInfoPrimary = DarkColorTokens.colorBlue900,
|
||||
iconOnSolidPrimary = DarkColorTokens.colorThemeBg,
|
||||
iconPrimary = DarkColorTokens.colorGray1400,
|
||||
iconPrimaryAlpha = DarkColorTokens.colorAlphaGray1400,
|
||||
iconQuaternary = DarkColorTokens.colorGray700,
|
||||
iconQuaternaryAlpha = DarkColorTokens.colorAlphaGray700,
|
||||
iconSecondary = DarkColorTokens.colorGray900,
|
||||
iconSecondaryAlpha = DarkColorTokens.colorAlphaGray900,
|
||||
iconSuccessPrimary = DarkColorTokens.colorGreen900,
|
||||
iconTertiary = DarkColorTokens.colorGray800,
|
||||
iconTertiaryAlpha = DarkColorTokens.colorAlphaGray800,
|
||||
textActionAccent = DarkColorTokens.colorGreen900,
|
||||
textActionPrimary = DarkColorTokens.colorGray1400,
|
||||
textBadgeAccent = DarkColorTokens.colorGreen1100,
|
||||
textBadgeInfo = DarkColorTokens.colorBlue1100,
|
||||
textCriticalPrimary = DarkColorTokens.colorRed900,
|
||||
textDecorative1 = DarkColorTokens.colorLime1100,
|
||||
textDecorative2 = DarkColorTokens.colorCyan1100,
|
||||
textDecorative3 = DarkColorTokens.colorFuchsia1100,
|
||||
textDecorative4 = DarkColorTokens.colorPurple1100,
|
||||
textDecorative5 = DarkColorTokens.colorPink1100,
|
||||
textDecorative6 = DarkColorTokens.colorOrange1100,
|
||||
textDisabled = DarkColorTokens.colorGray800,
|
||||
textInfoPrimary = DarkColorTokens.colorBlue900,
|
||||
textLinkExternal = DarkColorTokens.colorBlue900,
|
||||
textOnSolidPrimary = DarkColorTokens.colorThemeBg,
|
||||
textPrimary = DarkColorTokens.colorGray1400,
|
||||
textSecondary = DarkColorTokens.colorGray900,
|
||||
textSuccessPrimary = DarkColorTokens.colorGreen900,
|
||||
isLight = false,
|
||||
)
|
||||
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated
|
||||
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
import io.element.android.compound.tokens.generated.internal.DarkHcColorTokens
|
||||
|
||||
/**
|
||||
* Semantic colors for the high contrast dark Compound theme.
|
||||
*/
|
||||
@OptIn(CoreColorToken::class)
|
||||
val compoundColorsHcDark = SemanticColors(
|
||||
bgAccentHovered = DarkHcColorTokens.colorGreen1000,
|
||||
bgAccentPressed = DarkHcColorTokens.colorGreen1100,
|
||||
bgAccentRest = DarkHcColorTokens.colorGreen900,
|
||||
bgAccentSelected = DarkHcColorTokens.colorAlphaGreen300,
|
||||
bgActionPrimaryDisabled = DarkHcColorTokens.colorGray700,
|
||||
bgActionPrimaryHovered = DarkHcColorTokens.colorGray1200,
|
||||
bgActionPrimaryPressed = DarkHcColorTokens.colorGray1100,
|
||||
bgActionPrimaryRest = DarkHcColorTokens.colorGray1400,
|
||||
bgActionSecondaryHovered = DarkHcColorTokens.colorAlphaGray200,
|
||||
bgActionSecondaryPressed = DarkHcColorTokens.colorAlphaGray300,
|
||||
bgActionSecondaryRest = DarkHcColorTokens.colorThemeBg,
|
||||
bgBadgeAccent = DarkHcColorTokens.colorAlphaGreen300,
|
||||
bgBadgeDefault = DarkHcColorTokens.colorAlphaGray300,
|
||||
bgBadgeInfo = DarkHcColorTokens.colorAlphaBlue300,
|
||||
bgCanvasDefault = DarkHcColorTokens.colorThemeBg,
|
||||
bgCanvasDefaultLevel1 = DarkHcColorTokens.colorGray300,
|
||||
bgCanvasDisabled = DarkHcColorTokens.colorGray200,
|
||||
bgCriticalHovered = DarkHcColorTokens.colorRed1000,
|
||||
bgCriticalPrimary = DarkHcColorTokens.colorRed900,
|
||||
bgCriticalSubtle = DarkHcColorTokens.colorRed200,
|
||||
bgCriticalSubtleHovered = DarkHcColorTokens.colorRed300,
|
||||
bgDecorative1 = DarkHcColorTokens.colorLime300,
|
||||
bgDecorative2 = DarkHcColorTokens.colorCyan300,
|
||||
bgDecorative3 = DarkHcColorTokens.colorFuchsia300,
|
||||
bgDecorative4 = DarkHcColorTokens.colorPurple300,
|
||||
bgDecorative5 = DarkHcColorTokens.colorPink300,
|
||||
bgDecorative6 = DarkHcColorTokens.colorOrange300,
|
||||
bgInfoSubtle = DarkHcColorTokens.colorBlue200,
|
||||
bgSubtlePrimary = DarkHcColorTokens.colorGray400,
|
||||
bgSubtleSecondary = DarkHcColorTokens.colorGray300,
|
||||
bgSubtleSecondaryLevel0 = DarkHcColorTokens.colorThemeBg,
|
||||
bgSuccessSubtle = DarkHcColorTokens.colorGreen200,
|
||||
borderAccentSubtle = DarkHcColorTokens.colorGreen700,
|
||||
borderCriticalHovered = DarkHcColorTokens.colorRed1000,
|
||||
borderCriticalPrimary = DarkHcColorTokens.colorRed900,
|
||||
borderCriticalSubtle = DarkHcColorTokens.colorRed500,
|
||||
borderDisabled = DarkHcColorTokens.colorGray500,
|
||||
borderFocused = DarkHcColorTokens.colorBlue900,
|
||||
borderInfoSubtle = DarkHcColorTokens.colorBlue700,
|
||||
borderInteractiveHovered = DarkHcColorTokens.colorGray1100,
|
||||
borderInteractivePrimary = DarkHcColorTokens.colorGray800,
|
||||
borderInteractiveSecondary = DarkHcColorTokens.colorGray600,
|
||||
borderSuccessSubtle = DarkHcColorTokens.colorGreen500,
|
||||
gradientActionStop1 = DarkHcColorTokens.colorGreen1100,
|
||||
gradientActionStop2 = DarkHcColorTokens.colorGreen900,
|
||||
gradientActionStop3 = DarkHcColorTokens.colorGreen700,
|
||||
gradientActionStop4 = DarkHcColorTokens.colorGreen500,
|
||||
gradientInfoStop1 = DarkHcColorTokens.colorAlphaBlue500,
|
||||
gradientInfoStop2 = DarkHcColorTokens.colorAlphaBlue400,
|
||||
gradientInfoStop3 = DarkHcColorTokens.colorAlphaBlue300,
|
||||
gradientInfoStop4 = DarkHcColorTokens.colorAlphaBlue200,
|
||||
gradientInfoStop5 = DarkHcColorTokens.colorAlphaBlue100,
|
||||
gradientInfoStop6 = DarkHcColorTokens.colorTransparent,
|
||||
gradientSubtleStop1 = DarkHcColorTokens.colorAlphaGreen500,
|
||||
gradientSubtleStop2 = DarkHcColorTokens.colorAlphaGreen400,
|
||||
gradientSubtleStop3 = DarkHcColorTokens.colorAlphaGreen300,
|
||||
gradientSubtleStop4 = DarkHcColorTokens.colorAlphaGreen200,
|
||||
gradientSubtleStop5 = DarkHcColorTokens.colorAlphaGreen100,
|
||||
gradientSubtleStop6 = DarkHcColorTokens.colorTransparent,
|
||||
iconAccentPrimary = DarkHcColorTokens.colorGreen900,
|
||||
iconAccentTertiary = DarkHcColorTokens.colorGreen800,
|
||||
iconCriticalPrimary = DarkHcColorTokens.colorRed900,
|
||||
iconDisabled = DarkHcColorTokens.colorGray700,
|
||||
iconInfoPrimary = DarkHcColorTokens.colorBlue900,
|
||||
iconOnSolidPrimary = DarkHcColorTokens.colorThemeBg,
|
||||
iconPrimary = DarkHcColorTokens.colorGray1400,
|
||||
iconPrimaryAlpha = DarkHcColorTokens.colorAlphaGray1400,
|
||||
iconQuaternary = DarkHcColorTokens.colorGray700,
|
||||
iconQuaternaryAlpha = DarkHcColorTokens.colorAlphaGray700,
|
||||
iconSecondary = DarkHcColorTokens.colorGray900,
|
||||
iconSecondaryAlpha = DarkHcColorTokens.colorAlphaGray900,
|
||||
iconSuccessPrimary = DarkHcColorTokens.colorGreen900,
|
||||
iconTertiary = DarkHcColorTokens.colorGray800,
|
||||
iconTertiaryAlpha = DarkHcColorTokens.colorAlphaGray800,
|
||||
textActionAccent = DarkHcColorTokens.colorGreen900,
|
||||
textActionPrimary = DarkHcColorTokens.colorGray1400,
|
||||
textBadgeAccent = DarkHcColorTokens.colorGreen1100,
|
||||
textBadgeInfo = DarkHcColorTokens.colorBlue1100,
|
||||
textCriticalPrimary = DarkHcColorTokens.colorRed900,
|
||||
textDecorative1 = DarkHcColorTokens.colorLime1100,
|
||||
textDecorative2 = DarkHcColorTokens.colorCyan1100,
|
||||
textDecorative3 = DarkHcColorTokens.colorFuchsia1100,
|
||||
textDecorative4 = DarkHcColorTokens.colorPurple1100,
|
||||
textDecorative5 = DarkHcColorTokens.colorPink1100,
|
||||
textDecorative6 = DarkHcColorTokens.colorOrange1100,
|
||||
textDisabled = DarkHcColorTokens.colorGray800,
|
||||
textInfoPrimary = DarkHcColorTokens.colorBlue900,
|
||||
textLinkExternal = DarkHcColorTokens.colorBlue900,
|
||||
textOnSolidPrimary = DarkHcColorTokens.colorThemeBg,
|
||||
textPrimary = DarkHcColorTokens.colorGray1400,
|
||||
textSecondary = DarkHcColorTokens.colorGray900,
|
||||
textSuccessPrimary = DarkHcColorTokens.colorGreen900,
|
||||
isLight = false,
|
||||
)
|
||||
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated
|
||||
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
import io.element.android.compound.tokens.generated.internal.LightColorTokens
|
||||
|
||||
/**
|
||||
* Semantic colors for the light Compound theme.
|
||||
*/
|
||||
@OptIn(CoreColorToken::class)
|
||||
val compoundColorsLight = SemanticColors(
|
||||
bgAccentHovered = LightColorTokens.colorGreen1000,
|
||||
bgAccentPressed = LightColorTokens.colorGreen1100,
|
||||
bgAccentRest = LightColorTokens.colorGreen900,
|
||||
bgAccentSelected = LightColorTokens.colorAlphaGreen300,
|
||||
bgActionPrimaryDisabled = LightColorTokens.colorGray700,
|
||||
bgActionPrimaryHovered = LightColorTokens.colorGray1200,
|
||||
bgActionPrimaryPressed = LightColorTokens.colorGray1100,
|
||||
bgActionPrimaryRest = LightColorTokens.colorGray1400,
|
||||
bgActionSecondaryHovered = LightColorTokens.colorAlphaGray200,
|
||||
bgActionSecondaryPressed = LightColorTokens.colorAlphaGray300,
|
||||
bgActionSecondaryRest = LightColorTokens.colorThemeBg,
|
||||
bgBadgeAccent = LightColorTokens.colorAlphaGreen300,
|
||||
bgBadgeDefault = LightColorTokens.colorAlphaGray300,
|
||||
bgBadgeInfo = LightColorTokens.colorAlphaBlue300,
|
||||
bgCanvasDefault = LightColorTokens.colorThemeBg,
|
||||
bgCanvasDefaultLevel1 = LightColorTokens.colorThemeBg,
|
||||
bgCanvasDisabled = LightColorTokens.colorGray200,
|
||||
bgCriticalHovered = LightColorTokens.colorRed1000,
|
||||
bgCriticalPrimary = LightColorTokens.colorRed900,
|
||||
bgCriticalSubtle = LightColorTokens.colorRed200,
|
||||
bgCriticalSubtleHovered = LightColorTokens.colorRed300,
|
||||
bgDecorative1 = LightColorTokens.colorLime300,
|
||||
bgDecorative2 = LightColorTokens.colorCyan300,
|
||||
bgDecorative3 = LightColorTokens.colorFuchsia300,
|
||||
bgDecorative4 = LightColorTokens.colorPurple300,
|
||||
bgDecorative5 = LightColorTokens.colorPink300,
|
||||
bgDecorative6 = LightColorTokens.colorOrange300,
|
||||
bgInfoSubtle = LightColorTokens.colorBlue200,
|
||||
bgSubtlePrimary = LightColorTokens.colorGray400,
|
||||
bgSubtleSecondary = LightColorTokens.colorGray300,
|
||||
bgSubtleSecondaryLevel0 = LightColorTokens.colorGray300,
|
||||
bgSuccessSubtle = LightColorTokens.colorGreen200,
|
||||
borderAccentSubtle = LightColorTokens.colorGreen700,
|
||||
borderCriticalHovered = LightColorTokens.colorRed1000,
|
||||
borderCriticalPrimary = LightColorTokens.colorRed900,
|
||||
borderCriticalSubtle = LightColorTokens.colorRed500,
|
||||
borderDisabled = LightColorTokens.colorGray500,
|
||||
borderFocused = LightColorTokens.colorBlue900,
|
||||
borderInfoSubtle = LightColorTokens.colorBlue700,
|
||||
borderInteractiveHovered = LightColorTokens.colorGray1100,
|
||||
borderInteractivePrimary = LightColorTokens.colorGray800,
|
||||
borderInteractiveSecondary = LightColorTokens.colorGray600,
|
||||
borderSuccessSubtle = LightColorTokens.colorGreen500,
|
||||
gradientActionStop1 = LightColorTokens.colorGreen500,
|
||||
gradientActionStop2 = LightColorTokens.colorGreen700,
|
||||
gradientActionStop3 = LightColorTokens.colorGreen900,
|
||||
gradientActionStop4 = LightColorTokens.colorGreen1100,
|
||||
gradientInfoStop1 = LightColorTokens.colorAlphaBlue500,
|
||||
gradientInfoStop2 = LightColorTokens.colorAlphaBlue400,
|
||||
gradientInfoStop3 = LightColorTokens.colorAlphaBlue300,
|
||||
gradientInfoStop4 = LightColorTokens.colorAlphaBlue200,
|
||||
gradientInfoStop5 = LightColorTokens.colorAlphaBlue100,
|
||||
gradientInfoStop6 = LightColorTokens.colorTransparent,
|
||||
gradientSubtleStop1 = LightColorTokens.colorAlphaGreen500,
|
||||
gradientSubtleStop2 = LightColorTokens.colorAlphaGreen400,
|
||||
gradientSubtleStop3 = LightColorTokens.colorAlphaGreen300,
|
||||
gradientSubtleStop4 = LightColorTokens.colorAlphaGreen200,
|
||||
gradientSubtleStop5 = LightColorTokens.colorAlphaGreen100,
|
||||
gradientSubtleStop6 = LightColorTokens.colorTransparent,
|
||||
iconAccentPrimary = LightColorTokens.colorGreen900,
|
||||
iconAccentTertiary = LightColorTokens.colorGreen800,
|
||||
iconCriticalPrimary = LightColorTokens.colorRed900,
|
||||
iconDisabled = LightColorTokens.colorGray700,
|
||||
iconInfoPrimary = LightColorTokens.colorBlue900,
|
||||
iconOnSolidPrimary = LightColorTokens.colorThemeBg,
|
||||
iconPrimary = LightColorTokens.colorGray1400,
|
||||
iconPrimaryAlpha = LightColorTokens.colorAlphaGray1400,
|
||||
iconQuaternary = LightColorTokens.colorGray700,
|
||||
iconQuaternaryAlpha = LightColorTokens.colorAlphaGray700,
|
||||
iconSecondary = LightColorTokens.colorGray900,
|
||||
iconSecondaryAlpha = LightColorTokens.colorAlphaGray900,
|
||||
iconSuccessPrimary = LightColorTokens.colorGreen900,
|
||||
iconTertiary = LightColorTokens.colorGray800,
|
||||
iconTertiaryAlpha = LightColorTokens.colorAlphaGray800,
|
||||
textActionAccent = LightColorTokens.colorGreen900,
|
||||
textActionPrimary = LightColorTokens.colorGray1400,
|
||||
textBadgeAccent = LightColorTokens.colorGreen1100,
|
||||
textBadgeInfo = LightColorTokens.colorBlue1100,
|
||||
textCriticalPrimary = LightColorTokens.colorRed900,
|
||||
textDecorative1 = LightColorTokens.colorLime1100,
|
||||
textDecorative2 = LightColorTokens.colorCyan1100,
|
||||
textDecorative3 = LightColorTokens.colorFuchsia1100,
|
||||
textDecorative4 = LightColorTokens.colorPurple1100,
|
||||
textDecorative5 = LightColorTokens.colorPink1100,
|
||||
textDecorative6 = LightColorTokens.colorOrange1100,
|
||||
textDisabled = LightColorTokens.colorGray800,
|
||||
textInfoPrimary = LightColorTokens.colorBlue900,
|
||||
textLinkExternal = LightColorTokens.colorBlue900,
|
||||
textOnSolidPrimary = LightColorTokens.colorThemeBg,
|
||||
textPrimary = LightColorTokens.colorGray1400,
|
||||
textSecondary = LightColorTokens.colorGray900,
|
||||
textSuccessPrimary = LightColorTokens.colorGreen900,
|
||||
isLight = true,
|
||||
)
|
||||
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated
|
||||
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
import io.element.android.compound.tokens.generated.internal.LightHcColorTokens
|
||||
|
||||
/**
|
||||
* Semantic colors for the high contrast light Compound theme.
|
||||
*/
|
||||
@OptIn(CoreColorToken::class)
|
||||
val compoundColorsHcLight = SemanticColors(
|
||||
bgAccentHovered = LightHcColorTokens.colorGreen1000,
|
||||
bgAccentPressed = LightHcColorTokens.colorGreen1100,
|
||||
bgAccentRest = LightHcColorTokens.colorGreen900,
|
||||
bgAccentSelected = LightHcColorTokens.colorAlphaGreen300,
|
||||
bgActionPrimaryDisabled = LightHcColorTokens.colorGray700,
|
||||
bgActionPrimaryHovered = LightHcColorTokens.colorGray1200,
|
||||
bgActionPrimaryPressed = LightHcColorTokens.colorGray1100,
|
||||
bgActionPrimaryRest = LightHcColorTokens.colorGray1400,
|
||||
bgActionSecondaryHovered = LightHcColorTokens.colorAlphaGray200,
|
||||
bgActionSecondaryPressed = LightHcColorTokens.colorAlphaGray300,
|
||||
bgActionSecondaryRest = LightHcColorTokens.colorThemeBg,
|
||||
bgBadgeAccent = LightHcColorTokens.colorAlphaGreen300,
|
||||
bgBadgeDefault = LightHcColorTokens.colorAlphaGray300,
|
||||
bgBadgeInfo = LightHcColorTokens.colorAlphaBlue300,
|
||||
bgCanvasDefault = LightHcColorTokens.colorThemeBg,
|
||||
bgCanvasDefaultLevel1 = LightHcColorTokens.colorThemeBg,
|
||||
bgCanvasDisabled = LightHcColorTokens.colorGray200,
|
||||
bgCriticalHovered = LightHcColorTokens.colorRed1000,
|
||||
bgCriticalPrimary = LightHcColorTokens.colorRed900,
|
||||
bgCriticalSubtle = LightHcColorTokens.colorRed200,
|
||||
bgCriticalSubtleHovered = LightHcColorTokens.colorRed300,
|
||||
bgDecorative1 = LightHcColorTokens.colorLime300,
|
||||
bgDecorative2 = LightHcColorTokens.colorCyan300,
|
||||
bgDecorative3 = LightHcColorTokens.colorFuchsia300,
|
||||
bgDecorative4 = LightHcColorTokens.colorPurple300,
|
||||
bgDecorative5 = LightHcColorTokens.colorPink300,
|
||||
bgDecorative6 = LightHcColorTokens.colorOrange300,
|
||||
bgInfoSubtle = LightHcColorTokens.colorBlue200,
|
||||
bgSubtlePrimary = LightHcColorTokens.colorGray400,
|
||||
bgSubtleSecondary = LightHcColorTokens.colorGray300,
|
||||
bgSubtleSecondaryLevel0 = LightHcColorTokens.colorGray300,
|
||||
bgSuccessSubtle = LightHcColorTokens.colorGreen200,
|
||||
borderAccentSubtle = LightHcColorTokens.colorGreen700,
|
||||
borderCriticalHovered = LightHcColorTokens.colorRed1000,
|
||||
borderCriticalPrimary = LightHcColorTokens.colorRed900,
|
||||
borderCriticalSubtle = LightHcColorTokens.colorRed500,
|
||||
borderDisabled = LightHcColorTokens.colorGray500,
|
||||
borderFocused = LightHcColorTokens.colorBlue900,
|
||||
borderInfoSubtle = LightHcColorTokens.colorBlue700,
|
||||
borderInteractiveHovered = LightHcColorTokens.colorGray1100,
|
||||
borderInteractivePrimary = LightHcColorTokens.colorGray800,
|
||||
borderInteractiveSecondary = LightHcColorTokens.colorGray600,
|
||||
borderSuccessSubtle = LightHcColorTokens.colorGreen500,
|
||||
gradientActionStop1 = LightHcColorTokens.colorGreen500,
|
||||
gradientActionStop2 = LightHcColorTokens.colorGreen700,
|
||||
gradientActionStop3 = LightHcColorTokens.colorGreen900,
|
||||
gradientActionStop4 = LightHcColorTokens.colorGreen1100,
|
||||
gradientInfoStop1 = LightHcColorTokens.colorAlphaBlue500,
|
||||
gradientInfoStop2 = LightHcColorTokens.colorAlphaBlue400,
|
||||
gradientInfoStop3 = LightHcColorTokens.colorAlphaBlue300,
|
||||
gradientInfoStop4 = LightHcColorTokens.colorAlphaBlue200,
|
||||
gradientInfoStop5 = LightHcColorTokens.colorAlphaBlue100,
|
||||
gradientInfoStop6 = LightHcColorTokens.colorTransparent,
|
||||
gradientSubtleStop1 = LightHcColorTokens.colorAlphaGreen500,
|
||||
gradientSubtleStop2 = LightHcColorTokens.colorAlphaGreen400,
|
||||
gradientSubtleStop3 = LightHcColorTokens.colorAlphaGreen300,
|
||||
gradientSubtleStop4 = LightHcColorTokens.colorAlphaGreen200,
|
||||
gradientSubtleStop5 = LightHcColorTokens.colorAlphaGreen100,
|
||||
gradientSubtleStop6 = LightHcColorTokens.colorTransparent,
|
||||
iconAccentPrimary = LightHcColorTokens.colorGreen900,
|
||||
iconAccentTertiary = LightHcColorTokens.colorGreen800,
|
||||
iconCriticalPrimary = LightHcColorTokens.colorRed900,
|
||||
iconDisabled = LightHcColorTokens.colorGray700,
|
||||
iconInfoPrimary = LightHcColorTokens.colorBlue900,
|
||||
iconOnSolidPrimary = LightHcColorTokens.colorThemeBg,
|
||||
iconPrimary = LightHcColorTokens.colorGray1400,
|
||||
iconPrimaryAlpha = LightHcColorTokens.colorAlphaGray1400,
|
||||
iconQuaternary = LightHcColorTokens.colorGray700,
|
||||
iconQuaternaryAlpha = LightHcColorTokens.colorAlphaGray700,
|
||||
iconSecondary = LightHcColorTokens.colorGray900,
|
||||
iconSecondaryAlpha = LightHcColorTokens.colorAlphaGray900,
|
||||
iconSuccessPrimary = LightHcColorTokens.colorGreen900,
|
||||
iconTertiary = LightHcColorTokens.colorGray800,
|
||||
iconTertiaryAlpha = LightHcColorTokens.colorAlphaGray800,
|
||||
textActionAccent = LightHcColorTokens.colorGreen900,
|
||||
textActionPrimary = LightHcColorTokens.colorGray1400,
|
||||
textBadgeAccent = LightHcColorTokens.colorGreen1100,
|
||||
textBadgeInfo = LightHcColorTokens.colorBlue1100,
|
||||
textCriticalPrimary = LightHcColorTokens.colorRed900,
|
||||
textDecorative1 = LightHcColorTokens.colorLime1100,
|
||||
textDecorative2 = LightHcColorTokens.colorCyan1100,
|
||||
textDecorative3 = LightHcColorTokens.colorFuchsia1100,
|
||||
textDecorative4 = LightHcColorTokens.colorPurple1100,
|
||||
textDecorative5 = LightHcColorTokens.colorPink1100,
|
||||
textDecorative6 = LightHcColorTokens.colorOrange1100,
|
||||
textDisabled = LightHcColorTokens.colorGray800,
|
||||
textInfoPrimary = LightHcColorTokens.colorBlue900,
|
||||
textLinkExternal = LightHcColorTokens.colorBlue900,
|
||||
textOnSolidPrimary = LightHcColorTokens.colorThemeBg,
|
||||
textPrimary = LightHcColorTokens.colorGray1400,
|
||||
textSecondary = LightHcColorTokens.colorGray900,
|
||||
textSuccessPrimary = LightHcColorTokens.colorGreen900,
|
||||
isLight = true,
|
||||
)
|
||||
@@ -0,0 +1,174 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated
|
||||
|
||||
import androidx.compose.ui.text.font.FontFamily
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.unit.em
|
||||
import androidx.compose.ui.unit.sp
|
||||
import androidx.compose.ui.text.PlatformTextStyle
|
||||
import androidx.compose.ui.text.style.LineHeightStyle
|
||||
|
||||
object TypographyTokens {
|
||||
val fontBodyLgMedium = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W500,
|
||||
lineHeight = 22.sp,
|
||||
fontSize = 16.sp,
|
||||
letterSpacing = 0.015625.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontBodyLgRegular = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W400,
|
||||
lineHeight = 22.sp,
|
||||
fontSize = 16.sp,
|
||||
letterSpacing = 0.015625.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontBodyMdMedium = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W500,
|
||||
lineHeight = 20.sp,
|
||||
fontSize = 14.sp,
|
||||
letterSpacing = 0.017857.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontBodyMdRegular = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W400,
|
||||
lineHeight = 20.sp,
|
||||
fontSize = 14.sp,
|
||||
letterSpacing = 0.017857.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontBodySmMedium = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W500,
|
||||
lineHeight = 17.sp,
|
||||
fontSize = 12.sp,
|
||||
letterSpacing = 0.033333.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontBodySmRegular = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W400,
|
||||
lineHeight = 17.sp,
|
||||
fontSize = 12.sp,
|
||||
letterSpacing = 0.033333.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontBodyXsMedium = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W500,
|
||||
lineHeight = 15.sp,
|
||||
fontSize = 11.sp,
|
||||
letterSpacing = 0.045454.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontBodyXsRegular = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W400,
|
||||
lineHeight = 15.sp,
|
||||
fontSize = 11.sp,
|
||||
letterSpacing = 0.045454.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontHeadingLgBold = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W700,
|
||||
lineHeight = 34.sp,
|
||||
fontSize = 28.sp,
|
||||
letterSpacing = 0.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontHeadingLgRegular = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W400,
|
||||
lineHeight = 34.sp,
|
||||
fontSize = 28.sp,
|
||||
letterSpacing = 0.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontHeadingMdBold = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W700,
|
||||
lineHeight = 27.sp,
|
||||
fontSize = 22.sp,
|
||||
letterSpacing = 0.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontHeadingMdRegular = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W400,
|
||||
lineHeight = 27.sp,
|
||||
fontSize = 22.sp,
|
||||
letterSpacing = 0.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontHeadingSmMedium = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W500,
|
||||
lineHeight = 25.sp,
|
||||
fontSize = 20.sp,
|
||||
letterSpacing = 0.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontHeadingSmRegular = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W400,
|
||||
lineHeight = 25.sp,
|
||||
fontSize = 20.sp,
|
||||
letterSpacing = 0.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontHeadingXlBold = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W700,
|
||||
lineHeight = 41.sp,
|
||||
fontSize = 34.sp,
|
||||
letterSpacing = 0.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
val fontHeadingXlRegular = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.W400,
|
||||
lineHeight = 41.sp,
|
||||
fontSize = 34.sp,
|
||||
letterSpacing = 0.em,
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
lineHeightStyle = LineHeightStyle(LineHeightStyle.Alignment.Center, LineHeightStyle.Trim.None)
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,335 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated.internal
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
|
||||
@CoreColorToken
|
||||
object DarkColorTokens {
|
||||
val colorAlphaBlue100 = Color(0xff00055c)
|
||||
val colorAlphaBlue1000 = Color(0xf062a0fe)
|
||||
val colorAlphaBlue1100 = Color(0xf57cb2fd)
|
||||
val colorAlphaBlue1200 = Color(0xf7a3c8ff)
|
||||
val colorAlphaBlue1300 = Color(0xfccde1fe)
|
||||
val colorAlphaBlue1400 = Color(0xffe6effe)
|
||||
val colorAlphaBlue200 = Color(0xff00095c)
|
||||
val colorAlphaBlue300 = Color(0xff001366)
|
||||
val colorAlphaBlue400 = Color(0xff001e70)
|
||||
val colorAlphaBlue500 = Color(0xa1003cbd)
|
||||
val colorAlphaBlue600 = Color(0x87015afe)
|
||||
val colorAlphaBlue700 = Color(0xa30665fe)
|
||||
val colorAlphaBlue800 = Color(0xd61077fe)
|
||||
val colorAlphaBlue900 = Color(0xeb4491fd)
|
||||
val colorAlphaCyan100 = Color(0xff001142)
|
||||
val colorAlphaCyan1000 = Color(0xe000bfe0)
|
||||
val colorAlphaCyan1100 = Color(0xc926e7fd)
|
||||
val colorAlphaCyan1200 = Color(0xd98af1ff)
|
||||
val colorAlphaCyan1300 = Color(0xebc9f7fd)
|
||||
val colorAlphaCyan1400 = Color(0xf5e1fbfe)
|
||||
val colorAlphaCyan200 = Color(0xff001447)
|
||||
val colorAlphaCyan300 = Color(0xff001b4d)
|
||||
val colorAlphaCyan400 = Color(0xff00265c)
|
||||
val colorAlphaCyan500 = Color(0xff003366)
|
||||
val colorAlphaCyan600 = Color(0xff003f75)
|
||||
val colorAlphaCyan700 = Color(0xff00538a)
|
||||
val colorAlphaCyan800 = Color(0xe0007ebd)
|
||||
val colorAlphaCyan900 = Color(0xff0091bd)
|
||||
val colorAlphaFuchsia100 = Color(0xff28003d)
|
||||
val colorAlphaFuchsia1000 = Color(0xd4f790fe)
|
||||
val colorAlphaFuchsia1100 = Color(0xdbfaa4fe)
|
||||
val colorAlphaFuchsia1200 = Color(0xe8fac3fe)
|
||||
val colorAlphaFuchsia1300 = Color(0xf2fde0ff)
|
||||
val colorAlphaFuchsia1400 = Color(0xfafdecfe)
|
||||
val colorAlphaFuchsia200 = Color(0xff2d0042)
|
||||
val colorAlphaFuchsia300 = Color(0xff36004d)
|
||||
val colorAlphaFuchsia400 = Color(0xff45005c)
|
||||
val colorAlphaFuchsia500 = Color(0x61ca0aff)
|
||||
val colorAlphaFuchsia600 = Color(0x70d21fff)
|
||||
val colorAlphaFuchsia700 = Color(0x8ad82ffe)
|
||||
val colorAlphaFuchsia800 = Color(0xb5eb44fd)
|
||||
val colorAlphaFuchsia900 = Color(0xccf172fd)
|
||||
val colorAlphaGray100 = Color(0x05d8dbdf)
|
||||
val colorAlphaGray1000 = Color(0x9ce1eefe)
|
||||
val colorAlphaGray1100 = Color(0xade7f0fe)
|
||||
val colorAlphaGray1200 = Color(0xc9edf4fc)
|
||||
val colorAlphaGray1300 = Color(0xe3f2f7fd)
|
||||
val colorAlphaGray1400 = Color(0xf2f6f9fe)
|
||||
val colorAlphaGray200 = Color(0x0ad9c3df)
|
||||
val colorAlphaGray300 = Color(0x0fe9dbf0)
|
||||
val colorAlphaGray400 = Color(0x1aede7f4)
|
||||
val colorAlphaGray500 = Color(0x26f4f7fa)
|
||||
val colorAlphaGray600 = Color(0x33eceff8)
|
||||
val colorAlphaGray700 = Color(0x45e7f1fd)
|
||||
val colorAlphaGray800 = Color(0x69e0edff)
|
||||
val colorAlphaGray900 = Color(0x8ae1effe)
|
||||
val colorAlphaGreen100 = Color(0xff001f0c)
|
||||
val colorAlphaGreen1000 = Color(0xa61bfebd)
|
||||
val colorAlphaGreen1100 = Color(0xbd26fdbc)
|
||||
val colorAlphaGreen1200 = Color(0xd486fdce)
|
||||
val colorAlphaGreen1300 = Color(0xe8c4fde2)
|
||||
val colorAlphaGreen1400 = Color(0xf5e2fdf1)
|
||||
val colorAlphaGreen200 = Color(0xff001f0e)
|
||||
val colorAlphaGreen300 = Color(0xff002412)
|
||||
val colorAlphaGreen400 = Color(0xff002e1b)
|
||||
val colorAlphaGreen500 = Color(0xff003d29)
|
||||
val colorAlphaGreen600 = Color(0xff004732)
|
||||
val colorAlphaGreen700 = Color(0xff005c45)
|
||||
val colorAlphaGreen800 = Color(0xff007a62)
|
||||
val colorAlphaGreen900 = Color(0x9412fdbe)
|
||||
val colorAlphaLime100 = Color(0xff001a00)
|
||||
val colorAlphaLime1000 = Color(0xa860fc2c)
|
||||
val colorAlphaLime1100 = Color(0xbd71fd35)
|
||||
val colorAlphaLime1200 = Color(0xd68dff5c)
|
||||
val colorAlphaLime1300 = Color(0xebc3ffad)
|
||||
val colorAlphaLime1400 = Color(0xf7e1fdd8)
|
||||
val colorAlphaLime200 = Color(0xff001f00)
|
||||
val colorAlphaLime300 = Color(0xff002900)
|
||||
val colorAlphaLime400 = Color(0xff002e00)
|
||||
val colorAlphaLime500 = Color(0xff003d00)
|
||||
val colorAlphaLime600 = Color(0xff004d00)
|
||||
val colorAlphaLime700 = Color(0xff005c00)
|
||||
val colorAlphaLime800 = Color(0x732dfd0d)
|
||||
val colorAlphaLime900 = Color(0x9454fd26)
|
||||
val colorAlphaOrange100 = Color(0xff380000)
|
||||
val colorAlphaOrange1000 = Color(0xebfe8310)
|
||||
val colorAlphaOrange1100 = Color(0xf7fd953f)
|
||||
val colorAlphaOrange1200 = Color(0xfcfdb781)
|
||||
val colorAlphaOrange1300 = Color(0xffffd4b8)
|
||||
val colorAlphaOrange1400 = Color(0xffffeadb)
|
||||
val colorAlphaOrange200 = Color(0xff3d0000)
|
||||
val colorAlphaOrange300 = Color(0xff470000)
|
||||
val colorAlphaOrange400 = Color(0xff570000)
|
||||
val colorAlphaOrange500 = Color(0xff700000)
|
||||
val colorAlphaOrange600 = Color(0xff850400)
|
||||
val colorAlphaOrange700 = Color(0xbdc72800)
|
||||
val colorAlphaOrange800 = Color(0xb5ff5900)
|
||||
val colorAlphaOrange900 = Color(0xd9fe740b)
|
||||
val colorAlphaPink100 = Color(0xff38000f)
|
||||
val colorAlphaPink1000 = Color(0xfaff6691)
|
||||
val colorAlphaPink1100 = Color(0xfffe86a4)
|
||||
val colorAlphaPink1200 = Color(0xffffadc0)
|
||||
val colorAlphaPink1300 = Color(0xffffd1db)
|
||||
val colorAlphaPink1400 = Color(0xffffebef)
|
||||
val colorAlphaPink200 = Color(0xff3d0012)
|
||||
val colorAlphaPink300 = Color(0xff470019)
|
||||
val colorAlphaPink400 = Color(0xff570024)
|
||||
val colorAlphaPink500 = Color(0xff6b0036)
|
||||
val colorAlphaPink600 = Color(0x75fb0473)
|
||||
val colorAlphaPink700 = Color(0x94fd1277)
|
||||
val colorAlphaPink800 = Color(0xccfe1b79)
|
||||
val colorAlphaPink900 = Color(0xf5fe4382)
|
||||
val colorAlphaPurple100 = Color(0xff1a0057)
|
||||
val colorAlphaPurple1000 = Color(0xfca28bfe)
|
||||
val colorAlphaPurple1100 = Color(0xffab9afe)
|
||||
val colorAlphaPurple1200 = Color(0xffc7bdff)
|
||||
val colorAlphaPurple1300 = Color(0xffdfdbff)
|
||||
val colorAlphaPurple1400 = Color(0xffeeebff)
|
||||
val colorAlphaPurple200 = Color(0xff1d005c)
|
||||
val colorAlphaPurple300 = Color(0xff22006b)
|
||||
val colorAlphaPurple400 = Color(0xff2d0080)
|
||||
val colorAlphaPurple500 = Color(0xff3d009e)
|
||||
val colorAlphaPurple600 = Color(0xab690dfd)
|
||||
val colorAlphaPurple700 = Color(0xc2712bfd)
|
||||
val colorAlphaPurple800 = Color(0xeb7f4dff)
|
||||
val colorAlphaPurple900 = Color(0xfa9271fe)
|
||||
val colorAlphaRed100 = Color(0xff380000)
|
||||
val colorAlphaRed1000 = Color(0xffff645c)
|
||||
val colorAlphaRed1100 = Color(0xffff857a)
|
||||
val colorAlphaRed1200 = Color(0xffffaea3)
|
||||
val colorAlphaRed1300 = Color(0xffffd3cc)
|
||||
val colorAlphaRed1400 = Color(0xffffe8e5)
|
||||
val colorAlphaRed200 = Color(0xff3d0000)
|
||||
val colorAlphaRed300 = Color(0xff470000)
|
||||
val colorAlphaRed400 = Color(0xff5c0000)
|
||||
val colorAlphaRed500 = Color(0xff700000)
|
||||
val colorAlphaRed600 = Color(0xff850009)
|
||||
val colorAlphaRed700 = Color(0x99fe0b24)
|
||||
val colorAlphaRed800 = Color(0xcffe2530)
|
||||
val colorAlphaRed900 = Color(0xfffd3d3a)
|
||||
val colorAlphaYellow100 = Color(0xff380000)
|
||||
val colorAlphaYellow1000 = Color(0xffcc8b00)
|
||||
val colorAlphaYellow1100 = Color(0xffdba100)
|
||||
val colorAlphaYellow1200 = Color(0xf0fdc50d)
|
||||
val colorAlphaYellow1300 = Color(0xfffeda58)
|
||||
val colorAlphaYellow1400 = Color(0xffffedb3)
|
||||
val colorAlphaYellow200 = Color(0xff380300)
|
||||
val colorAlphaYellow300 = Color(0xff420900)
|
||||
val colorAlphaYellow400 = Color(0xff4d1400)
|
||||
val colorAlphaYellow500 = Color(0xff5c2300)
|
||||
val colorAlphaYellow600 = Color(0xde753300)
|
||||
val colorAlphaYellow700 = Color(0xeb854200)
|
||||
val colorAlphaYellow800 = Color(0xff9e5c00)
|
||||
val colorAlphaYellow900 = Color(0xffbd7b00)
|
||||
val colorBlue100 = Color(0xff00055a)
|
||||
val colorBlue1000 = Color(0xff5e99f0)
|
||||
val colorBlue1100 = Color(0xff7aacf4)
|
||||
val colorBlue1200 = Color(0xffa1c4f8)
|
||||
val colorBlue1300 = Color(0xffcbdffc)
|
||||
val colorBlue1400 = Color(0xffe4eefe)
|
||||
val colorBlue200 = Color(0xff00095d)
|
||||
val colorBlue300 = Color(0xff001264)
|
||||
val colorBlue400 = Color(0xff001e6f)
|
||||
val colorBlue500 = Color(0xff062d80)
|
||||
val colorBlue600 = Color(0xff083891)
|
||||
val colorBlue700 = Color(0xff0b49ab)
|
||||
val colorBlue800 = Color(0xff0e67d9)
|
||||
val colorBlue900 = Color(0xff4187eb)
|
||||
val colorCyan100 = Color(0xff001144)
|
||||
val colorCyan1000 = Color(0xff02a7c6)
|
||||
val colorCyan1100 = Color(0xff21bacd)
|
||||
val colorCyan1200 = Color(0xff78d0dc)
|
||||
val colorCyan1300 = Color(0xffb8e5eb)
|
||||
val colorCyan1400 = Color(0xffdbf2f5)
|
||||
val colorCyan200 = Color(0xff001448)
|
||||
val colorCyan300 = Color(0xff001b4e)
|
||||
val colorCyan400 = Color(0xff002559)
|
||||
val colorCyan500 = Color(0xff003468)
|
||||
val colorCyan600 = Color(0xff003f75)
|
||||
val colorCyan700 = Color(0xff005188)
|
||||
val colorCyan800 = Color(0xff0271aa)
|
||||
val colorCyan900 = Color(0xff0093be)
|
||||
val colorFuchsia100 = Color(0xff28003d)
|
||||
val colorFuchsia1000 = Color(0xffcf78d7)
|
||||
val colorFuchsia1100 = Color(0xffd991de)
|
||||
val colorFuchsia1200 = Color(0xffe5b1e9)
|
||||
val colorFuchsia1300 = Color(0xfff1d4f3)
|
||||
val colorFuchsia1400 = Color(0xfff8e9f9)
|
||||
val colorFuchsia200 = Color(0xff2e0044)
|
||||
val colorFuchsia300 = Color(0xff37004e)
|
||||
val colorFuchsia400 = Color(0xff46005e)
|
||||
val colorFuchsia500 = Color(0xff560f6f)
|
||||
val colorFuchsia600 = Color(0xff65177d)
|
||||
val colorFuchsia700 = Color(0xff7d2394)
|
||||
val colorFuchsia800 = Color(0xffaa36ba)
|
||||
val colorFuchsia900 = Color(0xffc560cf)
|
||||
val colorGray100 = Color(0xff14171b)
|
||||
val colorGray1000 = Color(0xff9199a4)
|
||||
val colorGray1100 = Color(0xffa3aab4)
|
||||
val colorGray1200 = Color(0xffbdc3cc)
|
||||
val colorGray1300 = Color(0xffd9dee4)
|
||||
val colorGray1400 = Color(0xffebeef2)
|
||||
val colorGray200 = Color(0xff181a1f)
|
||||
val colorGray300 = Color(0xff1d1f24)
|
||||
val colorGray400 = Color(0xff26282d)
|
||||
val colorGray500 = Color(0xff323539)
|
||||
val colorGray600 = Color(0xff3c3f44)
|
||||
val colorGray700 = Color(0xff4a4f55)
|
||||
val colorGray800 = Color(0xff656c76)
|
||||
val colorGray900 = Color(0xff808994)
|
||||
val colorGreen100 = Color(0xff001c0b)
|
||||
val colorGreen1000 = Color(0xff17ac84)
|
||||
val colorGreen1100 = Color(0xff1fc090)
|
||||
val colorGreen1200 = Color(0xff72d5ae)
|
||||
val colorGreen1300 = Color(0xffb5e8d1)
|
||||
val colorGreen1400 = Color(0xffd9f4e7)
|
||||
val colorGreen200 = Color(0xff001f0e)
|
||||
val colorGreen300 = Color(0xff002513)
|
||||
val colorGreen400 = Color(0xff002e1b)
|
||||
val colorGreen500 = Color(0xff003d29)
|
||||
val colorGreen600 = Color(0xff004832)
|
||||
val colorGreen700 = Color(0xff005a43)
|
||||
val colorGreen800 = Color(0xff007a62)
|
||||
val colorGreen900 = Color(0xff129a78)
|
||||
val colorLime100 = Color(0xff001b00)
|
||||
val colorLime1000 = Color(0xff47ad26)
|
||||
val colorLime1100 = Color(0xff56c02c)
|
||||
val colorLime1200 = Color(0xff77d94f)
|
||||
val colorLime1300 = Color(0xffb6eca3)
|
||||
val colorLime1400 = Color(0xffdaf6d0)
|
||||
val colorLime200 = Color(0xff002000)
|
||||
val colorLime300 = Color(0xff002600)
|
||||
val colorLime400 = Color(0xff003000)
|
||||
val colorLime500 = Color(0xff003e00)
|
||||
val colorLime600 = Color(0xff004a00)
|
||||
val colorLime700 = Color(0xff005c00)
|
||||
val colorLime800 = Color(0xff1d7c13)
|
||||
val colorLime900 = Color(0xff389b20)
|
||||
val colorOrange100 = Color(0xff380000)
|
||||
val colorOrange1000 = Color(0xffeb7a12)
|
||||
val colorOrange1100 = Color(0xfff6913d)
|
||||
val colorOrange1200 = Color(0xfffbb37e)
|
||||
val colorOrange1300 = Color(0xffffd5b9)
|
||||
val colorOrange1400 = Color(0xffffeadb)
|
||||
val colorOrange200 = Color(0xff3c0000)
|
||||
val colorOrange300 = Color(0xff470000)
|
||||
val colorOrange400 = Color(0xff580000)
|
||||
val colorOrange500 = Color(0xff710000)
|
||||
val colorOrange600 = Color(0xff830500)
|
||||
val colorOrange700 = Color(0xff972206)
|
||||
val colorOrange800 = Color(0xffb94607)
|
||||
val colorOrange900 = Color(0xffda670d)
|
||||
val colorPink100 = Color(0xff37000f)
|
||||
val colorPink1000 = Color(0xfffa658f)
|
||||
val colorPink1100 = Color(0xfffe84a2)
|
||||
val colorPink1200 = Color(0xffffabbe)
|
||||
val colorPink1300 = Color(0xffffd2dc)
|
||||
val colorPink1400 = Color(0xffffe8ed)
|
||||
val colorPink200 = Color(0xff3c0012)
|
||||
val colorPink300 = Color(0xff450018)
|
||||
val colorPink400 = Color(0xff550024)
|
||||
val colorPink500 = Color(0xff6d0036)
|
||||
val colorPink600 = Color(0xff7c0c41)
|
||||
val colorPink700 = Color(0xff99114f)
|
||||
val colorPink800 = Color(0xffce1865)
|
||||
val colorPink900 = Color(0xfff4427d)
|
||||
val colorPurple100 = Color(0xff1a0055)
|
||||
val colorPurple1000 = Color(0xff9e87fc)
|
||||
val colorPurple1100 = Color(0xffad9cfe)
|
||||
val colorPurple1200 = Color(0xffc4baff)
|
||||
val colorPurple1300 = Color(0xffdedaff)
|
||||
val colorPurple1400 = Color(0xffeeebff)
|
||||
val colorPurple200 = Color(0xff1c005a)
|
||||
val colorPurple300 = Color(0xff22006a)
|
||||
val colorPurple400 = Color(0xff2c0080)
|
||||
val colorPurple500 = Color(0xff3d009e)
|
||||
val colorPurple600 = Color(0xff4a0db1)
|
||||
val colorPurple700 = Color(0xff5a27c6)
|
||||
val colorPurple800 = Color(0xff7849ec)
|
||||
val colorPurple900 = Color(0xff9171f9)
|
||||
val colorRed100 = Color(0xff370000)
|
||||
val colorRed1000 = Color(0xffff665d)
|
||||
val colorRed1100 = Color(0xffff877c)
|
||||
val colorRed1200 = Color(0xffffaea4)
|
||||
val colorRed1300 = Color(0xffffd4cd)
|
||||
val colorRed1400 = Color(0xffffe9e6)
|
||||
val colorRed200 = Color(0xff3e0000)
|
||||
val colorRed300 = Color(0xff470000)
|
||||
val colorRed400 = Color(0xff590000)
|
||||
val colorRed500 = Color(0xff710000)
|
||||
val colorRed600 = Color(0xff830009)
|
||||
val colorRed700 = Color(0xff9f0d1e)
|
||||
val colorRed800 = Color(0xffd1212a)
|
||||
val colorRed900 = Color(0xfffd3e3c)
|
||||
val colorThemeBg = Color(0xff101317)
|
||||
val colorTransparent = Color(0x00000000)
|
||||
val colorYellow100 = Color(0xff360000)
|
||||
val colorYellow1000 = Color(0xffcc8c00)
|
||||
val colorYellow1100 = Color(0xffdb9f00)
|
||||
val colorYellow1200 = Color(0xffefbb0b)
|
||||
val colorYellow1300 = Color(0xfffedb58)
|
||||
val colorYellow1400 = Color(0xffffedb1)
|
||||
val colorYellow200 = Color(0xff3a0300)
|
||||
val colorYellow300 = Color(0xff410900)
|
||||
val colorYellow400 = Color(0xff4c1400)
|
||||
val colorYellow500 = Color(0xff5c2400)
|
||||
val colorYellow600 = Color(0xff682e03)
|
||||
val colorYellow700 = Color(0xff7c3e02)
|
||||
val colorYellow800 = Color(0xff9d5b00)
|
||||
val colorYellow900 = Color(0xffbc7a00)
|
||||
}
|
||||
@@ -0,0 +1,335 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated.internal
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
|
||||
@CoreColorToken
|
||||
object DarkHcColorTokens {
|
||||
val colorAlphaBlue100 = Color(0xff00095c)
|
||||
val colorAlphaBlue1000 = Color(0xf79ec5ff)
|
||||
val colorAlphaBlue1100 = Color(0xfab8d4ff)
|
||||
val colorAlphaBlue1200 = Color(0xfcc8defe)
|
||||
val colorAlphaBlue1300 = Color(0xffe6effe)
|
||||
val colorAlphaBlue1400 = Color(0xfff1f6fe)
|
||||
val colorAlphaBlue200 = Color(0xff001366)
|
||||
val colorAlphaBlue300 = Color(0xff001e70)
|
||||
val colorAlphaBlue400 = Color(0xd1002b8f)
|
||||
val colorAlphaBlue500 = Color(0x87015afe)
|
||||
val colorAlphaBlue600 = Color(0xa30665fe)
|
||||
val colorAlphaBlue700 = Color(0xcf0d71fd)
|
||||
val colorAlphaBlue800 = Color(0xe83488fe)
|
||||
val colorAlphaBlue900 = Color(0xf78bb9fd)
|
||||
val colorAlphaCyan100 = Color(0xff001447)
|
||||
val colorAlphaCyan1000 = Color(0xd67beffe)
|
||||
val colorAlphaCyan1100 = Color(0xe0a4f4fe)
|
||||
val colorAlphaCyan1200 = Color(0xe8bef5fe)
|
||||
val colorAlphaCyan1300 = Color(0xf5e1fbfe)
|
||||
val colorAlphaCyan1400 = Color(0xfaf1fdfe)
|
||||
val colorAlphaCyan200 = Color(0xff001b4d)
|
||||
val colorAlphaCyan300 = Color(0xff00265c)
|
||||
val colorAlphaCyan400 = Color(0xff002d61)
|
||||
val colorAlphaCyan500 = Color(0xff003f75)
|
||||
val colorAlphaCyan600 = Color(0xff00538a)
|
||||
val colorAlphaCyan700 = Color(0xff006da3)
|
||||
val colorAlphaCyan800 = Color(0xff008ebd)
|
||||
val colorAlphaCyan900 = Color(0xcf52edfe)
|
||||
val colorAlphaFuchsia100 = Color(0xff2d0042)
|
||||
val colorAlphaFuchsia1000 = Color(0xe6fabefe)
|
||||
val colorAlphaFuchsia1100 = Color(0xedfacefd)
|
||||
val colorAlphaFuchsia1200 = Color(0xf2fcd7fe)
|
||||
val colorAlphaFuchsia1300 = Color(0xfafdecfe)
|
||||
val colorAlphaFuchsia1400 = Color(0xfcfdf2fd)
|
||||
val colorAlphaFuchsia200 = Color(0xff36004d)
|
||||
val colorAlphaFuchsia300 = Color(0xff45005c)
|
||||
val colorAlphaFuchsia400 = Color(0xd95a0075)
|
||||
val colorAlphaFuchsia500 = Color(0x70d21fff)
|
||||
val colorAlphaFuchsia600 = Color(0x8ad82ffe)
|
||||
val colorAlphaFuchsia700 = Color(0xade640fc)
|
||||
val colorAlphaFuchsia800 = Color(0xc7f467fe)
|
||||
val colorAlphaFuchsia900 = Color(0xe0f9b3ff)
|
||||
val colorAlphaGray100 = Color(0x0ad9c3df)
|
||||
val colorAlphaGray1000 = Color(0xc2f0f7ff)
|
||||
val colorAlphaGray1100 = Color(0xd1f0f7ff)
|
||||
val colorAlphaGray1200 = Color(0xe0f1f6fd)
|
||||
val colorAlphaGray1300 = Color(0xf2f6f9fe)
|
||||
val colorAlphaGray1400 = Color(0xf7fbfdfe)
|
||||
val colorAlphaGray200 = Color(0x0fe9dbf0)
|
||||
val colorAlphaGray300 = Color(0x1aede7f4)
|
||||
val colorAlphaGray400 = Color(0x21e1e4ef)
|
||||
val colorAlphaGray500 = Color(0x33eceff8)
|
||||
val colorAlphaGray600 = Color(0x45e7f1fd)
|
||||
val colorAlphaGray700 = Color(0x63dfebfb)
|
||||
val colorAlphaGray800 = Color(0x82dceafe)
|
||||
val colorAlphaGray900 = Color(0xb8ecf4fe)
|
||||
val colorAlphaGreen100 = Color(0xff001f0e)
|
||||
val colorAlphaGreen1000 = Color(0xcf75ffc8)
|
||||
val colorAlphaGreen1100 = Color(0xdba4fed7)
|
||||
val colorAlphaGreen1200 = Color(0xe6bffde1)
|
||||
val colorAlphaGreen1300 = Color(0xf5e2fdf1)
|
||||
val colorAlphaGreen1400 = Color(0xfaedfdf5)
|
||||
val colorAlphaGreen200 = Color(0xff002412)
|
||||
val colorAlphaGreen300 = Color(0xff002e1b)
|
||||
val colorAlphaGreen400 = Color(0xff003824)
|
||||
val colorAlphaGreen500 = Color(0xff004732)
|
||||
val colorAlphaGreen600 = Color(0xff005c45)
|
||||
val colorAlphaGreen700 = Color(0xff00755e)
|
||||
val colorAlphaGreen800 = Color(0x8a12fdc2)
|
||||
val colorAlphaGreen900 = Color(0xc740fcba)
|
||||
val colorAlphaLime100 = Color(0xff001f00)
|
||||
val colorAlphaLime1000 = Color(0xd47bfe3e)
|
||||
val colorAlphaLime1100 = Color(0xe0a4fd81)
|
||||
val colorAlphaLime1200 = Color(0xe8c1fea9)
|
||||
val colorAlphaLime1300 = Color(0xf7e1fdd8)
|
||||
val colorAlphaLime1400 = Color(0xfaedfee7)
|
||||
val colorAlphaLime200 = Color(0xff002900)
|
||||
val colorAlphaLime300 = Color(0xff002e00)
|
||||
val colorAlphaLime400 = Color(0xff003800)
|
||||
val colorAlphaLime500 = Color(0xff004d00)
|
||||
val colorAlphaLime600 = Color(0xff005c00)
|
||||
val colorAlphaLime700 = Color(0x6b23ff0a)
|
||||
val colorAlphaLime800 = Color(0x8c4dfe25)
|
||||
val colorAlphaLime900 = Color(0xc774fe34)
|
||||
val colorAlphaOrange100 = Color(0xff3d0000)
|
||||
val colorAlphaOrange1000 = Color(0xfaffb175)
|
||||
val colorAlphaOrange1100 = Color(0xfffdc196)
|
||||
val colorAlphaOrange1200 = Color(0xfffed1b3)
|
||||
val colorAlphaOrange1300 = Color(0xffffeadb)
|
||||
val colorAlphaOrange1400 = Color(0xfffff2eb)
|
||||
val colorAlphaOrange200 = Color(0xff470000)
|
||||
val colorAlphaOrange300 = Color(0xff570000)
|
||||
val colorAlphaOrange400 = Color(0xff660000)
|
||||
val colorAlphaOrange500 = Color(0xff850400)
|
||||
val colorAlphaOrange600 = Color(0xbdc72800)
|
||||
val colorAlphaOrange700 = Color(0xb3fa5300)
|
||||
val colorAlphaOrange800 = Color(0xcffe7206)
|
||||
val colorAlphaOrange900 = Color(0xfafda058)
|
||||
val colorAlphaPink100 = Color(0xff3d0012)
|
||||
val colorAlphaPink1000 = Color(0xffffa3b9)
|
||||
val colorAlphaPink1100 = Color(0xffffbdcb)
|
||||
val colorAlphaPink1200 = Color(0xffffccd7)
|
||||
val colorAlphaPink1300 = Color(0xffffebef)
|
||||
val colorAlphaPink1400 = Color(0xfffff0f3)
|
||||
val colorAlphaPink200 = Color(0xff470019)
|
||||
val colorAlphaPink300 = Color(0xff570024)
|
||||
val colorAlphaPink400 = Color(0xff61002d)
|
||||
val colorAlphaPink500 = Color(0x75fb0473)
|
||||
val colorAlphaPink600 = Color(0x94fd1277)
|
||||
val colorAlphaPink700 = Color(0xc2fe1b79)
|
||||
val colorAlphaPink800 = Color(0xf2fd2b78)
|
||||
val colorAlphaPink900 = Color(0xffff94ad)
|
||||
val colorAlphaPurple100 = Color(0xff1d005c)
|
||||
val colorAlphaPurple1000 = Color(0xffc2b8ff)
|
||||
val colorAlphaPurple1100 = Color(0xffcec7ff)
|
||||
val colorAlphaPurple1200 = Color(0xffdbd6ff)
|
||||
val colorAlphaPurple1300 = Color(0xffeeebff)
|
||||
val colorAlphaPurple1400 = Color(0xfff6f5ff)
|
||||
val colorAlphaPurple200 = Color(0xff22006b)
|
||||
val colorAlphaPurple300 = Color(0xff2d0080)
|
||||
val colorAlphaPurple400 = Color(0xff34008f)
|
||||
val colorAlphaPurple500 = Color(0xab690dfd)
|
||||
val colorAlphaPurple600 = Color(0xc2712bfd)
|
||||
val colorAlphaPurple700 = Color(0xe67f49fd)
|
||||
val colorAlphaPurple800 = Color(0xf7906bff)
|
||||
val colorAlphaPurple900 = Color(0xffb7a8ff)
|
||||
val colorAlphaRed100 = Color(0xff3d0000)
|
||||
val colorAlphaRed1000 = Color(0xffffa89e)
|
||||
val colorAlphaRed1100 = Color(0xffffbfb8)
|
||||
val colorAlphaRed1200 = Color(0xffffcec7)
|
||||
val colorAlphaRed1300 = Color(0xffffe8e5)
|
||||
val colorAlphaRed1400 = Color(0xfffff3f0)
|
||||
val colorAlphaRed200 = Color(0xff470000)
|
||||
val colorAlphaRed300 = Color(0xff5c0000)
|
||||
val colorAlphaRed400 = Color(0xff660000)
|
||||
val colorAlphaRed500 = Color(0xff850009)
|
||||
val colorAlphaRed600 = Color(0x99fe0b24)
|
||||
val colorAlphaRed700 = Color(0xc4ff242f)
|
||||
val colorAlphaRed800 = Color(0xf5ff2e31)
|
||||
val colorAlphaRed900 = Color(0xffff988f)
|
||||
val colorAlphaYellow100 = Color(0xff380300)
|
||||
val colorAlphaYellow1000 = Color(0xebfec406)
|
||||
val colorAlphaYellow1100 = Color(0xf7fecf16)
|
||||
val colorAlphaYellow1200 = Color(0xfffed634)
|
||||
val colorAlphaYellow1300 = Color(0xffffedb3)
|
||||
val colorAlphaYellow1400 = Color(0xfffff4d1)
|
||||
val colorAlphaYellow200 = Color(0xff420900)
|
||||
val colorAlphaYellow300 = Color(0xff4d1400)
|
||||
val colorAlphaYellow400 = Color(0xff571e00)
|
||||
val colorAlphaYellow500 = Color(0xde753300)
|
||||
val colorAlphaYellow600 = Color(0xeb854200)
|
||||
val colorAlphaYellow700 = Color(0xff995700)
|
||||
val colorAlphaYellow800 = Color(0xffb37100)
|
||||
val colorAlphaYellow900 = Color(0xffe6ac00)
|
||||
val colorBlue100 = Color(0xff00095d)
|
||||
val colorBlue1000 = Color(0xff9ac0f8)
|
||||
val colorBlue1100 = Color(0xffb2cffa)
|
||||
val colorBlue1200 = Color(0xffc5dbfc)
|
||||
val colorBlue1300 = Color(0xffe4eefe)
|
||||
val colorBlue1400 = Color(0xffeff5fe)
|
||||
val colorBlue200 = Color(0xff001264)
|
||||
val colorBlue300 = Color(0xff001e6f)
|
||||
val colorBlue400 = Color(0xff032677)
|
||||
val colorBlue500 = Color(0xff083891)
|
||||
val colorBlue600 = Color(0xff0b49ab)
|
||||
val colorBlue700 = Color(0xff0e61d1)
|
||||
val colorBlue800 = Color(0xff337fe9)
|
||||
val colorBlue900 = Color(0xff89b5f6)
|
||||
val colorCyan100 = Color(0xff001448)
|
||||
val colorCyan1000 = Color(0xff6bccd9)
|
||||
val colorCyan1100 = Color(0xff93d9e2)
|
||||
val colorCyan1200 = Color(0xffafe2e9)
|
||||
val colorCyan1300 = Color(0xffdbf2f5)
|
||||
val colorCyan1400 = Color(0xffeaf7f9)
|
||||
val colorCyan200 = Color(0xff001b4e)
|
||||
val colorCyan300 = Color(0xff002559)
|
||||
val colorCyan400 = Color(0xff002d61)
|
||||
val colorCyan500 = Color(0xff003f75)
|
||||
val colorCyan600 = Color(0xff005188)
|
||||
val colorCyan700 = Color(0xff006ca4)
|
||||
val colorCyan800 = Color(0xff008aba)
|
||||
val colorCyan900 = Color(0xff46c3d2)
|
||||
val colorFuchsia100 = Color(0xff2e0044)
|
||||
val colorFuchsia1000 = Color(0xffe3abe7)
|
||||
val colorFuchsia1100 = Color(0xffeac0ed)
|
||||
val colorFuchsia1200 = Color(0xfff0cff2)
|
||||
val colorFuchsia1300 = Color(0xfff8e9f9)
|
||||
val colorFuchsia1400 = Color(0xfffbf1fb)
|
||||
val colorFuchsia200 = Color(0xff37004e)
|
||||
val colorFuchsia300 = Color(0xff46005e)
|
||||
val colorFuchsia400 = Color(0xff4f0368)
|
||||
val colorFuchsia500 = Color(0xff65177d)
|
||||
val colorFuchsia600 = Color(0xff7d2394)
|
||||
val colorFuchsia700 = Color(0xffa233b3)
|
||||
val colorFuchsia800 = Color(0xffc153cb)
|
||||
val colorFuchsia900 = Color(0xffdd9de3)
|
||||
val colorGray100 = Color(0xff181a1f)
|
||||
val colorGray1000 = Color(0xffb8bfc7)
|
||||
val colorGray1100 = Color(0xffc8ced5)
|
||||
val colorGray1200 = Color(0xffd5dae1)
|
||||
val colorGray1300 = Color(0xffebeef2)
|
||||
val colorGray1400 = Color(0xfff2f5f7)
|
||||
val colorGray200 = Color(0xff1d1f24)
|
||||
val colorGray300 = Color(0xff26282d)
|
||||
val colorGray400 = Color(0xff2b2e33)
|
||||
val colorGray500 = Color(0xff3c3f44)
|
||||
val colorGray600 = Color(0xff4a4f55)
|
||||
val colorGray700 = Color(0xff606770)
|
||||
val colorGray800 = Color(0xff79818d)
|
||||
val colorGray900 = Color(0xffacb4bd)
|
||||
val colorGreen100 = Color(0xff001f0e)
|
||||
val colorGreen1000 = Color(0xff61d2a6)
|
||||
val colorGreen1100 = Color(0xff8fddbc)
|
||||
val colorGreen1200 = Color(0xfface6cc)
|
||||
val colorGreen1300 = Color(0xffd9f4e7)
|
||||
val colorGreen1400 = Color(0xffe9f8f1)
|
||||
val colorGreen200 = Color(0xff002513)
|
||||
val colorGreen300 = Color(0xff002e1b)
|
||||
val colorGreen400 = Color(0xff003622)
|
||||
val colorGreen500 = Color(0xff004832)
|
||||
val colorGreen600 = Color(0xff005a43)
|
||||
val colorGreen700 = Color(0xff00745c)
|
||||
val colorGreen800 = Color(0xff109173)
|
||||
val colorGreen900 = Color(0xff37c998)
|
||||
val colorLime100 = Color(0xff002000)
|
||||
val colorLime1000 = Color(0xff6ad639)
|
||||
val colorLime1100 = Color(0xff92e175)
|
||||
val colorLime1200 = Color(0xffafe99a)
|
||||
val colorLime1300 = Color(0xffdaf6d0)
|
||||
val colorLime1400 = Color(0xffe9f9e3)
|
||||
val colorLime200 = Color(0xff002600)
|
||||
val colorLime300 = Color(0xff003000)
|
||||
val colorLime400 = Color(0xff003700)
|
||||
val colorLime500 = Color(0xff004a00)
|
||||
val colorLime600 = Color(0xff005c00)
|
||||
val colorLime700 = Color(0xff187611)
|
||||
val colorLime800 = Color(0xff31941d)
|
||||
val colorLime900 = Color(0xff5eca2f)
|
||||
val colorOrange100 = Color(0xff3c0000)
|
||||
val colorOrange1000 = Color(0xfffaad73)
|
||||
val colorOrange1100 = Color(0xfffdc197)
|
||||
val colorOrange1200 = Color(0xfffed0b1)
|
||||
val colorOrange1300 = Color(0xffffeadb)
|
||||
val colorOrange1400 = Color(0xfffff2ea)
|
||||
val colorOrange200 = Color(0xff470000)
|
||||
val colorOrange300 = Color(0xff580000)
|
||||
val colorOrange400 = Color(0xff650000)
|
||||
val colorOrange500 = Color(0xff830500)
|
||||
val colorOrange600 = Color(0xff972206)
|
||||
val colorOrange700 = Color(0xffb44007)
|
||||
val colorOrange800 = Color(0xffd15f0b)
|
||||
val colorOrange900 = Color(0xfff89d58)
|
||||
val colorPink100 = Color(0xff3c0012)
|
||||
val colorPink1000 = Color(0xffffa4b9)
|
||||
val colorPink1100 = Color(0xffffbbca)
|
||||
val colorPink1200 = Color(0xffffccd7)
|
||||
val colorPink1300 = Color(0xffffe8ed)
|
||||
val colorPink1400 = Color(0xfffff1f4)
|
||||
val colorPink200 = Color(0xff450018)
|
||||
val colorPink300 = Color(0xff550024)
|
||||
val colorPink400 = Color(0xff61002d)
|
||||
val colorPink500 = Color(0xff7c0c41)
|
||||
val colorPink600 = Color(0xff99114f)
|
||||
val colorPink700 = Color(0xffc51761)
|
||||
val colorPink800 = Color(0xfff12c75)
|
||||
val colorPink900 = Color(0xffff92ac)
|
||||
val colorPurple100 = Color(0xff1c005a)
|
||||
val colorPurple1000 = Color(0xffc0b5ff)
|
||||
val colorPurple1100 = Color(0xffcec7ff)
|
||||
val colorPurple1200 = Color(0xffdad5ff)
|
||||
val colorPurple1300 = Color(0xffeeebff)
|
||||
val colorPurple1400 = Color(0xfff5f3ff)
|
||||
val colorPurple200 = Color(0xff22006a)
|
||||
val colorPurple300 = Color(0xff2c0080)
|
||||
val colorPurple400 = Color(0xff350090)
|
||||
val colorPurple500 = Color(0xff4a0db1)
|
||||
val colorPurple600 = Color(0xff5a27c6)
|
||||
val colorPurple700 = Color(0xff7343e6)
|
||||
val colorPurple800 = Color(0xff8b66f8)
|
||||
val colorPurple900 = Color(0xffb6a7ff)
|
||||
val colorRed100 = Color(0xff3e0000)
|
||||
val colorRed1000 = Color(0xffffa79d)
|
||||
val colorRed1100 = Color(0xffffbdb5)
|
||||
val colorRed1200 = Color(0xffffcfc8)
|
||||
val colorRed1300 = Color(0xffffe9e6)
|
||||
val colorRed1400 = Color(0xfffff2ef)
|
||||
val colorRed200 = Color(0xff470000)
|
||||
val colorRed300 = Color(0xff590000)
|
||||
val colorRed400 = Color(0xff640000)
|
||||
val colorRed500 = Color(0xff830009)
|
||||
val colorRed600 = Color(0xff9f0d1e)
|
||||
val colorRed700 = Color(0xffc81e28)
|
||||
val colorRed800 = Color(0xfff52f33)
|
||||
val colorRed900 = Color(0xffff968c)
|
||||
val colorThemeBg = Color(0xff101317)
|
||||
val colorTransparent = Color(0x00000000)
|
||||
val colorYellow100 = Color(0xff3a0300)
|
||||
val colorYellow1000 = Color(0xffebb607)
|
||||
val colorYellow1100 = Color(0xfff7c816)
|
||||
val colorYellow1200 = Color(0xfffed632)
|
||||
val colorYellow1300 = Color(0xffffedb1)
|
||||
val colorYellow1400 = Color(0xfffff4d0)
|
||||
val colorYellow200 = Color(0xff410900)
|
||||
val colorYellow300 = Color(0xff4c1400)
|
||||
val colorYellow400 = Color(0xff541d00)
|
||||
val colorYellow500 = Color(0xff682e03)
|
||||
val colorYellow600 = Color(0xff7c3e02)
|
||||
val colorYellow700 = Color(0xff985600)
|
||||
val colorYellow800 = Color(0xffb47200)
|
||||
val colorYellow900 = Color(0xffe3aa00)
|
||||
}
|
||||
@@ -0,0 +1,335 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated.internal
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
|
||||
@CoreColorToken
|
||||
object LightColorTokens {
|
||||
val colorAlphaBlue100 = Color(0x08389cff)
|
||||
val colorAlphaBlue1000 = Color(0xfc0256c5)
|
||||
val colorAlphaBlue1100 = Color(0xfa0148b2)
|
||||
val colorAlphaBlue1200 = Color(0xfc013693)
|
||||
val colorAlphaBlue1300 = Color(0xff012579)
|
||||
val colorAlphaBlue1400 = Color(0xff000e66)
|
||||
val colorAlphaBlue200 = Color(0x0d2474ff)
|
||||
val colorAlphaBlue300 = Color(0x170a70ff)
|
||||
val colorAlphaBlue400 = Color(0x290b6af9)
|
||||
val colorAlphaBlue500 = Color(0x47096cf6)
|
||||
val colorAlphaBlue600 = Color(0x5e0663ef)
|
||||
val colorAlphaBlue700 = Color(0x820264ed)
|
||||
val colorAlphaBlue800 = Color(0xbf0062eb)
|
||||
val colorAlphaBlue900 = Color(0xfc0165df)
|
||||
val colorAlphaCyan100 = Color(0x0816bbbb)
|
||||
val colorAlphaCyan1000 = Color(0xff00649e)
|
||||
val colorAlphaCyan1100 = Color(0xff00568f)
|
||||
val colorAlphaCyan1200 = Color(0xff003f75)
|
||||
val colorAlphaCyan1300 = Color(0xff002c61)
|
||||
val colorAlphaCyan1400 = Color(0xff001a52)
|
||||
val colorAlphaCyan200 = Color(0x0f16abbb)
|
||||
val colorAlphaCyan300 = Color(0x1c00a8c2)
|
||||
val colorAlphaCyan400 = Color(0x3800aabd)
|
||||
val colorAlphaCyan500 = Color(0x6605abbd)
|
||||
val colorAlphaCyan600 = Color(0x8a01aac1)
|
||||
val colorAlphaCyan700 = Color(0xeb01b7cb)
|
||||
val colorAlphaCyan800 = Color(0xff0095c2)
|
||||
val colorAlphaCyan900 = Color(0xff0074ad)
|
||||
val colorAlphaFuchsia100 = Color(0x05cc05cc)
|
||||
val colorAlphaFuchsia1000 = Color(0xd6820198)
|
||||
val colorAlphaFuchsia1100 = Color(0xe073038c)
|
||||
val colorAlphaFuchsia1200 = Color(0xed5d0279)
|
||||
val colorAlphaFuchsia1300 = Color(0xff4d0066)
|
||||
val colorAlphaFuchsia1400 = Color(0xff34004d)
|
||||
val colorAlphaFuchsia200 = Color(0x0ab505cc)
|
||||
val colorAlphaFuchsia300 = Color(0x12b60cc6)
|
||||
val colorAlphaFuchsia400 = Color(0x21bd09c3)
|
||||
val colorAlphaFuchsia500 = Color(0x3bb407c0)
|
||||
val colorAlphaFuchsia600 = Color(0x4fb207bb)
|
||||
val colorAlphaFuchsia700 = Color(0x6eaa04b9)
|
||||
val colorAlphaFuchsia800 = Color(0xa3ab03ba)
|
||||
val colorAlphaFuchsia900 = Color(0xcc9900ad)
|
||||
val colorAlphaGray100 = Color(0x0536699b)
|
||||
val colorAlphaGray1000 = Color(0xa8030c1b)
|
||||
val colorAlphaGray1100 = Color(0xb5030b16)
|
||||
val colorAlphaGray1200 = Color(0xc402070d)
|
||||
val colorAlphaGray1300 = Color(0xd603050c)
|
||||
val colorAlphaGray1400 = Color(0xe6020408)
|
||||
val colorAlphaGray200 = Color(0x0a366881)
|
||||
val colorAlphaGray300 = Color(0x0f052657)
|
||||
val colorAlphaGray400 = Color(0x1f052e61)
|
||||
val colorAlphaGray500 = Color(0x33052448)
|
||||
val colorAlphaGray600 = Color(0x42011d3c)
|
||||
val colorAlphaGray700 = Color(0x59011532)
|
||||
val colorAlphaGray800 = Color(0x8003152b)
|
||||
val colorAlphaGray900 = Color(0x9c031021)
|
||||
val colorAlphaGreen100 = Color(0x0816bb79)
|
||||
val colorAlphaGreen1000 = Color(0xff006b52)
|
||||
val colorAlphaGreen1100 = Color(0xff005c45)
|
||||
val colorAlphaGreen1200 = Color(0xff004732)
|
||||
val colorAlphaGreen1300 = Color(0xff00331f)
|
||||
val colorAlphaGreen1400 = Color(0xff002411)
|
||||
val colorAlphaGreen200 = Color(0x0f16bb69)
|
||||
val colorAlphaGreen300 = Color(0x1c00b85c)
|
||||
val colorAlphaGreen400 = Color(0x3b07b661)
|
||||
val colorAlphaGreen500 = Color(0x6904b96a)
|
||||
val colorAlphaGreen600 = Color(0x8f01b76e)
|
||||
val colorAlphaGreen700 = Color(0xf501c18a)
|
||||
val colorAlphaGreen800 = Color(0xff009975)
|
||||
val colorAlphaGreen900 = Color(0xff007a62)
|
||||
val colorAlphaLime100 = Color(0x0a4fcd1d)
|
||||
val colorAlphaLime1000 = Color(0xff007000)
|
||||
val colorAlphaLime1100 = Color(0xff006100)
|
||||
val colorAlphaLime1200 = Color(0xff004d00)
|
||||
val colorAlphaLime1300 = Color(0xff003800)
|
||||
val colorAlphaLime1400 = Color(0xff002400)
|
||||
val colorAlphaLime200 = Color(0x1238d40c)
|
||||
val colorAlphaLime300 = Color(0x262ecf02)
|
||||
val colorAlphaLime400 = Color(0x473ace09)
|
||||
val colorAlphaLime500 = Color(0x8237ca02)
|
||||
val colorAlphaLime600 = Color(0xb540ce03)
|
||||
val colorAlphaLime700 = Color(0xdb39bd00)
|
||||
val colorAlphaLime800 = Color(0xe8209301)
|
||||
val colorAlphaLime900 = Color(0xf5107902)
|
||||
val colorAlphaOrange100 = Color(0x0aff8138)
|
||||
val colorAlphaOrange1000 = Color(0xffad3400)
|
||||
val colorAlphaOrange1100 = Color(0xff992100)
|
||||
val colorAlphaOrange1200 = Color(0xff850000)
|
||||
val colorAlphaOrange1300 = Color(0xff610000)
|
||||
val colorAlphaOrange1400 = Color(0xff470000)
|
||||
val colorAlphaOrange200 = Color(0x12ff7d1a)
|
||||
val colorAlphaOrange300 = Color(0x1cff6c0a)
|
||||
val colorAlphaOrange400 = Color(0x38ff6d05)
|
||||
val colorAlphaOrange500 = Color(0x5eff6a00)
|
||||
val colorAlphaOrange600 = Color(0x85fc6f03)
|
||||
val colorAlphaOrange700 = Color(0xbff56e00)
|
||||
val colorAlphaOrange800 = Color(0xffdb6600)
|
||||
val colorAlphaOrange900 = Color(0xffbd4500)
|
||||
val colorAlphaPink100 = Color(0x05ff0537)
|
||||
val colorAlphaPink1000 = Color(0xf7b60256)
|
||||
val colorAlphaPink1100 = Color(0xf79e004c)
|
||||
val colorAlphaPink1200 = Color(0xfa79013d)
|
||||
val colorAlphaPink1300 = Color(0xff61002c)
|
||||
val colorAlphaPink1400 = Color(0xff420017)
|
||||
val colorAlphaPink200 = Color(0x0aff0537)
|
||||
val colorAlphaPink300 = Color(0x14ff1447)
|
||||
val colorAlphaPink400 = Color(0x21ff0037)
|
||||
val colorAlphaPink500 = Color(0x3dff0037)
|
||||
val colorAlphaPink600 = Color(0x54ff053f)
|
||||
val colorAlphaPink700 = Color(0x78ff0040)
|
||||
val colorAlphaPink800 = Color(0xbff50052)
|
||||
val colorAlphaPink900 = Color(0xf5cf025e)
|
||||
val colorAlphaPurple100 = Color(0x053838ff)
|
||||
val colorAlphaPurple1000 = Color(0xc94502d4)
|
||||
val colorAlphaPurple1100 = Color(0xdb4303c4)
|
||||
val colorAlphaPurple1200 = Color(0xfc4a02b6)
|
||||
val colorAlphaPurple1300 = Color(0xff34008f)
|
||||
val colorAlphaPurple1400 = Color(0xff200066)
|
||||
val colorAlphaPurple200 = Color(0x0a5338ff)
|
||||
val colorAlphaPurple300 = Color(0x12381aff)
|
||||
val colorAlphaPurple400 = Color(0x1f2f0fff)
|
||||
val colorAlphaPurple500 = Color(0x332605ff)
|
||||
val colorAlphaPurple600 = Color(0x452b05ff)
|
||||
val colorAlphaPurple700 = Color(0x613305ff)
|
||||
val colorAlphaPurple800 = Color(0x8f3b01f9)
|
||||
val colorAlphaPurple900 = Color(0xba4902ed)
|
||||
val colorAlphaRed100 = Color(0x08ff5938)
|
||||
val colorAlphaRed1000 = Color(0xf2bb0217)
|
||||
val colorAlphaRed1100 = Color(0xfca2011c)
|
||||
val colorAlphaRed1200 = Color(0xff850007)
|
||||
val colorAlphaRed1300 = Color(0xff610000)
|
||||
val colorAlphaRed1400 = Color(0xff470000)
|
||||
val colorAlphaRed200 = Color(0x0aff391f)
|
||||
val colorAlphaRed300 = Color(0x14ff3814)
|
||||
val colorAlphaRed400 = Color(0x26ff2b0a)
|
||||
val colorAlphaRed500 = Color(0x45ff2605)
|
||||
val colorAlphaRed600 = Color(0x5cff2205)
|
||||
val colorAlphaRed700 = Color(0x80ff1a05)
|
||||
val colorAlphaRed800 = Color(0xc4ff0505)
|
||||
val colorAlphaRed900 = Color(0xe8cf0213)
|
||||
val colorAlphaYellow100 = Color(0x0fffcd05)
|
||||
val colorAlphaYellow1000 = Color(0xff8f4c00)
|
||||
val colorAlphaYellow1100 = Color(0xff804000)
|
||||
val colorAlphaYellow1200 = Color(0xff6b2e00)
|
||||
val colorAlphaYellow1300 = Color(0xff571b00)
|
||||
val colorAlphaYellow1400 = Color(0xff420700)
|
||||
val colorAlphaYellow200 = Color(0x21ffc70f)
|
||||
val colorAlphaYellow300 = Color(0x40ffc905)
|
||||
val colorAlphaYellow400 = Color(0x7dffc905)
|
||||
val colorAlphaYellow500 = Color(0xfffacc00)
|
||||
val colorAlphaYellow600 = Color(0xfff0bc00)
|
||||
val colorAlphaYellow700 = Color(0xffe0a500)
|
||||
val colorAlphaYellow800 = Color(0xffbd7b00)
|
||||
val colorAlphaYellow900 = Color(0xff9e5a00)
|
||||
val colorBlue100 = Color(0xfff9fcff)
|
||||
val colorBlue1000 = Color(0xff0558c7)
|
||||
val colorBlue1100 = Color(0xff064ab1)
|
||||
val colorBlue1200 = Color(0xff043894)
|
||||
val colorBlue1300 = Color(0xff012478)
|
||||
val colorBlue1400 = Color(0xff000e65)
|
||||
val colorBlue200 = Color(0xfff4f8ff)
|
||||
val colorBlue300 = Color(0xffe9f2ff)
|
||||
val colorBlue400 = Color(0xffd8e7fe)
|
||||
val colorBlue500 = Color(0xffbad5fc)
|
||||
val colorBlue600 = Color(0xffa3c6fa)
|
||||
val colorBlue700 = Color(0xff7eaff6)
|
||||
val colorBlue800 = Color(0xff4088ee)
|
||||
val colorBlue900 = Color(0xff0467dd)
|
||||
val colorCyan100 = Color(0xfff8fdfd)
|
||||
val colorCyan1000 = Color(0xff00629c)
|
||||
val colorCyan1100 = Color(0xff00548c)
|
||||
val colorCyan1200 = Color(0xff004077)
|
||||
val colorCyan1300 = Color(0xff002b61)
|
||||
val colorCyan1400 = Color(0xff00194f)
|
||||
val colorCyan200 = Color(0xfff1fafb)
|
||||
val colorCyan300 = Color(0xffe3f5f8)
|
||||
val colorCyan400 = Color(0xffc7ecf0)
|
||||
val colorCyan500 = Color(0xff9bdde5)
|
||||
val colorCyan600 = Color(0xff76d1dd)
|
||||
val colorCyan700 = Color(0xff15becf)
|
||||
val colorCyan800 = Color(0xff0094c0)
|
||||
val colorCyan900 = Color(0xff0072ac)
|
||||
val colorFuchsia100 = Color(0xfffefafe)
|
||||
val colorFuchsia1000 = Color(0xff972aaa)
|
||||
val colorFuchsia1100 = Color(0xff822198)
|
||||
val colorFuchsia1200 = Color(0xff671481)
|
||||
val colorFuchsia1300 = Color(0xff4e0068)
|
||||
val colorFuchsia1400 = Color(0xff34004c)
|
||||
val colorFuchsia200 = Color(0xfffcf5fd)
|
||||
val colorFuchsia300 = Color(0xfffaeefb)
|
||||
val colorFuchsia400 = Color(0xfff6dff7)
|
||||
val colorFuchsia500 = Color(0xffedc6f0)
|
||||
val colorFuchsia600 = Color(0xffe7b2ea)
|
||||
val colorFuchsia700 = Color(0xffdb93e1)
|
||||
val colorFuchsia800 = Color(0xffc85ed1)
|
||||
val colorFuchsia900 = Color(0xffad33bd)
|
||||
val colorGray100 = Color(0xfffbfcfd)
|
||||
val colorGray1000 = Color(0xff595e67)
|
||||
val colorGray1100 = Color(0xff4c5158)
|
||||
val colorGray1200 = Color(0xff3c4045)
|
||||
val colorGray1300 = Color(0xff2b2d32)
|
||||
val colorGray1400 = Color(0xff1b1d22)
|
||||
val colorGray200 = Color(0xfff7f9fa)
|
||||
val colorGray300 = Color(0xfff0f2f5)
|
||||
val colorGray400 = Color(0xffe1e6ec)
|
||||
val colorGray500 = Color(0xffcdd3da)
|
||||
val colorGray600 = Color(0xffbdc4cc)
|
||||
val colorGray700 = Color(0xffa6adb7)
|
||||
val colorGray800 = Color(0xff818a95)
|
||||
val colorGray900 = Color(0xff656d77)
|
||||
val colorGreen100 = Color(0xfff8fdfb)
|
||||
val colorGreen1000 = Color(0xff006b52)
|
||||
val colorGreen1100 = Color(0xff005c45)
|
||||
val colorGreen1200 = Color(0xff004933)
|
||||
val colorGreen1300 = Color(0xff003420)
|
||||
val colorGreen1400 = Color(0xff002311)
|
||||
val colorGreen200 = Color(0xfff1fbf6)
|
||||
val colorGreen300 = Color(0xffe3f7ed)
|
||||
val colorGreen400 = Color(0xffc6eedb)
|
||||
val colorGreen500 = Color(0xff98e1c1)
|
||||
val colorGreen600 = Color(0xff71d7ae)
|
||||
val colorGreen700 = Color(0xff0bc491)
|
||||
val colorGreen800 = Color(0xff009b78)
|
||||
val colorGreen900 = Color(0xff007a61)
|
||||
val colorLime100 = Color(0xfff8fdf6)
|
||||
val colorLime1000 = Color(0xff006e00)
|
||||
val colorLime1100 = Color(0xff005f00)
|
||||
val colorLime1200 = Color(0xff004b00)
|
||||
val colorLime1300 = Color(0xff003600)
|
||||
val colorLime1400 = Color(0xff002400)
|
||||
val colorLime200 = Color(0xfff1fcee)
|
||||
val colorLime300 = Color(0xffe0f8d9)
|
||||
val colorLime400 = Color(0xffc8f1ba)
|
||||
val colorLime500 = Color(0xff99e57e)
|
||||
val colorLime600 = Color(0xff76db4c)
|
||||
val colorLime700 = Color(0xff54c424)
|
||||
val colorLime800 = Color(0xff359d18)
|
||||
val colorLime900 = Color(0xff197d0c)
|
||||
val colorOrange100 = Color(0xfffffaf7)
|
||||
val colorOrange1000 = Color(0xffac3300)
|
||||
val colorOrange1100 = Color(0xff9b2200)
|
||||
val colorOrange1200 = Color(0xff850000)
|
||||
val colorOrange1300 = Color(0xff620000)
|
||||
val colorOrange1400 = Color(0xff450000)
|
||||
val colorOrange200 = Color(0xfffff6ef)
|
||||
val colorOrange300 = Color(0xffffefe4)
|
||||
val colorOrange400 = Color(0xffffdfc8)
|
||||
val colorOrange500 = Color(0xffffc8a1)
|
||||
val colorOrange600 = Color(0xfffdb37c)
|
||||
val colorOrange700 = Color(0xfff89440)
|
||||
val colorOrange800 = Color(0xffdc6700)
|
||||
val colorOrange900 = Color(0xffbc4500)
|
||||
val colorPink100 = Color(0xfffffafb)
|
||||
val colorPink1000 = Color(0xffb80a5b)
|
||||
val colorPink1100 = Color(0xff9f0850)
|
||||
val colorPink1200 = Color(0xff7e0642)
|
||||
val colorPink1300 = Color(0xff5f002b)
|
||||
val colorPink1400 = Color(0xff430017)
|
||||
val colorPink200 = Color(0xfffff5f7)
|
||||
val colorPink300 = Color(0xffffecf0)
|
||||
val colorPink400 = Color(0xffffdee5)
|
||||
val colorPink500 = Color(0xffffc2cf)
|
||||
val colorPink600 = Color(0xffffadc0)
|
||||
val colorPink700 = Color(0xffff88a6)
|
||||
val colorPink800 = Color(0xfff7407d)
|
||||
val colorPink900 = Color(0xffd20c65)
|
||||
val colorPurple100 = Color(0xfffbfbff)
|
||||
val colorPurple1000 = Color(0xff6b37de)
|
||||
val colorPurple1100 = Color(0xff5d26cd)
|
||||
val colorPurple1200 = Color(0xff4c05b5)
|
||||
val colorPurple1300 = Color(0xff33008d)
|
||||
val colorPurple1400 = Color(0xff200066)
|
||||
val colorPurple200 = Color(0xfff8f7ff)
|
||||
val colorPurple300 = Color(0xfff1efff)
|
||||
val colorPurple400 = Color(0xffe6e2ff)
|
||||
val colorPurple500 = Color(0xffd4cdff)
|
||||
val colorPurple600 = Color(0xffc5bbff)
|
||||
val colorPurple700 = Color(0xffb1a0ff)
|
||||
val colorPurple800 = Color(0xff9271fd)
|
||||
val colorPurple900 = Color(0xff7a47f1)
|
||||
val colorRed100 = Color(0xfffffaf9)
|
||||
val colorRed1000 = Color(0xffbc0f22)
|
||||
val colorRed1100 = Color(0xffa4041d)
|
||||
val colorRed1200 = Color(0xff850006)
|
||||
val colorRed1300 = Color(0xff620000)
|
||||
val colorRed1400 = Color(0xff450000)
|
||||
val colorRed200 = Color(0xfffff7f6)
|
||||
val colorRed300 = Color(0xffffefec)
|
||||
val colorRed400 = Color(0xffffdfda)
|
||||
val colorRed500 = Color(0xffffc5bc)
|
||||
val colorRed600 = Color(0xffffafa5)
|
||||
val colorRed700 = Color(0xffff8c81)
|
||||
val colorRed800 = Color(0xffff3d3d)
|
||||
val colorRed900 = Color(0xffd51928)
|
||||
val colorThemeBg = Color(0xffffffff)
|
||||
val colorTransparent = Color(0x00000000)
|
||||
val colorYellow100 = Color(0xfffffcf0)
|
||||
val colorYellow1000 = Color(0xff8f4d00)
|
||||
val colorYellow1100 = Color(0xff803f00)
|
||||
val colorYellow1200 = Color(0xff692e00)
|
||||
val colorYellow1300 = Color(0xff541a00)
|
||||
val colorYellow1400 = Color(0xff410600)
|
||||
val colorYellow200 = Color(0xfffff8e0)
|
||||
val colorYellow300 = Color(0xfffff2c1)
|
||||
val colorYellow400 = Color(0xffffe484)
|
||||
val colorYellow500 = Color(0xfffbce00)
|
||||
val colorYellow600 = Color(0xfff1bd00)
|
||||
val colorYellow700 = Color(0xffdea200)
|
||||
val colorYellow800 = Color(0xffbe7a00)
|
||||
val colorYellow900 = Color(0xff9f5b00)
|
||||
}
|
||||
@@ -0,0 +1,335 @@
|
||||
/*
|
||||
* Copyright 2025 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* !!! WARNING !!!
|
||||
*
|
||||
* THIS IS AN AUTOGENERATED FILE.
|
||||
* DO NOT EDIT MANUALLY.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@file:Suppress("all")
|
||||
package io.element.android.compound.tokens.generated.internal
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import io.element.android.compound.annotations.CoreColorToken
|
||||
|
||||
@CoreColorToken
|
||||
object LightHcColorTokens {
|
||||
val colorAlphaBlue100 = Color(0x0d2474ff)
|
||||
val colorAlphaBlue1000 = Color(0xfc023997)
|
||||
val colorAlphaBlue1100 = Color(0xfc012e89)
|
||||
val colorAlphaBlue1200 = Color(0xfc00257a)
|
||||
val colorAlphaBlue1300 = Color(0xff00156b)
|
||||
val colorAlphaBlue1400 = Color(0xff000b61)
|
||||
val colorAlphaBlue200 = Color(0x170a70ff)
|
||||
val colorAlphaBlue300 = Color(0x290b6af9)
|
||||
val colorAlphaBlue400 = Color(0x380565f5)
|
||||
val colorAlphaBlue500 = Color(0x5e0663ef)
|
||||
val colorAlphaBlue600 = Color(0x820264ed)
|
||||
val colorAlphaBlue700 = Color(0xb50062eb)
|
||||
val colorAlphaBlue800 = Color(0xfc016ee9)
|
||||
val colorAlphaBlue900 = Color(0xfc0241a7)
|
||||
val colorAlphaCyan100 = Color(0x0f16abbb)
|
||||
val colorAlphaCyan1000 = Color(0xff00437a)
|
||||
val colorAlphaCyan1100 = Color(0xff003870)
|
||||
val colorAlphaCyan1200 = Color(0xff003066)
|
||||
val colorAlphaCyan1300 = Color(0xff001e52)
|
||||
val colorAlphaCyan1400 = Color(0xff00174d)
|
||||
val colorAlphaCyan200 = Color(0x1c00a8c2)
|
||||
val colorAlphaCyan300 = Color(0x3800aabd)
|
||||
val colorAlphaCyan400 = Color(0x4f03a9bf)
|
||||
val colorAlphaCyan500 = Color(0x8a01aac1)
|
||||
val colorAlphaCyan600 = Color(0xeb01b7cb)
|
||||
val colorAlphaCyan700 = Color(0xff0098c2)
|
||||
val colorAlphaCyan800 = Color(0xff007ab3)
|
||||
val colorAlphaCyan900 = Color(0xff004d85)
|
||||
val colorAlphaFuchsia100 = Color(0x0ab505cc)
|
||||
val colorAlphaFuchsia1000 = Color(0xe85e007a)
|
||||
val colorAlphaFuchsia1100 = Color(0xf253026f)
|
||||
val colorAlphaFuchsia1200 = Color(0xff53026e)
|
||||
val colorAlphaFuchsia1300 = Color(0xff3a0052)
|
||||
val colorAlphaFuchsia1400 = Color(0xff34004d)
|
||||
val colorAlphaFuchsia200 = Color(0x12b60cc6)
|
||||
val colorAlphaFuchsia300 = Color(0x21bd09c3)
|
||||
val colorAlphaFuchsia400 = Color(0x2eb105bd)
|
||||
val colorAlphaFuchsia500 = Color(0x4fb207bb)
|
||||
val colorAlphaFuchsia600 = Color(0x6eaa04b9)
|
||||
val colorAlphaFuchsia700 = Color(0x99ab03ba)
|
||||
val colorAlphaFuchsia800 = Color(0xc9a402b6)
|
||||
val colorAlphaFuchsia900 = Color(0xe66a0387)
|
||||
val colorAlphaGray100 = Color(0x0a366881)
|
||||
val colorAlphaGray1000 = Color(0xc202060d)
|
||||
val colorAlphaGray1100 = Color(0xcc03060c)
|
||||
val colorAlphaGray1200 = Color(0xd4020509)
|
||||
val colorAlphaGray1300 = Color(0xe000040a)
|
||||
val colorAlphaGray1400 = Color(0xe6010309)
|
||||
val colorAlphaGray200 = Color(0x0f052657)
|
||||
val colorAlphaGray300 = Color(0x1f052e61)
|
||||
val colorAlphaGray400 = Color(0x29052551)
|
||||
val colorAlphaGray500 = Color(0x42011d3c)
|
||||
val colorAlphaGray600 = Color(0x59011532)
|
||||
val colorAlphaGray700 = Color(0x7a05152e)
|
||||
val colorAlphaGray800 = Color(0x94020e22)
|
||||
val colorAlphaGray900 = Color(0xba030711)
|
||||
val colorAlphaGreen100 = Color(0x0f16bb69)
|
||||
val colorAlphaGreen1000 = Color(0xff004d36)
|
||||
val colorAlphaGreen1100 = Color(0xff00422c)
|
||||
val colorAlphaGreen1200 = Color(0xff003824)
|
||||
val colorAlphaGreen1300 = Color(0xff002916)
|
||||
val colorAlphaGreen1400 = Color(0xff002410)
|
||||
val colorAlphaGreen200 = Color(0x1c00b85c)
|
||||
val colorAlphaGreen300 = Color(0x3b07b661)
|
||||
val colorAlphaGreen400 = Color(0x5205b867)
|
||||
val colorAlphaGreen500 = Color(0x8f01b76e)
|
||||
val colorAlphaGreen600 = Color(0xf501c18a)
|
||||
val colorAlphaGreen700 = Color(0xff00a37d)
|
||||
val colorAlphaGreen800 = Color(0xff00856a)
|
||||
val colorAlphaGreen900 = Color(0xff00573e)
|
||||
val colorAlphaLime100 = Color(0x1238d40c)
|
||||
val colorAlphaLime1000 = Color(0xff005200)
|
||||
val colorAlphaLime1100 = Color(0xff004200)
|
||||
val colorAlphaLime1200 = Color(0xff003800)
|
||||
val colorAlphaLime1300 = Color(0xff002900)
|
||||
val colorAlphaLime1400 = Color(0xff002400)
|
||||
val colorAlphaLime200 = Color(0x262ecf02)
|
||||
val colorAlphaLime300 = Color(0x473ace09)
|
||||
val colorAlphaLime400 = Color(0x6637cc05)
|
||||
val colorAlphaLime500 = Color(0xb540ce03)
|
||||
val colorAlphaLime600 = Color(0xdb39bd00)
|
||||
val colorAlphaLime700 = Color(0xe6249801)
|
||||
val colorAlphaLime800 = Color(0xf2127e02)
|
||||
val colorAlphaLime900 = Color(0xff005700)
|
||||
val colorAlphaOrange100 = Color(0x12ff7d1a)
|
||||
val colorAlphaOrange1000 = Color(0xff8a0900)
|
||||
val colorAlphaOrange1100 = Color(0xff750000)
|
||||
val colorAlphaOrange1200 = Color(0xff660000)
|
||||
val colorAlphaOrange1300 = Color(0xff4d0000)
|
||||
val colorAlphaOrange1400 = Color(0xff420000)
|
||||
val colorAlphaOrange200 = Color(0x1cff6c0a)
|
||||
val colorAlphaOrange300 = Color(0x38ff6d05)
|
||||
val colorAlphaOrange400 = Color(0x4dff700a)
|
||||
val colorAlphaOrange500 = Color(0x85fc6f03)
|
||||
val colorAlphaOrange600 = Color(0xbff56e00)
|
||||
val colorAlphaOrange700 = Color(0xffe06c00)
|
||||
val colorAlphaOrange800 = Color(0xffc24e00)
|
||||
val colorAlphaOrange900 = Color(0xff941600)
|
||||
val colorAlphaPink100 = Color(0x0aff0537)
|
||||
val colorAlphaPink1000 = Color(0xfa830242)
|
||||
val colorAlphaPink1100 = Color(0xff70003a)
|
||||
val colorAlphaPink1200 = Color(0xff660030)
|
||||
val colorAlphaPink1300 = Color(0xff4d001d)
|
||||
val colorAlphaPink1400 = Color(0xff420015)
|
||||
val colorAlphaPink200 = Color(0x14ff1447)
|
||||
val colorAlphaPink300 = Color(0x21ff0037)
|
||||
val colorAlphaPink400 = Color(0x30ff0a3f)
|
||||
val colorAlphaPink500 = Color(0x54ff053f)
|
||||
val colorAlphaPink600 = Color(0x78ff0040)
|
||||
val colorAlphaPink700 = Color(0xb3f70250)
|
||||
val colorAlphaPink800 = Color(0xf5de0265)
|
||||
val colorAlphaPink900 = Color(0xf78f0045)
|
||||
val colorAlphaPurple100 = Color(0x0a5338ff)
|
||||
val colorAlphaPurple1000 = Color(0xf24600b8)
|
||||
val colorAlphaPurple1100 = Color(0xff4300a8)
|
||||
val colorAlphaPurple1200 = Color(0xff360094)
|
||||
val colorAlphaPurple1300 = Color(0xff240070)
|
||||
val colorAlphaPurple1400 = Color(0xff1f0061)
|
||||
val colorAlphaPurple200 = Color(0x12381aff)
|
||||
val colorAlphaPurple300 = Color(0x1f2f0fff)
|
||||
val colorAlphaPurple400 = Color(0x292b0aff)
|
||||
val colorAlphaPurple500 = Color(0x452b05ff)
|
||||
val colorAlphaPurple600 = Color(0x613305ff)
|
||||
val colorAlphaPurple700 = Color(0x873c00ff)
|
||||
val colorAlphaPurple800 = Color(0xb34c02f7)
|
||||
val colorAlphaPurple900 = Color(0xe64503bf)
|
||||
val colorAlphaRed100 = Color(0x0aff391f)
|
||||
val colorAlphaRed1000 = Color(0xff8a000b)
|
||||
val colorAlphaRed1100 = Color(0xff750000)
|
||||
val colorAlphaRed1200 = Color(0xff660000)
|
||||
val colorAlphaRed1300 = Color(0xff4d0000)
|
||||
val colorAlphaRed1400 = Color(0xff420000)
|
||||
val colorAlphaRed200 = Color(0x14ff3814)
|
||||
val colorAlphaRed300 = Color(0x26ff2b0a)
|
||||
val colorAlphaRed400 = Color(0x36ff2605)
|
||||
val colorAlphaRed500 = Color(0x5cff2205)
|
||||
val colorAlphaRed600 = Color(0x80ff1a05)
|
||||
val colorAlphaRed700 = Color(0xb8ff0900)
|
||||
val colorAlphaRed800 = Color(0xe3de0211)
|
||||
val colorAlphaRed900 = Color(0xff99001a)
|
||||
val colorAlphaYellow100 = Color(0x21ffc70f)
|
||||
val colorAlphaYellow1000 = Color(0xff703200)
|
||||
val colorAlphaYellow1100 = Color(0xff612700)
|
||||
val colorAlphaYellow1200 = Color(0xff571d00)
|
||||
val colorAlphaYellow1300 = Color(0xff470c00)
|
||||
val colorAlphaYellow1400 = Color(0xff3d0500)
|
||||
val colorAlphaYellow200 = Color(0x40ffc905)
|
||||
val colorAlphaYellow300 = Color(0x7dffc905)
|
||||
val colorAlphaYellow400 = Color(0xb8ffcc00)
|
||||
val colorAlphaYellow500 = Color(0xfff0bc00)
|
||||
val colorAlphaYellow600 = Color(0xffe0a500)
|
||||
val colorAlphaYellow700 = Color(0xffc28100)
|
||||
val colorAlphaYellow800 = Color(0xffa86500)
|
||||
val colorAlphaYellow900 = Color(0xff753700)
|
||||
val colorBlue100 = Color(0xfff4f8ff)
|
||||
val colorBlue1000 = Color(0xff053b9a)
|
||||
val colorBlue1100 = Color(0xff043088)
|
||||
val colorBlue1200 = Color(0xff03277b)
|
||||
val colorBlue1300 = Color(0xff001569)
|
||||
val colorBlue1400 = Color(0xff000c63)
|
||||
val colorBlue200 = Color(0xffe9f2ff)
|
||||
val colorBlue300 = Color(0xffd8e7fe)
|
||||
val colorBlue400 = Color(0xffc8ddfd)
|
||||
val colorBlue500 = Color(0xffa3c6fa)
|
||||
val colorBlue600 = Color(0xff7eaff6)
|
||||
val colorBlue700 = Color(0xff4a8ef0)
|
||||
val colorBlue800 = Color(0xff046ee8)
|
||||
val colorBlue900 = Color(0xff0543a7)
|
||||
val colorCyan100 = Color(0xfff1fafb)
|
||||
val colorCyan1000 = Color(0xff00447b)
|
||||
val colorCyan1100 = Color(0xff00376e)
|
||||
val colorCyan1200 = Color(0xff002e64)
|
||||
val colorCyan1300 = Color(0xff001e53)
|
||||
val colorCyan1400 = Color(0xff00174d)
|
||||
val colorCyan200 = Color(0xffe3f5f8)
|
||||
val colorCyan300 = Color(0xffc7ecf0)
|
||||
val colorCyan400 = Color(0xffb1e4eb)
|
||||
val colorCyan500 = Color(0xff76d1dd)
|
||||
val colorCyan600 = Color(0xff15becf)
|
||||
val colorCyan700 = Color(0xff009ac3)
|
||||
val colorCyan800 = Color(0xff007ab3)
|
||||
val colorCyan900 = Color(0xff004c84)
|
||||
val colorFuchsia100 = Color(0xfffcf5fd)
|
||||
val colorFuchsia1000 = Color(0xff6c1785)
|
||||
val colorFuchsia1100 = Color(0xff5c0f76)
|
||||
val colorFuchsia1200 = Color(0xff52026c)
|
||||
val colorFuchsia1300 = Color(0xff3b0053)
|
||||
val colorFuchsia1400 = Color(0xff32004a)
|
||||
val colorFuchsia200 = Color(0xfffaeefb)
|
||||
val colorFuchsia300 = Color(0xfff6dff7)
|
||||
val colorFuchsia400 = Color(0xfff1d2f3)
|
||||
val colorFuchsia500 = Color(0xffe7b2ea)
|
||||
val colorFuchsia600 = Color(0xffdb93e1)
|
||||
val colorFuchsia700 = Color(0xffcb68d4)
|
||||
val colorFuchsia800 = Color(0xffb937c6)
|
||||
val colorFuchsia900 = Color(0xff781c90)
|
||||
val colorGray100 = Color(0xfff7f9fa)
|
||||
val colorGray1000 = Color(0xff3f4248)
|
||||
val colorGray1100 = Color(0xff35383d)
|
||||
val colorGray1200 = Color(0xff2d3034)
|
||||
val colorGray1300 = Color(0xff1f2126)
|
||||
val colorGray1400 = Color(0xff1a1c21)
|
||||
val colorGray200 = Color(0xfff0f2f5)
|
||||
val colorGray300 = Color(0xffe1e6ec)
|
||||
val colorGray400 = Color(0xffd7dce3)
|
||||
val colorGray500 = Color(0xffbdc4cc)
|
||||
val colorGray600 = Color(0xffa6adb7)
|
||||
val colorGray700 = Color(0xff878f9b)
|
||||
val colorGray800 = Color(0xff6c737e)
|
||||
val colorGray900 = Color(0xff474a51)
|
||||
val colorGreen100 = Color(0xfff1fbf6)
|
||||
val colorGreen1000 = Color(0xff004d36)
|
||||
val colorGreen1100 = Color(0xff00402b)
|
||||
val colorGreen1200 = Color(0xff003723)
|
||||
val colorGreen1300 = Color(0xff002715)
|
||||
val colorGreen1400 = Color(0xff00210f)
|
||||
val colorGreen200 = Color(0xffe3f7ed)
|
||||
val colorGreen300 = Color(0xffc6eedb)
|
||||
val colorGreen400 = Color(0xffafe8ce)
|
||||
val colorGreen500 = Color(0xff71d7ae)
|
||||
val colorGreen600 = Color(0xff0bc491)
|
||||
val colorGreen700 = Color(0xff00a27c)
|
||||
val colorGreen800 = Color(0xff008268)
|
||||
val colorGreen900 = Color(0xff00553d)
|
||||
val colorLime100 = Color(0xfff1fcee)
|
||||
val colorLime1000 = Color(0xff004f00)
|
||||
val colorLime1100 = Color(0xff004200)
|
||||
val colorLime1200 = Color(0xff003900)
|
||||
val colorLime1300 = Color(0xff002900)
|
||||
val colorLime1400 = Color(0xff002200)
|
||||
val colorLime200 = Color(0xffe0f8d9)
|
||||
val colorLime300 = Color(0xffc8f1ba)
|
||||
val colorLime400 = Color(0xffafeb9b)
|
||||
val colorLime500 = Color(0xff76db4c)
|
||||
val colorLime600 = Color(0xff54c424)
|
||||
val colorLime700 = Color(0xff3aa31a)
|
||||
val colorLime800 = Color(0xff1f850f)
|
||||
val colorLime900 = Color(0xff005700)
|
||||
val colorOrange100 = Color(0xfffff6ef)
|
||||
val colorOrange1000 = Color(0xff890800)
|
||||
val colorOrange1100 = Color(0xff770000)
|
||||
val colorOrange1200 = Color(0xff670000)
|
||||
val colorOrange1300 = Color(0xff4c0000)
|
||||
val colorOrange1400 = Color(0xff420000)
|
||||
val colorOrange200 = Color(0xffffefe4)
|
||||
val colorOrange300 = Color(0xffffdfc8)
|
||||
val colorOrange400 = Color(0xffffd4b5)
|
||||
val colorOrange500 = Color(0xfffdb37c)
|
||||
val colorOrange600 = Color(0xfff89440)
|
||||
val colorOrange700 = Color(0xffe26e00)
|
||||
val colorOrange800 = Color(0xffc44d00)
|
||||
val colorOrange900 = Color(0xff931700)
|
||||
val colorPink100 = Color(0xfffff5f7)
|
||||
val colorPink1000 = Color(0xff840745)
|
||||
val colorPink1100 = Color(0xff72003a)
|
||||
val colorPink1200 = Color(0xff64002f)
|
||||
val colorPink1300 = Color(0xff4a001c)
|
||||
val colorPink1400 = Color(0xff410015)
|
||||
val colorPink200 = Color(0xffffecf0)
|
||||
val colorPink300 = Color(0xffffdee5)
|
||||
val colorPink400 = Color(0xffffd0da)
|
||||
val colorPink500 = Color(0xffffadc0)
|
||||
val colorPink600 = Color(0xffff88a6)
|
||||
val colorPink700 = Color(0xfff94e84)
|
||||
val colorPink800 = Color(0xffe00c6a)
|
||||
val colorPink900 = Color(0xff92084b)
|
||||
val colorPurple100 = Color(0xfff8f7ff)
|
||||
val colorPurple1000 = Color(0xff4f0dba)
|
||||
val colorPurple1100 = Color(0xff4200a6)
|
||||
val colorPurple1200 = Color(0xff360094)
|
||||
val colorPurple1300 = Color(0xff240070)
|
||||
val colorPurple1400 = Color(0xff1f0062)
|
||||
val colorPurple200 = Color(0xfff1efff)
|
||||
val colorPurple300 = Color(0xffe6e2ff)
|
||||
val colorPurple400 = Color(0xffddd8ff)
|
||||
val colorPurple500 = Color(0xffc5bbff)
|
||||
val colorPurple600 = Color(0xffb1a0ff)
|
||||
val colorPurple700 = Color(0xff9778fe)
|
||||
val colorPurple800 = Color(0xff824ef9)
|
||||
val colorPurple900 = Color(0xff571cc4)
|
||||
val colorRed100 = Color(0xfffff7f6)
|
||||
val colorRed1000 = Color(0xff8b000c)
|
||||
val colorRed1100 = Color(0xff770000)
|
||||
val colorRed1200 = Color(0xff670000)
|
||||
val colorRed1300 = Color(0xff4c0000)
|
||||
val colorRed1400 = Color(0xff420000)
|
||||
val colorRed200 = Color(0xffffefec)
|
||||
val colorRed300 = Color(0xffffdfda)
|
||||
val colorRed400 = Color(0xffffd1ca)
|
||||
val colorRed500 = Color(0xffffafa5)
|
||||
val colorRed600 = Color(0xffff8c81)
|
||||
val colorRed700 = Color(0xffff4e49)
|
||||
val colorRed800 = Color(0xffe11e2a)
|
||||
val colorRed900 = Color(0xff99001a)
|
||||
val colorThemeBg = Color(0xffffffff)
|
||||
val colorTransparent = Color(0x00000000)
|
||||
val colorYellow100 = Color(0xfffff8e0)
|
||||
val colorYellow1000 = Color(0xff6e3100)
|
||||
val colorYellow1100 = Color(0xff612600)
|
||||
val colorYellow1200 = Color(0xff571d00)
|
||||
val colorYellow1300 = Color(0xff450c00)
|
||||
val colorYellow1400 = Color(0xff3f0500)
|
||||
val colorYellow200 = Color(0xfffff2c1)
|
||||
val colorYellow300 = Color(0xffffe484)
|
||||
val colorYellow400 = Color(0xffffda49)
|
||||
val colorYellow500 = Color(0xfff1bd00)
|
||||
val colorYellow600 = Color(0xffdea200)
|
||||
val colorYellow700 = Color(0xffc38100)
|
||||
val colorYellow800 = Color(0xffa76300)
|
||||
val colorYellow900 = Color(0xff773800)
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.compound.utils
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
||||
/**
|
||||
* Convert color to Human Readable Format.
|
||||
*/
|
||||
fun Color.toHrf(): String {
|
||||
return "0x" + value.toString(16).take(8).uppercase()
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M12 4.24l-6 3V12c0 5.16 4.24 7.25 6 7.9 1.76-0.65 6-2.74 6-7.9V7.24z m-0.9-1.8a2 2 0 0 1 1.8 0l6 3a2 2 0 0 1 1.1 1.8V12c0 6.74-5.77 9.25-7.51 9.85-0.32 0.1-0.66 0.1-0.98 0C9.77 21.25 4 18.75 4 12V7.24a2 2 0 0 1 1.1-1.8z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 4.5a1 1 0 0 1 1 1v10.59l4.3-4.3a1 1 0 0 1 1.4 1.42l-6 6a1 1 0 0 1-1.4 0l-6-6a1 1 0 1 1 1.4-1.42l4.3 4.3V5.5a1 1 0 0 1 1-1"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12.2 5.3a1 1 0 0 1 0 1.4L7.92 11H18.5a1 1 0 1 1 0 2H7.91l4.3 4.3a1 1 0 0 1-1.42 1.4l-6-6a1 1 0 0 1 0-1.4l6-6a1 1 0 0 1 1.42 0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M11.8 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4-1.4l4.29-4.3H5.5a1 1 0 1 1 0-2h10.59l-4.3-4.3a1 1 0 0 1 0-1.4"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 19.5a1 1 0 0 0 1-1V7.91l4.3 4.3a1 1 0 0 0 1.4-1.42l-6-6a1 1 0 0 0-1.4 0l-6 6a1 1 0 1 0 1.4 1.42L11 7.9V18.5a1 1 0 0 0 1 1"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M17.92 6.62A1 1 0 0 1 18 7v8a1 1 0 1 1-2 0V9.41l-8.3 8.3a1 1 0 0 1-1.4-1.42L14.58 8H9a1 1 0 0 1 0-2h8a1 1 0 0 1 0.92 0.62"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 18.16q0.48 0 0.8-0.33 0.32-0.32 0.32-0.8h-2.24q0 0.48 0.32 0.8 0.32 0.33 0.8 0.33m-3.94-1.69h7.88a0.54 0.54 0 0 0 0.4-0.17 0.54 0.54 0 0 0 0-0.79 0.54 0.54 0 0 0-0.4-0.17h-0.57V12.7q0-1.24-0.67-2.25a3 3 0 0 0-1.86-1.3V8.88a0.82 0.82 0 0 0-0.24-0.6 0.82 0.82 0 0 0-0.6-0.24 0.82 0.82 0 0 0-0.84 0.84v0.29a3 3 0 0 0-1.86 1.29 3.97 3.97 0 0 0-0.68 2.25v2.64H8.06a0.54 0.54 0 0 0-0.4 0.17 0.54 0.54 0 0 0 0 0.79 0.54 0.54 0 0 0 0.4 0.17M3 19.84V9.72Q3 9.18 3.24 8.7 3.48 8.23 3.9 7.9l6.75-5.05q0.31-0.23 0.65-0.34Q11.63 2.4 12 2.4q0.37 0 0.7 0.1 0.34 0.12 0.65 0.35l6.75 5.06q0.42 0.3 0.66 0.79Q21 9.19 21 9.72v10.13q0 0.92-0.66 1.58t-1.59 0.66H5.25q-0.93 0-1.59-0.66T3 19.84m2.25 0h13.5V9.72L12 4.66 5.25 9.72z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 17.75q0.48 0 0.8-0.32 0.32-0.33 0.32-0.8h-2.24q0 0.47 0.32 0.8 0.32 0.32 0.8 0.32m-3.94-1.69h7.88a0.54 0.54 0 0 0 0.4-0.17 0.54 0.54 0 0 0 0-0.79 0.54 0.54 0 0 0-0.4-0.16h-0.57v-2.65q0-1.23-0.67-2.25a3 3 0 0 0-1.86-1.29V8.47a0.82 0.82 0 0 0-0.24-0.6 0.82 0.82 0 0 0-0.6-0.25 0.82 0.82 0 0 0-0.84 0.85v0.28a3 3 0 0 0-1.86 1.3 3.97 3.97 0 0 0-0.68 2.24v2.65H8.06a0.54 0.54 0 0 0-0.4 0.17 0.54 0.54 0 0 0 0 0.78 0.54 0.54 0 0 0 0.4 0.17M3 19.44V9.3Q3 8.78 3.24 8.3T3.9 7.51l6.75-5.06q0.31-0.23 0.65-0.34Q11.63 2 12 2q0.37 0 0.7 0.11 0.34 0.12 0.65 0.34l6.75 5.06q0.42 0.31 0.66 0.79Q21 8.78 21 9.31v10.13q0 0.93-0.66 1.59t-1.59 0.66H5.25q-0.93 0-1.59-0.66T3 19.43"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M11.5 22q-2.3 0-3.9-1.6T6 16.5V6q0-1.65 1.18-2.83T10 2t2.83 1.18T14 6v9.5q0 1.05-0.72 1.77T11.5 18t-1.77-0.72T9 15.5V6.75A0.73 0.73 0 0 1 9.75 6a0.73 0.73 0 0 1 0.75 0.75v8.75q0 0.42 0.29 0.71t0.71 0.29q0.42 0 0.71-0.29a0.97 0.97 0 0 0 0.29-0.71V6q0-1.05-0.72-1.77T10 3.5 8.23 4.22 7.5 6v10.5q0 1.65 1.18 2.83t2.82 1.17 2.83-1.18 1.17-2.82V6.75A0.73 0.73 0 0 1 16.25 6 0.73 0.73 0 0 1 17 6.75v9.75q0 2.3-1.6 3.9T11.5 22"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 3a1 1 0 0 1 1 1v16a1 1 0 1 1-2 0V4a1 1 0 0 1 1-1m4 3a1 1 0 0 1 1 1v10a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1m5 4a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0zM4 9a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1m5-2a1 1 0 0 0-2 0v10a1 1 0 1 0 2 0z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 22a9.7 9.7 0 0 1-3.9-0.79 10.1 10.1 0 0 1-3.17-2.14q-1.35-1.35-2.14-3.17A9.7 9.7 0 0 1 2 12q0-2.08 0.79-3.9a10.1 10.1 0 0 1 2.14-3.17Q6.28 3.57 8.1 2.78A9.7 9.7 0 0 1 12 2q2.08 0 3.9 0.79a10.1 10.1 0 0 1 3.17 2.14q1.35 1.35 2.14 3.17A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-0.79 3.9 10.1 10.1 0 0 1-2.14 3.17q-1.35 1.35-3.17 2.14A9.7 9.7 0 0 1 12 22m0-2q3.35 0 5.67-2.33T20 12q0-1.35-0.44-2.6a8 8 0 0 0-1.26-2.3L7.1 18.3q1.05 0.82 2.3 1.26T12 20m-6.3-3.1L16.9 5.7a8 8 0 0 0-2.3-1.26A7.8 7.8 0 0 0 12 4Q8.65 4 6.33 6.33T4 12q0 1.35 0.44 2.6a8 8 0 0 0 1.26 2.3"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M8.8 19q-0.82 0-1.41-0.59A1.93 1.93 0 0 1 6.8 17V7q0-0.82 0.59-1.41A1.93 1.93 0 0 1 8.8 5h3.52q1.63 0 3 1t1.38 2.78q0 1.27-0.57 1.96-0.58 0.68-1.08 0.98 0.63 0.28 1.39 1.03Q17.2 13.5 17.2 15q0 2.22-1.62 3.11Q13.95 19 12.53 19z m1.02-2.8h2.6q1.2 0 1.47-0.61 0.26-0.62 0.26-0.89 0-0.28-0.26-0.89-0.27-0.61-1.54-0.61H9.82z m0-5.7h2.33q0.83 0 1.2-0.42a1.4 1.4 0 0 0 0.38-0.96q0-0.6-0.43-0.97t-1.1-0.38H9.82z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M5 22q-0.82 0-1.41-0.59A1.93 1.93 0 0 1 3 20V6q0-0.82 0.59-1.41A1.93 1.93 0 0 1 5 4h1V2h2v2h8V2h2v2h1q0.82 0 1.41 0.59Q21 5.17 21 6v14q0 0.82-0.59 1.41A1.93 1.93 0 0 1 19 22z m0-2h14V10H5zM5 8h14V6H5z m7 6a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 11 13q0-0.42 0.29-0.71A0.97 0.97 0 0 1 12 12q0.42 0 0.71 0.29T13 13q0 0.42-0.29 0.71A0.97 0.97 0 0 1 12 14m-4 0a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 7 13q0-0.42 0.29-0.71A0.97 0.97 0 0 1 8 12q0.42 0 0.71 0.29T9 13t-0.29 0.71A0.97 0.97 0 0 1 8 14m8 0a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 15 13q0-0.42 0.29-0.71A0.97 0.97 0 0 1 16 12q0.42 0 0.71 0.29T17 13q0 0.42-0.29 0.71A0.97 0.97 0 0 1 16 14m-4 4a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 11 17q0-0.42 0.29-0.71A0.97 0.97 0 0 1 12 16q0.42 0 0.71 0.29T13 17q0 0.42-0.29 0.71A0.97 0.97 0 0 1 12 18m-4 0a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 7 17q0-0.42 0.29-0.71A0.97 0.97 0 0 1 8 16q0.42 0 0.71 0.29T9 17q0 0.42-0.29 0.71A0.97 0.97 0 0 1 8 18m8 0a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 15 17q0-0.42 0.29-0.71A0.97 0.97 0 0 1 16 16q0.42 0 0.71 0.29T17 17q0 0.42-0.29 0.71A0.97 0.97 0 0 1 16 18"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M8 17q0.42 0 0.71-0.29A0.97 0.97 0 0 0 9 16v-5a0.97 0.97 0 0 0-0.29-0.71A0.97 0.97 0 0 0 8 10a0.97 0.97 0 0 0-0.71 0.29A0.97 0.97 0 0 0 7 11v5q0 0.42 0.29 0.71T8 17m4 0q0.42 0 0.71-0.29A0.97 0.97 0 0 0 13 16V8a0.97 0.97 0 0 0-0.29-0.71A0.97 0.97 0 0 0 12 7a0.97 0.97 0 0 0-0.71 0.29A0.97 0.97 0 0 0 11 8v8q0 0.42 0.29 0.71T12 17m4 0q0.42 0 0.71-0.29A0.97 0.97 0 0 0 17 16v-2a0.97 0.97 0 0 0-0.29-0.71A0.97 0.97 0 0 0 16 13a0.97 0.97 0 0 0-0.71 0.29A0.97 0.97 0 0 0 15 14v2q0 0.42 0.29 0.71T16 17M5 21q-0.82 0-1.41-0.59A1.93 1.93 0 0 1 3 19V5q0-0.82 0.59-1.41A1.93 1.93 0 0 1 5 3h14q0.82 0 1.41 0.59T21 5v14q0 0.82-0.59 1.41A1.93 1.93 0 0 1 19 21z m0-2h14V5H5z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M1.5 21.25l1.45-4.95a10.2 10.2 0 0 1-0.71-2.1A10.2 10.2 0 0 1 2 12q0-2.08 0.79-3.9a10.1 10.1 0 0 1 2.14-3.17Q6.28 3.57 8.1 2.78A9.7 9.7 0 0 1 12 2q2.08 0 3.9 0.79a10.1 10.1 0 0 1 3.17 2.14q1.35 1.35 2.14 3.17A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-0.79 3.9 10.1 10.1 0 0 1-2.14 3.17q-1.35 1.35-3.17 2.14A9.7 9.7 0 0 1 12 22q-1.13 0-2.2-0.24a10.2 10.2 0 0 1-2.1-0.71L2.75 22.5a0.94 0.94 0 0 1-1-0.25 0.94 0.94 0 0 1-0.25-1m2.45-1.2l3.2-0.95a1 1 0 0 1 0.28-0.06l0.27-0.01q0.23 0 0.44 0.03 0.21 0.04 0.41 0.14a7.4 7.4 0 0 0 1.68 0.6Q11.1 20 12 20q3.35 0 5.67-2.33T20 12t-2.33-5.67T12 4 6.33 6.33 4 12q0 0.9 0.2 1.77t0.6 1.68q0.18 0.33 0.19 0.69T4.9 16.85z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,13 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M19 6h-2a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 16 5q0-0.42 0.29-0.71A0.97 0.97 0 0 1 17 4h2V2q0-0.42 0.29-0.71A0.97 0.97 0 0 1 20 1q0.42 0 0.71 0.29Q21 1.57 21 2v2h2q0.42 0 0.71 0.29T24 5t-0.29 0.71A0.97 0.97 0 0 1 23 6h-2v2q0 0.42-0.29 0.71A0.97 0.97 0 0 1 20 9a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 19 8z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M22 17v-6.34A6 6 0 0 1 20 11v6H6a2 2 0 0 0-1.41 0.59L4 18.17V5h10c0-0.7 0.12-1.37 0.34-2H4a2 2 0 0 0-2 2v15.59c0 0.89 1.08 1.33 1.7 0.7L6 19h14a2 2 0 0 0 2-2"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,13 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12.71 16.71A0.97 0.97 0 0 1 12 17a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 11 16q0-0.42 0.29-0.71A0.97 0.97 0 0 1 12 15q0.42 0 0.71 0.29T13 16q0 0.42-0.29 0.71m0-4A0.97 0.97 0 0 1 12 13a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 11 12V8q0-0.42 0.29-0.71A0.97 0.97 0 0 1 12 7q0.42 0 0.71 0.29T13 8v4q0 0.42-0.29 0.71"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M2.95 16.3a10.2 10.2 0 0 1-0.71-2.1A10.2 10.2 0 0 1 2 12q0-2.08 0.79-3.9a10.1 10.1 0 0 1 2.14-3.17Q6.28 3.57 8.1 2.78A9.7 9.7 0 0 1 12 2q2.08 0 3.9 0.79a10.1 10.1 0 0 1 3.17 2.14q1.35 1.35 2.14 3.17A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-0.79 3.9 10.1 10.1 0 0 1-2.14 3.17q-1.35 1.35-3.17 2.14A9.7 9.7 0 0 1 12 22q-1.13 0-2.2-0.24a10.2 10.2 0 0 1-2.1-0.71L2.75 22.5a0.94 0.94 0 0 1-1-0.25 0.94 0.94 0 0 1-0.25-1z m4.2 2.8a1 1 0 0 1 0.28-0.06l0.27-0.01q0.23 0 0.44 0.03 0.21 0.04 0.41 0.14a7.4 7.4 0 0 0 1.68 0.6Q11.1 20 12 20q3.35 0 5.67-2.33T20 12t-2.33-5.67T12 4 6.33 6.33 4 12q0 0.9 0.2 1.77t0.6 1.68q0.18 0.33 0.19 0.69T4.9 16.85l-0.95 3.2z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M2.95 16.3L1.5 21.25a0.94 0.94 0 0 0 0.25 1 0.94 0.94 0 0 0 1 0.25l4.95-1.45a10.2 10.2 0 0 0 2.1 0.71Q10.87 22 12 22a9.7 9.7 0 0 0 3.9-0.79 10.1 10.1 0 0 0 3.17-2.14q1.35-1.35 2.14-3.17A9.7 9.7 0 0 0 22 12a9.7 9.7 0 0 0-0.79-3.9 10.1 10.1 0 0 0-2.14-3.17q-1.35-1.35-3.17-2.14A9.7 9.7 0 0 0 12 2a9.7 9.7 0 0 0-3.9 0.79 10.1 10.1 0 0 0-3.17 2.14Q3.57 6.28 2.78 8.1A9.7 9.7 0 0 0 2 12q0 1.13 0.24 2.2 0.23 1.08 0.71 2.1"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M9.55 17.57q-0.2 0-0.38-0.06a0.9 0.9 0 0 1-0.32-0.21L4.55 13q-0.27-0.27-0.26-0.71 0.01-0.44 0.29-0.71a0.95 0.95 0 0 1 0.7-0.28q0.42 0 0.7 0.28l3.57 3.57 8.47-8.47Q18.3 6.4 18.74 6.4q0.44 0 0.71 0.28 0.28 0.27 0.28 0.7 0 0.45-0.28 0.72l-9.2 9.2q-0.15 0.15-0.33 0.21a1.1 1.1 0 0 1-0.37 0.06"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M10.6 13.8l-2.15-2.15a0.95 0.95 0 0 0-0.7-0.28 0.95 0.95 0 0 0-0.7 0.28 0.95 0.95 0 0 0-0.28 0.7q0 0.42 0.28 0.7L9.9 15.9q0.3 0.3 0.7 0.3t0.7-0.3l5.65-5.65a0.95 0.95 0 0 0 0.28-0.7 0.95 0.95 0 0 0-0.28-0.7 0.95 0.95 0 0 0-0.7-0.28 0.95 0.95 0 0 0-0.7 0.28zM12 22a9.7 9.7 0 0 1-3.9-0.79 10.1 10.1 0 0 1-3.17-2.14q-1.35-1.35-2.14-3.17A9.7 9.7 0 0 1 2 12q0-2.08 0.79-3.9a10.1 10.1 0 0 1 2.14-3.17Q6.28 3.57 8.1 2.78A9.7 9.7 0 0 1 12 2q2.08 0 3.9 0.79a10.1 10.1 0 0 1 3.17 2.14q1.35 1.35 2.14 3.17A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-0.79 3.9 10.1 10.1 0 0 1-2.14 3.17q-1.35 1.35-3.17 2.14A9.7 9.7 0 0 1 12 22m0-2q3.35 0 5.67-2.33T20 12t-2.33-5.67T12 4 6.33 6.33 4 12t2.33 5.67T12 20"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M10.6 13.8l-2.15-2.15a0.95 0.95 0 0 0-0.7-0.28 0.95 0.95 0 0 0-0.7 0.28 0.95 0.95 0 0 0-0.28 0.7q0 0.42 0.28 0.7L9.9 15.9q0.3 0.3 0.7 0.3t0.7-0.3l5.65-5.65a0.95 0.95 0 0 0 0.28-0.7 0.95 0.95 0 0 0-0.28-0.7 0.95 0.95 0 0 0-0.7-0.28 0.95 0.95 0 0 0-0.7 0.28zM12 22a9.7 9.7 0 0 1-3.9-0.79 10.1 10.1 0 0 1-3.17-2.14q-1.35-1.35-2.14-3.17A9.7 9.7 0 0 1 2 12q0-2.08 0.79-3.9a10.1 10.1 0 0 1 2.14-3.17Q6.28 3.57 8.1 2.78A9.7 9.7 0 0 1 12 2q2.08 0 3.9 0.79a10.1 10.1 0 0 1 3.17 2.14q1.35 1.35 2.14 3.17A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-0.79 3.9 10.1 10.1 0 0 1-2.14 3.17q-1.35 1.35-3.17 2.14A9.7 9.7 0 0 1 12 22"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 14.95q-0.2 0-0.38-0.06a0.9 0.9 0 0 1-0.32-0.22l-4.6-4.6a0.95 0.95 0 0 1-0.27-0.7q0-0.42 0.27-0.7A0.95 0.95 0 0 1 7.4 8.4q0.43 0 0.7 0.28l3.9 3.9 3.9-3.9a0.95 0.95 0 0 1 0.7-0.28q0.42 0 0.7 0.28a0.95 0.95 0 0 1 0.28 0.7 0.95 0.95 0 0 1-0.28 0.7l-4.6 4.6q-0.15 0.15-0.32 0.2A1.1 1.1 0 0 1 12 14.96"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M13.3 17.3l-4.6-4.6a0.9 0.9 0 0 1-0.21-0.32A1.1 1.1 0 0 1 8.43 12q0-0.2 0.06-0.38A0.9 0.9 0 0 1 8.7 11.3l4.6-4.6A0.95 0.95 0 0 1 14 6.43q0.42 0 0.7 0.27a0.95 0.95 0 0 1 0.27 0.7 0.95 0.95 0 0 1-0.27 0.7L10.8 12l3.9 3.9a0.95 0.95 0 0 1 0.28 0.7 0.95 0.95 0 0 1-0.28 0.7 0.95 0.95 0 0 1-0.7 0.28 0.95 0.95 0 0 1-0.7-0.28"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M8.7 17.3a0.95 0.95 0 0 1-0.28-0.7q0-0.42 0.28-0.7l3.9-3.9-3.9-3.9a0.95 0.95 0 0 1-0.28-0.7q0-0.42 0.28-0.7a0.95 0.95 0 0 1 0.7-0.27q0.42 0 0.7 0.27l4.6 4.6q0.15 0.15 0.21 0.33 0.06 0.17 0.06 0.37t-0.06 0.38a0.9 0.9 0 0 1-0.21 0.32l-4.6 4.6a0.95 0.95 0 0 1-0.7 0.27 0.95 0.95 0 0 1-0.7-0.27"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 10.78l-3.9 3.9a0.95 0.95 0 0 1-0.7 0.27 0.95 0.95 0 0 1-0.7-0.27 0.95 0.95 0 0 1-0.28-0.7q0-0.43 0.28-0.7l4.6-4.6q0.15-0.15 0.32-0.22Q11.8 8.4 12 8.4t0.38 0.06a0.9 0.9 0 0 1 0.32 0.22l4.6 4.6a0.95 0.95 0 0 1 0.27 0.7 0.95 0.95 0 0 1-0.27 0.7 0.95 0.95 0 0 1-0.7 0.27 0.95 0.95 0 0 1-0.7-0.28z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M8.22 8.32Q7.96 8.05 7.96 7.6t0.28-0.72L11.3 3.8q0.15-0.15 0.33-0.21Q11.8 3.52 12 3.52t0.39 0.07 0.31 0.21l3.1 3.1q0.27 0.27 0.26 0.71-0.01 0.44-0.28 0.72T15.04 8.6t-0.72-0.27L12 6 9.65 8.35Q9.38 8.62 8.94 8.61a1 1 0 0 1-0.71-0.28M12 20.56a0.9 0.9 0 0 1-0.38-0.07 1.3 1.3 0 0 1-0.32-0.2l-3.08-3.08q-0.27-0.27-0.27-0.72t0.28-0.72 0.72-0.28 0.73 0.28L12 18.1l2.35-2.35q0.27-0.27 0.71-0.26 0.44 0.01 0.71 0.29t0.28 0.72-0.28 0.73L12.7 20.3a1.03 1.03 0 0 1-0.7 0.28"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 22a9.7 9.7 0 0 1-3.9-0.79 10.1 10.1 0 0 1-3.17-2.14q-1.35-1.35-2.14-3.17A9.7 9.7 0 0 1 2 12q0-2.08 0.79-3.9a10.1 10.1 0 0 1 2.13-3.17Q6.28 3.57 8.1 2.78A9.7 9.7 0 0 1 12 2q2.07 0 3.9 0.79a10.1 10.1 0 0 1 3.17 2.14q1.35 1.35 2.14 3.17A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-0.79 3.9 10.1 10.1 0 0 1-2.14 3.17q-1.35 1.35-3.17 2.14A9.7 9.7 0 0 1 12 22m0-2q3.35 0 5.67-2.33T20 12t-2.33-5.67T12 4 6.33 6.33 4 12t2.33 5.67T12 20"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M6.3 6.3a1 1 0 0 1 1.4 0l4.3 4.29 4.3-4.3a1 1 0 1 1 1.4 1.42L13.42 12l4.3 4.3a1 1 0 0 1-1.42 1.4L12 13.42l-4.3 4.3a1 1 0 0 1-1.4-1.42L10.58 12l-4.3-4.3a1 1 0 0 1 0-1.4"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M6.5 20q-2.27 0-3.89-1.57T1 14.57q0-1.95 1.18-3.47 1.17-1.53 3.07-1.95 0.63-2.3 2.5-3.73T12 4q2.92 0 4.96 2.04T19 11q1.73 0.2 2.86 1.49A4.4 4.4 0 0 1 23 15.5q0 1.88-1.31 3.19Q20.37 20 18.5 20z m0-2h12q1.05 0 1.77-0.72T21 15.5t-0.72-1.77T18.5 13H17v-2q0-2.08-1.46-3.54T12 6 8.46 7.46 7 11H6.5q-1.45 0-2.48 1.02A3.37 3.37 0 0 0 3 14.5q0 1.45 1.02 2.48A3.37 3.37 0 0 0 6.5 18"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M7 20a5 5 0 0 1-0.98-9.9A5.5 5.5 0 0 1 15.75 7H16a4 4 0 0 1 3.94 4.72A4.5 4.5 0 0 1 18 19.97V20z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M8.82 12l1.48-1.48q0.3-0.3 0.3-0.7t-0.3-0.7-0.71-0.3-0.72 0.3L6.7 11.3q-0.15 0.15-0.21 0.33A1.1 1.1 0 0 0 6.42 12q0 0.2 0.07 0.38A0.9 0.9 0 0 0 6.7 12.7l2.17 2.17q0.3 0.3 0.72 0.3 0.41 0 0.71-0.3t0.3-0.7-0.3-0.7z m6.35 0l-1.47 1.47q-0.3 0.3-0.3 0.7t0.3 0.7 0.71 0.3 0.71-0.3l2.18-2.17q0.15-0.15 0.21-0.33 0.06-0.17 0.06-0.37t-0.06-0.38a0.9 0.9 0 0 0-0.21-0.32l-2.18-2.17a1 1 0 0 0-1.42 0q-0.3 0.3-0.3 0.7t0.3 0.7zM5 21q-0.82 0-1.41-0.59A1.93 1.93 0 0 1 3 19V5q0-0.82 0.59-1.41A1.93 1.93 0 0 1 5 3h14q0.82 0 1.41 0.59T21 5v14q0 0.82-0.59 1.41A1.93 1.93 0 0 1 19 21z m0-2h14V5H5z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 11.03a1 1 0 0 0 0.29 0.7v0.01c0.19 0.18 0.44 0.3 0.71 0.3h8a1 1 0 0 0 0-2h-5.59L22 3.43a1 1 0 0 0-1.41-1.4L14 8.61V3.03a1 1 0 1 0-2 0zM12 13a1 1 0 0 0-0.29-0.7A1 1 0 0 0 11 12H3a1 1 0 1 0 0 2h5.59L2 20.59A1 1 0 1 0 3.41 22L10 15.41V21a1 1 0 0 0 2 0z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M14 7h5a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2z m-2-2H5v2h3a1 1 0 0 1 0 2H5v2h3a1 1 0 1 1 0 2H5v2h3a1 1 0 1 1 0 2H5v2h7z m2 4v2h2a1 1 0 1 1 0 2h-2v2h2a1 1 0 1 1 0 2h-2v2h5V9z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,14 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M16.94 2.82a2 2 0 0 1 2.82 0l1.42 1.41a2 2 0 0 1 0 2.83l-7.07 7.07c-0.2 0.2-0.42 0.35-0.66 0.44a1 1 0 0 1-0.17 0.08l-4 1.33a1 1 0 0 1-1.26-1.27l1.33-4 0.08-0.16m10.33-4.9l-6.71 6.72-1.42-1.42 6.72-6.72z"/>
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M3 5a2 2 0 0 1 2-2h6a1 1 0 1 1 0 2H5v14h14v-6a1 1 0 1 1 2 0v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M4 18q-0.82 0-1.41-0.59A1.93 1.93 0 0 1 2 16V5q0-0.82 0.59-1.41A1.93 1.93 0 0 1 4 3h16q0.82 0 1.41 0.59T22 5v11q0 0.82-0.59 1.41A1.93 1.93 0 0 1 20 18z m0-2h16V5H4z m-2 5a0.97 0.97 0 0 1-0.71-0.29A0.97 0.97 0 0 1 1 20q0-0.42 0.29-0.71A0.97 0.97 0 0 1 2 19h20q0.42 0 0.71 0.29T23 20q0 0.42-0.29 0.71A0.97 0.97 0 0 1 22 21z"/>
|
||||
</vector>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user