TP-24174 | removed font style fun

This commit is contained in:
Rajinikanth
2023-04-11 01:29:53 +05:30
parent bc468d043d
commit 3571ec0d73
2 changed files with 2 additions and 4 deletions

View File

@@ -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,

View File

@@ -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,