|
|
|
|
|
|
this.background = background; |
|
|
|
} |
|
|
|
|
|
|
|
public ui.TextStyle getTextStyle(ui.TextStyle currentStyle = null) { |
|
|
|
public ui.TextStyle getTextStyle(ui.TextStyle currentStyle = null, float textScaleFactor = 1.0f) { |
|
|
|
fontSize: this.fontSize ?? currentStyle.fontSize, |
|
|
|
fontSize: this.fontSize != null ? this.fontSize * textScaleFactor : currentStyle.fontSize, |
|
|
|
fontWeight: this.fontWeight ?? currentStyle.fontWeight, |
|
|
|
fontStyle: this.fontStyle ?? currentStyle.fontStyle, |
|
|
|
letterSpacing: this.letterSpacing ?? currentStyle.letterSpacing, |
|
|
|
|
|
|
|
|
|
|
return new ui.TextStyle( |
|
|
|
color: this.color, |
|
|
|
fontSize: this.fontSize, |
|
|
|
fontSize: this.fontSize * textScaleFactor, |
|
|
|
fontWeight: this.fontWeight, |
|
|
|
fontStyle: this.fontStyle, |
|
|
|
letterSpacing: this.letterSpacing, |
|
|
|