Change theme color (#44)

This commit is contained in:
timklge 2025-02-22 21:12:44 +01:00 committed by GitHub
parent 62701dd630
commit 82ad26889e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -4,7 +4,6 @@ import android.content.Context
import android.os.Bundle import android.os.Bundle
import androidx.activity.ComponentActivity import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent import androidx.activity.compose.setContent
import androidx.compose.material3.Text
import androidx.datastore.core.DataStore import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.preferencesDataStore import androidx.datastore.preferences.preferencesDataStore

View File

@ -1,13 +1,22 @@
package de.timklge.karooheadwind.theme package de.timklge.karooheadwind.theme
import androidx.compose.material3.MaterialTheme import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
@Composable @Composable
fun AppTheme( fun AppTheme(
content: @Composable () -> Unit, content: @Composable () -> Unit,
) { ) {
val scheme = lightColorScheme(
primary = Color(0xFF214559),
secondary = Color(0xFF636363),
tertiary = Color(0xFFFEF69A),
)
MaterialTheme( MaterialTheme(
content = content, content = content,
colorScheme = scheme
) )
} }