Start impl base news ui
This commit is contained in:
@@ -44,7 +44,7 @@ dependencies {
|
||||
|
||||
|
||||
// Compose UI
|
||||
implementation(platform(libs.compose.bom))
|
||||
implementation(platform(libs.androidx.compose.bom))
|
||||
implementation(libs.compose.runtime)
|
||||
implementation(libs.compose.ui)
|
||||
implementation(libs.compose.foundation)
|
||||
|
||||
@@ -3,5 +3,5 @@ package ru.fincode.tsudesk.core.ui.theme
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
||||
// Brand (ТулГУ / TSUDesk)
|
||||
val BrandRed = Color(0xFF7C1D1D) // замени на точный бордовый
|
||||
val BrandRed = Color(0xFF8B1A1A)
|
||||
val OnBrand = Color(0xFFFFFFFF)
|
||||
@@ -4,19 +4,23 @@ import androidx.compose.material3.darkColorScheme
|
||||
import androidx.compose.material3.lightColorScheme
|
||||
|
||||
val LightColorScheme = lightColorScheme(
|
||||
primary = androidx.compose.ui.graphics.Color(0xFF6750A4),
|
||||
onPrimary = androidx.compose.ui.graphics.Color.White,
|
||||
primary = BrandRed,
|
||||
onPrimary = OnBrand,
|
||||
|
||||
secondary = androidx.compose.ui.graphics.Color(0xFF625B71),
|
||||
onSecondary = androidx.compose.ui.graphics.Color.White,
|
||||
|
||||
tertiary = androidx.compose.ui.graphics.Color(0xFF7D5260),
|
||||
onTertiary = androidx.compose.ui.graphics.Color.White,
|
||||
)
|
||||
|
||||
val DarkColorScheme = darkColorScheme(
|
||||
primary = androidx.compose.ui.graphics.Color(0xFFD0BCFF),
|
||||
onPrimary = androidx.compose.ui.graphics.Color(0xFF381E72),
|
||||
primary = BrandRed,
|
||||
onPrimary = OnBrand,
|
||||
|
||||
secondary = androidx.compose.ui.graphics.Color(0xFFCCC2DC),
|
||||
onSecondary = androidx.compose.ui.graphics.Color(0xFF332D41),
|
||||
|
||||
tertiary = androidx.compose.ui.graphics.Color(0xFFEFB8C8),
|
||||
onTertiary = androidx.compose.ui.graphics.Color(0xFF492532),
|
||||
)
|
||||
@@ -7,6 +7,9 @@ data class ExtendedColors(
|
||||
val brand: Color,
|
||||
val onBrand: Color,
|
||||
val brandSoft: Color,
|
||||
val brandGradientStart: Color,
|
||||
val brandGradientEnd: Color,
|
||||
val borderSoft: Color,
|
||||
)
|
||||
|
||||
val LocalExtendedColors = staticCompositionLocalOf {
|
||||
@@ -14,5 +17,8 @@ val LocalExtendedColors = staticCompositionLocalOf {
|
||||
brand = Color.Unspecified,
|
||||
onBrand = Color.Unspecified,
|
||||
brandSoft = Color.Unspecified,
|
||||
brandGradientStart = Color.Unspecified,
|
||||
brandGradientEnd = Color.Unspecified,
|
||||
borderSoft = Color.Unspecified,
|
||||
)
|
||||
}
|
||||
@@ -16,6 +16,12 @@ fun TSUDeskTheme(
|
||||
brand = BrandRed,
|
||||
onBrand = OnBrand,
|
||||
brandSoft = BrandRed.copy(alpha = 0.12f),
|
||||
brandGradientStart = BrandRed.copy(alpha = 0.95f),
|
||||
brandGradientEnd = BrandRed,
|
||||
borderSoft = if (darkTheme)
|
||||
scheme.outline.copy(alpha = 0.4f)
|
||||
else
|
||||
scheme.outline.copy(alpha = 0.2f),
|
||||
)
|
||||
|
||||
CompositionLocalProvider(LocalExtendedColors provides extended) {
|
||||
|
||||
Reference in New Issue
Block a user