diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index 7bbf9a201..54c048984 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -3,10 +3,10 @@ package="com.adevinta.android.barista.sample" > - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - + - + @@ -77,9 +71,9 @@ /> - - - + + + - - - - + + + + + - \ No newline at end of file + diff --git a/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Color.kt b/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Color.kt deleted file mode 100644 index 469de4ae3..000000000 --- a/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Color.kt +++ /dev/null @@ -1,8 +0,0 @@ -package com.adevinta.android.barista.sample.ui.theme - -import androidx.compose.ui.graphics.Color - -val Purple200 = Color(0xFFBB86FC) -val Purple500 = Color(0xFF6200EE) -val Purple700 = Color(0xFF3700B3) -val Teal200 = Color(0xFF03DAC5) \ No newline at end of file diff --git a/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Shape.kt b/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Shape.kt deleted file mode 100644 index f1b98e070..000000000 --- a/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Shape.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.adevinta.android.barista.sample.ui.theme - -import androidx.compose.foundation.shape.RoundedCornerShape -import androidx.compose.material.Shapes -import androidx.compose.ui.unit.dp - -val Shapes = Shapes( - small = RoundedCornerShape(4.dp), - medium = RoundedCornerShape(4.dp), - large = RoundedCornerShape(0.dp) -) \ No newline at end of file diff --git a/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Theme.kt b/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Theme.kt deleted file mode 100644 index 8730a2457..000000000 --- a/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Theme.kt +++ /dev/null @@ -1,44 +0,0 @@ -package com.adevinta.android.barista.sample.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 - - /* Other default colors to override - background = Color.White, - surface = Color.White, - onPrimary = Color.White, - onSecondary = Color.Black, - onBackground = Color.Black, - onSurface = Color.Black, - */ -) - -@Composable -fun BaristaTheme(darkTheme: Boolean = isSystemInDarkTheme(), content: @Composable() () -> Unit) { - val colors = if (darkTheme) { - DarkColorPalette - } else { - LightColorPalette - } - - MaterialTheme( - colors = colors, - typography = Typography, - shapes = Shapes, - content = content - ) -} \ No newline at end of file diff --git a/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Type.kt b/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Type.kt deleted file mode 100644 index 6916afa5b..000000000 --- a/sample/src/main/java/com/adevinta/android/barista/sample/ui/theme/Type.kt +++ /dev/null @@ -1,28 +0,0 @@ -package com.adevinta.android.barista.sample.ui.theme - -import androidx.compose.material.Typography -import androidx.compose.ui.text.TextStyle -import androidx.compose.ui.text.font.FontFamily -import androidx.compose.ui.text.font.FontWeight -import androidx.compose.ui.unit.sp - -// Set of Material typography styles to start with -val Typography = Typography( - body1 = TextStyle( - fontFamily = FontFamily.Default, - fontWeight = FontWeight.Normal, - fontSize = 16.sp - ) - /* Other default text styles to override - button = TextStyle( - fontFamily = FontFamily.Default, - fontWeight = FontWeight.W500, - fontSize = 14.sp - ), - caption = TextStyle( - fontFamily = FontFamily.Default, - fontWeight = FontWeight.Normal, - fontSize = 12.sp - ) - */ -) \ No newline at end of file diff --git a/sample/src/main/res/values/strings.xml b/sample/src/main/res/values/strings.xml index 770695d51..d00d9ec01 100644 --- a/sample/src/main/res/values/strings.xml +++ b/sample/src/main/res/values/strings.xml @@ -47,6 +47,5 @@ Image color green Text green - MainActivity diff --git a/sample/src/main/res/values/themes.xml b/sample/src/main/res/values/themes.xml deleted file mode 100644 index a794356c9..000000000 --- a/sample/src/main/res/values/themes.xml +++ /dev/null @@ -1,8 +0,0 @@ - - -