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.
1 parent 916d9ca commit 8c29ed4Copy full SHA for 8c29ed4
omegatypes/src/main/java/com/omega_r/libs/omegatypes/Text.kt
@@ -223,7 +223,6 @@ open class Text(protected val defaultTextStyle: TextStyle? ) : Serializable {
223
224
}
225
226
-@JvmOverloads // todo: remove, temporary
227
fun TextView.setText(text: Text?, textStyle: TextStyle? = null) {
228
if (text == null) {
229
this.text = null
@@ -270,4 +269,6 @@ operator fun Text.plus(string: String) : Text {
270
269
return TextBuilder.BuilderText(this) + string
271
272
273
-fun String.toText() = Text.from(this)
+fun String.toText(textStyle: TextStyle? = null) = Text.from(this, textStyle)
+
274
+operator fun Text.plus(textStyle: TextStyle) = Text.from(this, textStyle = textStyle)
0 commit comments