示例#1
0
        public static CupertinoTextThemeData _raw(
            _TextThemeDefaultsBuilder _defaults,
            Color primaryColor,
            TextStyle textStyle,
            TextStyle actionTextStyle,
            TextStyle tabLabelTextStyle,
            TextStyle navTitleTextStyle,
            TextStyle navLargeTitleTextStyle,
            TextStyle navActionTextStyle,
            TextStyle pickerTextStyle,
            TextStyle dateTimePickerTextStyle
            )
        {
            var textThemeData = new CupertinoTextThemeData(
                _defaults,
                primaryColor,
                textStyle,
                actionTextStyle,
                tabLabelTextStyle,
                navTitleTextStyle,
                navLargeTitleTextStyle,
                navActionTextStyle,
                pickerTextStyle,
                dateTimePickerTextStyle
                );

            return(textThemeData);
        }
示例#2
0
        public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
        {
            base.debugFillProperties(properties);
            CupertinoTextThemeData defaultData = new CupertinoTextThemeData();

            properties.add(new DiagnosticsProperty <TextStyle>("textStyle", textStyle, defaultValue: defaultData.textStyle));
            properties.add(new DiagnosticsProperty <TextStyle>("actionTextStyle", actionTextStyle, defaultValue: defaultData.actionTextStyle));
            properties.add(new DiagnosticsProperty <TextStyle>("tabLabelTextStyle", tabLabelTextStyle, defaultValue: defaultData.tabLabelTextStyle));
            properties.add(new DiagnosticsProperty <TextStyle>("navTitleTextStyle", navTitleTextStyle, defaultValue: defaultData.navTitleTextStyle));
            properties.add(new DiagnosticsProperty <TextStyle>("navLargeTitleTextStyle", navLargeTitleTextStyle, defaultValue: defaultData.navLargeTitleTextStyle));
            properties.add(new DiagnosticsProperty <TextStyle>("navActionTextStyle", navActionTextStyle, defaultValue: defaultData.navActionTextStyle));
            properties.add(new DiagnosticsProperty <TextStyle>("pickerTextStyle", pickerTextStyle, defaultValue: defaultData.pickerTextStyle));
            properties.add(new DiagnosticsProperty <TextStyle>("dateTimePickerTextStyle", dateTimePickerTextStyle, defaultValue: defaultData.dateTimePickerTextStyle));
        }
示例#3
0
文件: theme.cs 项目: JC-ut0/CubeGame
 public CupertinoThemeData(
     Brightness?brightness            = null,
     Color primaryColor               = null,
     Color primaryContrastingColor    = null,
     CupertinoTextThemeData textTheme = null,
     Color barBackgroundColor         = null,
     Color scaffoldBackgroundColor    = null
     )
 {
     this._brightness              = brightness;
     this._primaryColor            = primaryColor;
     this._primaryContrastingColor = primaryContrastingColor;
     this._textTheme               = textTheme;
     this._barBackgroundColor      = barBackgroundColor;
     this._scaffoldBackgroundColor = scaffoldBackgroundColor;
 }
示例#4
0
文件: theme.cs 项目: JC-ut0/CubeGame
 public _NoDefaultCupertinoThemeData(
     Brightness?brightness,
     Color primaryColor,
     Color primaryContrastingColor,
     CupertinoTextThemeData textTheme,
     Color barBackgroundColor,
     Color scaffoldBackgroundColor
     )
 {
     this.brightness              = brightness;
     this.primaryColor            = primaryColor;
     this.primaryContrastingColor = primaryContrastingColor;
     this.textTheme               = textTheme;
     this.barBackgroundColor      = barBackgroundColor;
     this.scaffoldBackgroundColor = scaffoldBackgroundColor;
 }
示例#5
0
 public CupertinoThemeData(
     Brightness?brightness            = null,
     Color primaryColor               = null,
     Color primaryContrastingColor    = null,
     CupertinoTextThemeData textTheme = null,
     Color barBackgroundColor         = null,
     Color scaffoldBackgroundColor    = null,
     _CupertinoThemeDefaults defaults = null
     )
 {
     this.brightness          = brightness;// ?? Brightness.light;
     _primaryColor            = primaryColor;
     _primaryContrastingColor = primaryContrastingColor;
     _textTheme               = textTheme;
     _barBackgroundColor      = barBackgroundColor;
     _scaffoldBackgroundColor = scaffoldBackgroundColor;
     _defaults = defaults ?? CupertinoThemeDataUtils._kDefaultTheme;
 }
示例#6
0
 public new CupertinoThemeData copyWith(
     Brightness?brightness            = null,
     Color primaryColor               = null,
     Color primaryContrastingColor    = null,
     CupertinoTextThemeData textTheme = null,
     Color barBackgroundColor         = null,
     Color scaffoldBackgroundColor    = null
     )
 {
     return(new _NoDefaultCupertinoThemeData(
                brightness ?? this.brightness,
                primaryColor ?? this.primaryColor,
                primaryContrastingColor ?? this.primaryContrastingColor,
                textTheme ?? this.textTheme,
                barBackgroundColor ?? this.barBackgroundColor,
                scaffoldBackgroundColor ?? this.scaffoldBackgroundColor
                ));
 }
示例#7
0
文件: theme.cs 项目: JC-ut0/CubeGame
 public CupertinoThemeData copyWith(
     Brightness?brightness            = null,
     Color primaryColor               = null,
     Color primaryContrastingColor    = null,
     CupertinoTextThemeData textTheme = null,
     Color barBackgroundColor         = null,
     Color scaffoldBackgroundColor    = null
     )
 {
     return(new CupertinoThemeData(
                brightness: brightness ?? this._brightness,
                primaryColor: primaryColor ?? this._primaryColor,
                primaryContrastingColor: primaryContrastingColor ?? this._primaryContrastingColor,
                textTheme: textTheme ?? this._textTheme,
                barBackgroundColor: barBackgroundColor ?? this._barBackgroundColor,
                scaffoldBackgroundColor: scaffoldBackgroundColor ?? this._scaffoldBackgroundColor
                ));
 }
示例#8
0
 public CupertinoThemeData copyWith(
     Brightness?brightness            = null,
     Color primaryColor               = null,
     Color primaryContrastingColor    = null,
     CupertinoTextThemeData textTheme = null,
     Color barBackgroundColor         = null,
     Color scaffoldBackgroundColor    = null
     )
 {
     //return new CupertinoThemeData(
     return(_rawWithDefaults(
                brightness: brightness ?? this.brightness,
                primaryColor: primaryColor ?? _primaryColor,
                primaryContrastingColor: primaryContrastingColor ?? _primaryContrastingColor,
                textTheme: textTheme ?? _textTheme,
                barBackgroundColor: barBackgroundColor ?? _barBackgroundColor,
                scaffoldBackgroundColor: scaffoldBackgroundColor ?? _scaffoldBackgroundColor,
                _defaults
                ));
 }
示例#9
0
        public static CupertinoThemeData _rawWithDefaults(
            Brightness?brightness,
            Color primaryColor,
            Color primaryContrastingColor,
            CupertinoTextThemeData textTheme,
            Color barBackgroundColor,
            Color scaffoldBackgroundColor,
            _CupertinoThemeDefaults defaults
            )
        {
            var themeData = new CupertinoThemeData(
                brightness: brightness,
                primaryColor: primaryColor,
                primaryContrastingColor: primaryContrastingColor,
                textTheme: textTheme,
                barBackgroundColor: barBackgroundColor,
                scaffoldBackgroundColor: scaffoldBackgroundColor,
                defaults);

            return(themeData);
        }
示例#10
0
文件: theme.cs 项目: JC-ut0/CubeGame
 public static CupertinoThemeData raw(
     Brightness?brightness            = null,
     Color primaryColor               = null,
     Color primaryContrastingColor    = null,
     CupertinoTextThemeData textTheme = null,
     Color barBackgroundColor         = null,
     Color scaffoldBackgroundColor    = null
     )
 {
     D.assert(brightness != null);
     D.assert(primaryColor != null);
     D.assert(primaryContrastingColor != null);
     D.assert(textTheme != null);
     D.assert(barBackgroundColor != null);
     D.assert(scaffoldBackgroundColor != null);
     return(new CupertinoThemeData(
                brightness: brightness,
                primaryColor: primaryColor,
                primaryContrastingColor: primaryContrastingColor,
                textTheme: textTheme,
                barBackgroundColor: barBackgroundColor,
                scaffoldBackgroundColor: scaffoldBackgroundColor
                ));
 }