From 8df3db3607b6e60cef3bc04803328424a0f31b8f Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 8 Sep 2020 05:36:30 +0530 Subject: [PATCH] TodoTheme: remove typography customizations Signed-off-by: Harsh Shandilya --- .../java/dev/msfjarvis/todo/ui/TodoTheme.kt | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/app/src/main/java/dev/msfjarvis/todo/ui/TodoTheme.kt b/app/src/main/java/dev/msfjarvis/todo/ui/TodoTheme.kt index 7541da7d..c31dc5a7 100644 --- a/app/src/main/java/dev/msfjarvis/todo/ui/TodoTheme.kt +++ b/app/src/main/java/dev/msfjarvis/todo/ui/TodoTheme.kt @@ -2,17 +2,10 @@ package dev.msfjarvis.todo.ui import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material.MaterialTheme -import androidx.compose.material.Typography import androidx.compose.material.darkColors import androidx.compose.material.lightColors import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color -import androidx.compose.ui.text.TextStyle -import androidx.compose.ui.text.font.FontFamily -import androidx.compose.ui.text.font.FontWeight -import androidx.compose.ui.text.style.TextAlign -import androidx.compose.ui.text.style.TextIndent -import androidx.compose.ui.unit.sp val lightColors = lightColors( primary = Color.White, @@ -35,21 +28,10 @@ val darkColors = darkColors( onSurface = Color.White, ) -private val typography = Typography( - body1 = TextStyle( - fontFamily = FontFamily.Serif, - fontWeight = FontWeight.Normal, - fontSize = 20.sp, - textIndent = TextIndent(firstLine = 16.sp), - textAlign = TextAlign.Justify - ) -) - @Composable fun TodoTheme(children: @Composable () -> Unit) { MaterialTheme( colors = if (isSystemInDarkTheme()) darkColors else lightColors, content = children, - typography = typography, ) }