Add Poppins, remove Inter
This commit is contained in:
@@ -14,6 +14,7 @@ import androidx.compose.ui.platform.LocalContext
|
|||||||
import androidx.compose.ui.text.TextStyle
|
import androidx.compose.ui.text.TextStyle
|
||||||
import androidx.compose.ui.text.font.Font
|
import androidx.compose.ui.text.font.Font
|
||||||
import androidx.compose.ui.text.font.FontFamily
|
import androidx.compose.ui.text.font.FontFamily
|
||||||
|
import androidx.compose.ui.text.font.FontStyle
|
||||||
import androidx.compose.ui.text.font.FontWeight
|
import androidx.compose.ui.text.font.FontWeight
|
||||||
import androidx.compose.ui.unit.sp
|
import androidx.compose.ui.unit.sp
|
||||||
import de.mm20.launcher2.preferences.Settings.AppearanceSettings.Theme
|
import de.mm20.launcher2.preferences.Settings.AppearanceSettings.Theme
|
||||||
@@ -23,62 +24,71 @@ import de.mm20.launcher2.ui.theme.colors.toDarkColorScheme
|
|||||||
import de.mm20.launcher2.ui.theme.colors.toLightColorScheme
|
import de.mm20.launcher2.ui.theme.colors.toLightColorScheme
|
||||||
import kotlinx.coroutines.flow.map
|
import kotlinx.coroutines.flow.map
|
||||||
|
|
||||||
val Inter = FontFamily(
|
val Poppins = FontFamily(
|
||||||
Font(R.font.inter_thin, FontWeight.Thin),
|
Font(R.font.poppins100, FontWeight.Thin, FontStyle.Normal),
|
||||||
Font(R.font.inter_extralight, FontWeight.ExtraLight),
|
Font(R.font.poppins100i, FontWeight.Thin, FontStyle.Italic),
|
||||||
Font(R.font.inter_light, FontWeight.Light),
|
Font(R.font.poppins200, FontWeight.ExtraLight, FontStyle.Normal),
|
||||||
Font(R.font.inter_regular),
|
Font(R.font.poppins200i, FontWeight.ExtraLight, FontStyle.Italic),
|
||||||
Font(R.font.inter_medium, FontWeight.Medium),
|
Font(R.font.poppins300, FontWeight.Light, FontStyle.Normal),
|
||||||
Font(R.font.inter_semibold, FontWeight.SemiBold),
|
Font(R.font.poppins300i, FontWeight.Light, FontStyle.Italic),
|
||||||
Font(R.font.inter_bold, FontWeight.Bold),
|
Font(R.font.poppins400, FontWeight.Normal, FontStyle.Normal),
|
||||||
Font(R.font.inter_extrabold, FontWeight.ExtraBold),
|
Font(R.font.poppins400i, FontWeight.Normal, FontStyle.Italic),
|
||||||
Font(R.font.inter_black, FontWeight.Black),
|
Font(R.font.poppins500, FontWeight.Medium, FontStyle.Normal),
|
||||||
|
Font(R.font.poppins500i, FontWeight.Medium, FontStyle.Italic),
|
||||||
|
Font(R.font.poppins600, FontWeight.SemiBold, FontStyle.Normal),
|
||||||
|
Font(R.font.poppins600i, FontWeight.SemiBold, FontStyle.Italic),
|
||||||
|
Font(R.font.poppins700, FontWeight.Bold, FontStyle.Normal),
|
||||||
|
Font(R.font.poppins700i, FontWeight.Bold, FontStyle.Italic),
|
||||||
|
Font(R.font.poppins800, FontWeight.ExtraBold, FontStyle.Normal),
|
||||||
|
Font(R.font.poppins800i, FontWeight.ExtraBold, FontStyle.Italic),
|
||||||
|
Font(R.font.poppins900, FontWeight.Black, FontStyle.Normal),
|
||||||
|
Font(R.font.poppins900i, FontWeight.Black, FontStyle.Italic),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
val typography = Typography(
|
val typography = Typography(
|
||||||
displayLarge = TextStyle(
|
displayLarge = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 57.sp,
|
fontSize = 57.sp,
|
||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.Normal,
|
||||||
),
|
),
|
||||||
displayMedium = TextStyle(
|
displayMedium = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 45.sp,
|
fontSize = 45.sp,
|
||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.Normal,
|
||||||
),
|
),
|
||||||
displaySmall = TextStyle(
|
displaySmall = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 36.sp,
|
fontSize = 36.sp,
|
||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.Normal,
|
||||||
),
|
),
|
||||||
headlineLarge = TextStyle(
|
headlineLarge = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 32.sp,
|
fontSize = 32.sp,
|
||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.Normal,
|
||||||
),
|
),
|
||||||
headlineMedium = TextStyle(
|
headlineMedium = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 28.sp,
|
fontSize = 28.sp,
|
||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.Normal,
|
||||||
),
|
),
|
||||||
headlineSmall = TextStyle(
|
headlineSmall = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 24.sp,
|
fontSize = 24.sp,
|
||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.SemiBold,
|
||||||
),
|
),
|
||||||
titleLarge = TextStyle(
|
titleLarge = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 22.sp,
|
fontSize = 22.sp,
|
||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.Normal,
|
||||||
),
|
),
|
||||||
titleMedium = TextStyle(
|
titleMedium = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 16.sp,
|
fontSize = 16.sp,
|
||||||
fontWeight = FontWeight.Medium,
|
fontWeight = FontWeight.Medium,
|
||||||
),
|
),
|
||||||
titleSmall = TextStyle(
|
titleSmall = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 14.sp,
|
fontSize = 14.sp,
|
||||||
fontWeight = FontWeight.Medium,
|
fontWeight = FontWeight.Medium,
|
||||||
),
|
),
|
||||||
@@ -95,17 +105,17 @@ val typography = Typography(
|
|||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.Normal,
|
||||||
),
|
),
|
||||||
labelLarge = TextStyle(
|
labelLarge = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 14.sp,
|
fontSize = 14.sp,
|
||||||
fontWeight = FontWeight.Medium,
|
fontWeight = FontWeight.Medium,
|
||||||
),
|
),
|
||||||
labelMedium = TextStyle(
|
labelMedium = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 12.sp,
|
fontSize = 12.sp,
|
||||||
fontWeight = FontWeight.Medium,
|
fontWeight = FontWeight.Medium,
|
||||||
),
|
),
|
||||||
labelSmall = TextStyle(
|
labelSmall = TextStyle(
|
||||||
fontFamily = Inter,
|
fontFamily = Poppins,
|
||||||
fontSize = 11.sp,
|
fontSize = 11.sp,
|
||||||
fontWeight = FontWeight.Medium,
|
fontWeight = FontWeight.Medium,
|
||||||
),
|
),
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,74 @@
|
|||||||
|
<font-family xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins100"
|
||||||
|
app:fontStyle="normal"
|
||||||
|
app:fontWeight="100" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins100i"
|
||||||
|
app:fontStyle="italic"
|
||||||
|
app:fontWeight="100" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins200"
|
||||||
|
app:fontStyle="normal"
|
||||||
|
app:fontWeight="200" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins200i"
|
||||||
|
app:fontStyle="italic"
|
||||||
|
app:fontWeight="200" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins300"
|
||||||
|
app:fontStyle="normal"
|
||||||
|
app:fontWeight="300" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins300i"
|
||||||
|
app:fontStyle="italic"
|
||||||
|
app:fontWeight="300" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins400"
|
||||||
|
app:fontStyle="normal"
|
||||||
|
app:fontWeight="400" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins400i"
|
||||||
|
app:fontStyle="italic"
|
||||||
|
app:fontWeight="400" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins500"
|
||||||
|
app:fontStyle="normal"
|
||||||
|
app:fontWeight="500" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins500i"
|
||||||
|
app:fontStyle="italic"
|
||||||
|
app:fontWeight="500" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins600"
|
||||||
|
app:fontStyle="normal"
|
||||||
|
app:fontWeight="600" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins600i"
|
||||||
|
app:fontStyle="italic"
|
||||||
|
app:fontWeight="600" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins700"
|
||||||
|
app:fontStyle="normal"
|
||||||
|
app:fontWeight="700" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins700i"
|
||||||
|
app:fontStyle="italic"
|
||||||
|
app:fontWeight="700" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins800"
|
||||||
|
app:fontStyle="normal"
|
||||||
|
app:fontWeight="800" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins800i"
|
||||||
|
app:fontStyle="italic"
|
||||||
|
app:fontWeight="800" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins900"
|
||||||
|
app:fontStyle="normal"
|
||||||
|
app:fontWeight="900" />
|
||||||
|
<font
|
||||||
|
app:font="@font/poppins900i"
|
||||||
|
app:fontStyle="italic"
|
||||||
|
app:fontWeight="900" />
|
||||||
|
</font-family>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user