TP-24174 | removed font style fun
This commit is contained in:
@@ -38,11 +38,11 @@ class UiTronDependencyProvider : IUiTronDependencyProvider {
|
||||
}
|
||||
}
|
||||
|
||||
override fun getFontStyle(fontWeight: IUiTronDependencyProvider.FontWeightEnum?): Int =
|
||||
fun getFontStyle(fontWeight: IUiTronDependencyProvider.FontWeightEnum?): Int =
|
||||
getFontStyle(fontWeight?.name)
|
||||
|
||||
|
||||
override fun getFontStyle(fontWeightName: String?) = when (fontWeightName) {
|
||||
fun getFontStyle(fontWeightName: String?) = when (fontWeightName) {
|
||||
IUiTronDependencyProvider.FontWeightEnum.TT_REGULAR.name,
|
||||
IUiTronDependencyProvider.FontWeightEnum.ROBOTO_REGULAR.name,
|
||||
|
||||
|
||||
@@ -6,8 +6,6 @@ import androidx.compose.ui.text.font.FontWeight
|
||||
interface IUiTronDependencyProvider {
|
||||
|
||||
fun getFontFamily(fontFamily: String?): FontFamily
|
||||
fun getFontStyle(fontWeight: FontWeightEnum?): Int
|
||||
fun getFontStyle(fontWeightName: String?): Int
|
||||
fun getFontWeight(fontWeight: String?): FontWeight
|
||||
enum class FontWeightEnum {
|
||||
ROBOTO_REGULAR,
|
||||
|
||||
Reference in New Issue
Block a user