Remove unused font resource
This commit is contained in:
@@ -2,12 +2,10 @@ package it.vfsfitvnm.vimusic.ui.styling
|
|||||||
|
|
||||||
import androidx.compose.runtime.Immutable
|
import androidx.compose.runtime.Immutable
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.text.ExperimentalTextApi
|
|
||||||
import androidx.compose.ui.text.PlatformTextStyle
|
import androidx.compose.ui.text.PlatformTextStyle
|
||||||
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 it.vfsfitvnm.vimusic.R
|
import it.vfsfitvnm.vimusic.R
|
||||||
@@ -21,7 +19,6 @@ data class Typography(
|
|||||||
val l: TextStyle,
|
val l: TextStyle,
|
||||||
)
|
)
|
||||||
|
|
||||||
@OptIn(ExperimentalTextApi::class)
|
|
||||||
fun typographyOf(color: Color): Typography {
|
fun typographyOf(color: Color): Typography {
|
||||||
val textStyle = TextStyle(
|
val textStyle = TextStyle(
|
||||||
fontFamily = FontFamily(
|
fontFamily = FontFamily(
|
||||||
@@ -33,11 +30,6 @@ fun typographyOf(color: Color): Typography {
|
|||||||
resId = R.font.poppins_w400,
|
resId = R.font.poppins_w400,
|
||||||
weight = FontWeight.Normal
|
weight = FontWeight.Normal
|
||||||
),
|
),
|
||||||
Font(
|
|
||||||
resId = R.font.poppins_w400_italic,
|
|
||||||
weight = FontWeight.Normal,
|
|
||||||
style = FontStyle.Italic
|
|
||||||
),
|
|
||||||
Font(
|
Font(
|
||||||
resId = R.font.poppins_w500,
|
resId = R.font.poppins_w500,
|
||||||
weight = FontWeight.Medium
|
weight = FontWeight.Medium
|
||||||
|
|||||||
@@ -17,9 +17,6 @@ fun TextStyle.align(align: TextAlign) = copy(textAlign = align)
|
|||||||
|
|
||||||
fun TextStyle.color(color: Color) = copy(color = color)
|
fun TextStyle.color(color: Color) = copy(color = color)
|
||||||
|
|
||||||
inline val TextStyle.italic: TextStyle
|
|
||||||
get() = style(FontStyle.Italic)
|
|
||||||
|
|
||||||
inline val TextStyle.medium: TextStyle
|
inline val TextStyle.medium: TextStyle
|
||||||
get() = weight(FontWeight.Medium)
|
get() = weight(FontWeight.Medium)
|
||||||
|
|
||||||
@@ -36,8 +33,3 @@ inline val TextStyle.secondary: TextStyle
|
|||||||
@Composable
|
@Composable
|
||||||
@ReadOnlyComposable
|
@ReadOnlyComposable
|
||||||
get() = color(LocalAppearance.current.colorPalette.textSecondary)
|
get() = color(LocalAppearance.current.colorPalette.textSecondary)
|
||||||
|
|
||||||
inline val TextStyle.disabled: TextStyle
|
|
||||||
@Composable
|
|
||||||
@ReadOnlyComposable
|
|
||||||
get() = color(LocalAppearance.current.colorPalette.textDisabled)
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user