mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 00:57:02 +05:30
Fix theme colors
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
This commit is contained in:
parent
c43e8b6b41
commit
caa2811c0a
2 changed files with 40 additions and 1 deletions
|
@ -81,7 +81,7 @@ fun TodoApp(
|
|||
) {
|
||||
IconResource(
|
||||
resourceId = R.drawable.ic_exposure_plus_1_24dp,
|
||||
tint = MaterialTheme.colors.onSurface,
|
||||
tint = MaterialTheme.colors.onSecondary,
|
||||
)
|
||||
}
|
||||
},
|
||||
|
@ -108,6 +108,7 @@ fun ItemAddDialog(
|
|||
},
|
||||
text = {
|
||||
OutlinedTextField(
|
||||
activeColor = MaterialTheme.colors.secondary,
|
||||
value = newItemName,
|
||||
onValueChange = { newItemName = it },
|
||||
label = {
|
||||
|
|
|
@ -5,6 +5,44 @@ import androidx.compose.material.MaterialTheme
|
|||
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,
|
||||
secondary = Color(0xFF3700B3),
|
||||
background = Color.White,
|
||||
surface = Color.White,
|
||||
onPrimary = Color.Black,
|
||||
onSecondary = Color.White,
|
||||
onBackground = Color.Black,
|
||||
onSurface = Color.Black,
|
||||
)
|
||||
val darkColors = darkColors(
|
||||
primary = Color(0xFF121212),
|
||||
secondary = Color(0xFFBB86FC),
|
||||
background = Color.Black,
|
||||
surface = Color(0xFF121212),
|
||||
onPrimary = Color.White,
|
||||
onSecondary = Color.White,
|
||||
onBackground = Color.White,
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue