浏览代码

Merge pull request #271 from Unity-Technologies/zxw/support_editor_dragdrop

text background color bug fix
/main
GitHub 3 年前
当前提交
51cad3c0
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 8
      com.unity.uiwidgets/Runtime/painting/text_style.cs

8
com.unity.uiwidgets/Runtime/painting/text_style.cs


}
public ui.TextStyle getTextStyle(float textScaleFactor = 1.0f) {
var backgroundPaint = new Paint();
if (background != null) {
backgroundPaint = new Paint();
backgroundPaint.color = backgroundColor;
}
return new ui.TextStyle(
color: color,
decoration: decoration,

// locale: locale,
foreground: foreground,
background: background ?? (backgroundColor != null
? backgroundPaint
? new Paint {color = backgroundColor}
: null
),
shadows: shadows?.Cast<Shadow>().ToList(),

正在加载...
取消
保存