Skip to content
Merged
Prev Previous commit
Next Next commit
Spotless fixes
  • Loading branch information
IanGClifton committed Aug 19, 2022
commit 1b349ccc880a494cff28f7bf12172291880a0f9b
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ fun SignInPreview() {
JetsurveyTheme {
SignIn {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ fun WelcomeScreenPreview() {
JetsurveyTheme {
WelcomeScreen {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ fun PhotoQuestionPreview() {
fun DateQuestionPreview() {
JetsurveyTheme {
Surface {
DateQuestion(questionId = 1, answer = null, onAction = {_, _ -> })
DateQuestion(questionId = 1, answer = null, onAction = { _, _ -> })
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ private fun TopAppBarTitle(
totalQuestionsCount: Int,
modifier: Modifier = Modifier
) {
Row (modifier = modifier){
Row(modifier = modifier) {
Text(
text = (questionIndex+1).toString(),
text = (questionIndex + 1).toString(),
style = MaterialTheme.typography.labelMedium,
color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.6f)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ val md_theme_dark_inversePrimary = Color(0xFF8307F0)
val md_theme_dark_shadow = Color(0xFF000000)
val md_theme_dark_surfaceTint = Color(0xFFD9B9FF)

val seed = Color(0xFF8100EF)
val seed = Color(0xFF8100EF)
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fun JetsurveyTheme(
md_theme_dark_surface
}

onDispose { }
onDispose { }
}

MaterialTheme(
Expand All @@ -117,4 +117,4 @@ fun JetsurveyTheme(
}

@Composable
fun surfaceIsLight(): Boolean = MaterialTheme.colorScheme.surface.luminance() > 0.5f
fun surfaceIsLight(): Boolean = MaterialTheme.colorScheme.surface.luminance() > 0.5f
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ val Typography = Typography(
lineHeight = 16.sp,
letterSpacing = 0.4.sp,
),
)
)