summaryrefslogtreecommitdiffstats
path: root/src/main/java/ui/theme/Theme.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ui/theme/Theme.kt')
-rw-r--r--src/main/java/ui/theme/Theme.kt38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/java/ui/theme/Theme.kt b/src/main/java/ui/theme/Theme.kt
new file mode 100644
index 0000000..7740e34
--- /dev/null
+++ b/src/main/java/ui/theme/Theme.kt
@@ -0,0 +1,38 @@
+package ski.kramkow.paste.ui.theme
+
+import androidx.compose.foundation.isSystemInDarkTheme
+import androidx.compose.material.MaterialTheme
+import androidx.compose.material.darkColors
+import androidx.compose.material.lightColors
+import androidx.compose.runtime.Composable
+
+private val DarkColorPalette = darkColors(
+ primary = Purple200,
+ primaryVariant = Purple700,
+ secondary = Teal200
+)
+
+private val LightColorPalette = lightColors(
+ primary = Purple500,
+ primaryVariant = Purple700,
+ secondary = Teal200
+)
+
+@Composable
+fun PasteTheme(
+ darkTheme: Boolean = isSystemInDarkTheme(),
+ content: @Composable () -> Unit
+) {
+ val colors = if (darkTheme) {
+ DarkColorPalette
+ } else {
+ LightColorPalette
+ }
+
+ MaterialTheme(
+ colors = colors,
+ typography = Typography,
+ shapes = Shapes,
+ content = content
+ )
+}