Skip to content

Commit

Permalink
fix for native
Browse files Browse the repository at this point in the history
  • Loading branch information
j committed Nov 23, 2024
1 parent 962d3ed commit bed2483
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion haxe/ui/backend/TextDisplayImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class TextDisplayImpl extends TextBase {
var weight = _textStyle.fontWeight ?? 0;
if (_textStyle.fontItalic) {
var italics = Screen.instance.options.font_italics ?? [];
if (weight != null && italics.exists(weight)) {
if (weight != 0 && italics.exists(weight)) {
text_visual.font = italics.get(weight);
} else {
text_visual.component('italic', new ItalicText());
Expand Down
1 change: 1 addition & 0 deletions haxe/ui/backend/TextInputImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class TextInputImpl extends TextBase {
if (pw_comp == null) {
return '';
}
//trace(pw_comp.text);
return pw_comp.content;
}

Expand Down
2 changes: 1 addition & 1 deletion haxe/ui/backend/ceramic/PasswordText.hx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PasswordText extends Entity implements Component {
}
}

var text(get, set):String;
public var text(get, set):String;

function get_text() {
return visual.entity.content;
Expand Down

0 comments on commit bed2483

Please sign in to comment.