From ab5f40902f14396b8e167a623bf1c97855b376bc Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Sun, 23 Nov 2025 14:48:22 +0700 Subject: [PATCH] chore: Spotless-ified --- lawnchair/src/app/lawnchair/ui/theme/Type.kt | 41 ++++++++++++-------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/lawnchair/src/app/lawnchair/ui/theme/Type.kt b/lawnchair/src/app/lawnchair/ui/theme/Type.kt index 4d2b5adaaf..91b019df3b 100644 --- a/lawnchair/src/app/lawnchair/ui/theme/Type.kt +++ b/lawnchair/src/app/lawnchair/ui/theme/Type.kt @@ -26,38 +26,47 @@ import androidx.compose.ui.unit.sp import com.android.launcher3.R import kotlin.require -@OptIn(ExperimentalTextApi::class) /** * Google Sans Flex Normal (400), optimised for large text with grade axis put to max (100) **/ +@OptIn(ExperimentalTextApi::class) private val GoogleSansFlexDisplayNormal = FontFamily( - Font(R.font.googlesansflex_variable, variationSettings = FontVariation.Settings( - FontVariation.weight(FontWeight.Normal.weight), - FontVariation.grade(100), - googleSansFlexRound(100) - )), + Font( + R.font.googlesansflex_variable, + variationSettings = FontVariation.Settings( + FontVariation.weight(FontWeight.Normal.weight), + FontVariation.grade(100), + googleSansFlexRound(100), + ), + ), ) -@OptIn(ExperimentalTextApi::class) /** * Google Sans Flex Normal (400), optimised for small text **/ +@OptIn(ExperimentalTextApi::class) private val GoogleSansFlexNormal = FontFamily( - Font(R.font.googlesansflex_variable, variationSettings = FontVariation.Settings( - FontVariation.weight(FontWeight.Normal.weight), - googleSansFlexRound(100) - )), + Font( + R.font.googlesansflex_variable, + variationSettings = FontVariation.Settings( + FontVariation.weight(FontWeight.Normal.weight), + googleSansFlexRound(100), + ), + ), ) -@OptIn(ExperimentalTextApi::class) /** * Google Sans Flex Medium (500), optimised for small/medium text **/ +@OptIn(ExperimentalTextApi::class) private val GoogleSansFlexMedium = FontFamily( - Font(R.font.googlesansflex_variable, variationSettings = FontVariation.Settings( - FontVariation.weight(FontWeight.Medium.weight), - googleSansFlexRound(100) - )), + Font( + R.font.googlesansflex_variable, + variationSettings = FontVariation.Settings( + FontVariation.weight(FontWeight.Medium.weight), + googleSansFlexRound(100), + ), + ), ) /**