Приложение
This commit is contained in:
41
client-mobile/core/presentation/theme/Theme.kt
Normal file
41
client-mobile/core/presentation/theme/Theme.kt
Normal file
@@ -0,0 +1,41 @@
|
||||
package core.presentation.theme
|
||||
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.darkColorScheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
// Цвета из веб-версии (Dark Mode)
|
||||
val DarkBackground = Color(0xFF0F0F10)
|
||||
val SurfaceContainer = Color(0xFF161618)
|
||||
val Primary = Color(0xFF6366F1) // Indigo/Primary из Tailwind
|
||||
val PrimaryIndigo = Primary
|
||||
val Indigo500 = Primary
|
||||
val OnSurfaceVariant = Color(0xFF94A3B8)
|
||||
|
||||
private val DarkColors = darkColorScheme(
|
||||
primary = Primary,
|
||||
background = DarkBackground,
|
||||
surface = SurfaceContainer,
|
||||
onPrimary = Color.White,
|
||||
onBackground = Color.White,
|
||||
onSurface = Color.White,
|
||||
onSurfaceVariant = OnSurfaceVariant
|
||||
)
|
||||
|
||||
val SoftSquareShape = RoundedCornerShape(24.dp) // "Мягкий квадрат"
|
||||
|
||||
@Composable
|
||||
fun ForkMessengerTheme(content: @Composable () -> Unit) {
|
||||
MaterialTheme(
|
||||
colorScheme = DarkColors,
|
||||
shapes = MaterialTheme.shapes.copy(
|
||||
small = RoundedCornerShape(12.dp),
|
||||
medium = SoftSquareShape,
|
||||
large = RoundedCornerShape(32.dp)
|
||||
),
|
||||
content = content
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user