From 82ad26889e16468e6f0ce51cea0b2260114d98cc Mon Sep 17 00:00:00 2001 From: timklge <2026103+timklge@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:12:44 +0100 Subject: [PATCH] Change theme color (#44) --- .../kotlin/de/timklge/karooheadwind/MainActivity.kt | 1 - .../kotlin/de/timklge/karooheadwind/theme/Theme.kt | 11 ++++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/de/timklge/karooheadwind/MainActivity.kt b/app/src/main/kotlin/de/timklge/karooheadwind/MainActivity.kt index 45ef798..894ea51 100644 --- a/app/src/main/kotlin/de/timklge/karooheadwind/MainActivity.kt +++ b/app/src/main/kotlin/de/timklge/karooheadwind/MainActivity.kt @@ -4,7 +4,6 @@ import android.content.Context import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent -import androidx.compose.material3.Text import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.preferencesDataStore diff --git a/app/src/main/kotlin/de/timklge/karooheadwind/theme/Theme.kt b/app/src/main/kotlin/de/timklge/karooheadwind/theme/Theme.kt index 71779e1..0b8fb81 100644 --- a/app/src/main/kotlin/de/timklge/karooheadwind/theme/Theme.kt +++ b/app/src/main/kotlin/de/timklge/karooheadwind/theme/Theme.kt @@ -1,13 +1,22 @@ package de.timklge.karooheadwind.theme import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.lightColorScheme import androidx.compose.runtime.Composable +import androidx.compose.ui.graphics.Color @Composable fun AppTheme( content: @Composable () -> Unit, ) { + val scheme = lightColorScheme( + primary = Color(0xFF214559), + secondary = Color(0xFF636363), + tertiary = Color(0xFFFEF69A), + ) + MaterialTheme( content = content, + colorScheme = scheme ) -} +} \ No newline at end of file