We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2a345a + 55932de commit 4dedd8eCopy full SHA for 4dedd8e
omegatypes/src/main/java/com/omega_r/libs/omegatypes/TextStyle.kt
@@ -15,6 +15,8 @@ abstract class TextStyle : Serializable {
15
16
companion object {
17
18
+ private val normalTextStyle = FontStyleTextStyle(Typeface.NORMAL)
19
+
20
private val boldTextStyle = FontStyleTextStyle(Typeface.BOLD)
21
22
private val italicTextStyle = FontStyleTextStyle(Typeface.ITALIC)
@@ -32,6 +34,9 @@ abstract class TextStyle : Serializable {
32
34
@JvmStatic
33
35
fun colorFromResource(colorRes: Int): TextStyle = ColorTextStyle(Color.fromResource(colorRes))
36
37
+ @JvmStatic
38
+ fun normal(): TextStyle = normalTextStyle
39
40
41
fun bold(): TextStyle = boldTextStyle
42
0 commit comments