Add Poppins, remove Inter
This commit is contained in:
parent
6a24eb017f
commit
f8e382fdeb
@ -14,6 +14,7 @@ import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.font.Font
|
||||
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.unit.sp
|
||||
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 kotlinx.coroutines.flow.map
|
||||
|
||||
val Inter = FontFamily(
|
||||
Font(R.font.inter_thin, FontWeight.Thin),
|
||||
Font(R.font.inter_extralight, FontWeight.ExtraLight),
|
||||
Font(R.font.inter_light, FontWeight.Light),
|
||||
Font(R.font.inter_regular),
|
||||
Font(R.font.inter_medium, FontWeight.Medium),
|
||||
Font(R.font.inter_semibold, FontWeight.SemiBold),
|
||||
Font(R.font.inter_bold, FontWeight.Bold),
|
||||
Font(R.font.inter_extrabold, FontWeight.ExtraBold),
|
||||
Font(R.font.inter_black, FontWeight.Black),
|
||||
val Poppins = FontFamily(
|
||||
Font(R.font.poppins100, FontWeight.Thin, FontStyle.Normal),
|
||||
Font(R.font.poppins100i, FontWeight.Thin, FontStyle.Italic),
|
||||
Font(R.font.poppins200, FontWeight.ExtraLight, FontStyle.Normal),
|
||||
Font(R.font.poppins200i, FontWeight.ExtraLight, FontStyle.Italic),
|
||||
Font(R.font.poppins300, FontWeight.Light, FontStyle.Normal),
|
||||
Font(R.font.poppins300i, FontWeight.Light, FontStyle.Italic),
|
||||
Font(R.font.poppins400, FontWeight.Normal, FontStyle.Normal),
|
||||
Font(R.font.poppins400i, FontWeight.Normal, FontStyle.Italic),
|
||||
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(
|
||||
displayLarge = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 57.sp,
|
||||
fontWeight = FontWeight.Normal,
|
||||
),
|
||||
displayMedium = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 45.sp,
|
||||
fontWeight = FontWeight.Normal,
|
||||
),
|
||||
displaySmall = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 36.sp,
|
||||
fontWeight = FontWeight.Normal,
|
||||
),
|
||||
headlineLarge = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 32.sp,
|
||||
fontWeight = FontWeight.Normal,
|
||||
),
|
||||
headlineMedium = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 28.sp,
|
||||
fontWeight = FontWeight.Normal,
|
||||
),
|
||||
headlineSmall = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 24.sp,
|
||||
fontWeight = FontWeight.Normal,
|
||||
fontWeight = FontWeight.SemiBold,
|
||||
),
|
||||
titleLarge = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 22.sp,
|
||||
fontWeight = FontWeight.Normal,
|
||||
),
|
||||
titleMedium = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 16.sp,
|
||||
fontWeight = FontWeight.Medium,
|
||||
),
|
||||
titleSmall = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 14.sp,
|
||||
fontWeight = FontWeight.Medium,
|
||||
),
|
||||
@ -95,17 +105,17 @@ val typography = Typography(
|
||||
fontWeight = FontWeight.Normal,
|
||||
),
|
||||
labelLarge = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 14.sp,
|
||||
fontWeight = FontWeight.Medium,
|
||||
),
|
||||
labelMedium = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 12.sp,
|
||||
fontWeight = FontWeight.Medium,
|
||||
),
|
||||
labelSmall = TextStyle(
|
||||
fontFamily = Inter,
|
||||
fontFamily = Poppins,
|
||||
fontSize = 11.sp,
|
||||
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.
74
ui/src/main/res/font/poppins.xml
Normal file
74
ui/src/main/res/font/poppins.xml
Normal file
@ -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>
|
||||
BIN
ui/src/main/res/font/poppins100.ttf
Normal file
BIN
ui/src/main/res/font/poppins100.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins100i.ttf
Normal file
BIN
ui/src/main/res/font/poppins100i.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins200.ttf
Normal file
BIN
ui/src/main/res/font/poppins200.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins200i.ttf
Normal file
BIN
ui/src/main/res/font/poppins200i.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins300.ttf
Normal file
BIN
ui/src/main/res/font/poppins300.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins300i.ttf
Normal file
BIN
ui/src/main/res/font/poppins300i.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins400.ttf
Normal file
BIN
ui/src/main/res/font/poppins400.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins400i.ttf
Normal file
BIN
ui/src/main/res/font/poppins400i.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins500.ttf
Normal file
BIN
ui/src/main/res/font/poppins500.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins500i.ttf
Normal file
BIN
ui/src/main/res/font/poppins500i.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins600.ttf
Normal file
BIN
ui/src/main/res/font/poppins600.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins600i.ttf
Normal file
BIN
ui/src/main/res/font/poppins600i.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins700.ttf
Normal file
BIN
ui/src/main/res/font/poppins700.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins700i.ttf
Normal file
BIN
ui/src/main/res/font/poppins700i.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins800.ttf
Normal file
BIN
ui/src/main/res/font/poppins800.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins800i.ttf
Normal file
BIN
ui/src/main/res/font/poppins800i.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins900.ttf
Normal file
BIN
ui/src/main/res/font/poppins900.ttf
Normal file
Binary file not shown.
BIN
ui/src/main/res/font/poppins900i.ttf
Normal file
BIN
ui/src/main/res/font/poppins900i.ttf
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user