您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
65 行
1.5 KiB
65 行
1.5 KiB
using Unity.UIWidgets.foundation;
|
|
using Unity.UIWidgets.service;
|
|
using UnityEngine;
|
|
|
|
namespace Unity.UIWidgets.material {
|
|
|
|
public enum MaterialTapTargetSize {
|
|
padded,
|
|
|
|
shrinkWrap
|
|
}
|
|
|
|
public class ThemeData : Diagnosticable {
|
|
public ThemeData(
|
|
Brightness brightness,
|
|
MaterialColor primarySwatch,
|
|
Color primaryColor,
|
|
Brightness primaryColorBrightness,
|
|
Color primaryColorLight,
|
|
Color primaryColorDark,
|
|
Color accentColor,
|
|
Brightness accentColorBrightness,
|
|
Color canvasColor,
|
|
Color scaffoldBackgroundColor,
|
|
Color bottomAppBarColor,
|
|
Color cardColor,
|
|
Color dividerColor,
|
|
Color highlightColor,
|
|
Color splashColor
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
readonly Brightness brightness;
|
|
|
|
readonly MaterialColor primarySwatch;
|
|
|
|
readonly Color primaryColor;
|
|
|
|
readonly Brightness primaryColorBrightness;
|
|
|
|
readonly Color primaryColorLight;
|
|
|
|
readonly Color primaryColorDark;
|
|
|
|
readonly Color accentColor;
|
|
|
|
readonly Brightness accentColorBrightness;
|
|
|
|
readonly Color canvasColor;
|
|
|
|
readonly Color scaffoldBackgroundColor;
|
|
|
|
readonly Color bottomAppBarColor;
|
|
|
|
readonly Color cardColor;
|
|
|
|
readonly Color dividerColor;
|
|
|
|
readonly Color highlightColor;
|
|
|
|
readonly Color splashColor;
|
|
}
|
|
}
|