浏览代码

fix

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
2a874d0b
共有 3 个文件被更改,包括 8 次插入8 次删除
  1. 2
      com.unity.uiwidgets/Runtime/material/text_theme.cs
  2. 12
      com.unity.uiwidgets/Runtime/material/theme_data.cs
  3. 2
      com.unity.uiwidgets/Runtime/material/typography.cs

2
com.unity.uiwidgets/Runtime/material/text_theme.cs


public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
TextTheme defaultTheme = new Typography().black;
TextTheme defaultTheme = Typography.material2018().black;
properties.add(new DiagnosticsProperty<TextStyle>("display4", headline1,
defaultValue: defaultTheme.display4));
properties.add(new DiagnosticsProperty<TextStyle>("display3", headline2,

12
com.unity.uiwidgets/Runtime/material/theme_data.cs


using Color = Unity.UIWidgets.ui.Color;
namespace Unity.UIWidgets.material {
static class ThemeDataUtils {
public partial class material_ {
public static readonly Color _kLightThemeHighlightColor = new Color(0x66BCBCBC);
public static readonly Color _kLightThemeSplashColor = new Color(0x66C8C8C8);

iconTheme = iconTheme ??
(isDark ? new IconThemeData(color: Colors.white) : new IconThemeData(color: Colors.black87));
platform = platform ?? Application.platform;
typography = typography ?? new Typography();
typography = typography ?? Typography.material2014();
TextTheme defaultTextTheme = isDark ? typography.white : typography.black;
textTheme = defaultTextTheme.merge(textTheme);
TextTheme defaultPrimaryTextTheme = primaryIsDark ? typography.white : typography.black;

disabledColor = disabledColor ?? (isDark ? Colors.white30 : Colors.black38);
highlightColor = highlightColor ??
(isDark
? ThemeDataUtils._kDarkThemeHighlightColor
: ThemeDataUtils._kLightThemeHighlightColor);
? material_._kDarkThemeHighlightColor
: material_._kLightThemeHighlightColor);
? ThemeDataUtils._kDarkThemeSplashColor
: ThemeDataUtils._kLightThemeSplashColor);
? material_._kDarkThemeSplashColor
: material_._kLightThemeSplashColor);
sliderTheme = sliderTheme ?? SliderThemeData.fromPrimaryColors(
primaryColor: primaryColor,

2
com.unity.uiwidgets/Runtime/material/typography.cs


public class Typography : Diagnosticable {
public Typography(
Typography(
TextTheme black = null,
TextTheme white = null,
TextTheme englishLike = null,

正在加载...
取消
保存