guanghuispark
4 年前
当前提交
e48f562c
共有 4 个文件被更改,包括 59 次插入 和 14 次删除
-
23com.unity.uiwidgets.devtools/Editor/inspector/layout_explorer/box/box.cs
-
3com.unity.uiwidgets/Runtime/animation/animation_controller.cs
-
4com.unity.uiwidgets/Runtime/widgets/single_child_scroll_view.cs
-
43com.unity.uiwidgets.devtools/Editor/inspector/inspector_text_style.cs
|
|||
using uiwidgets; |
|||
using Unity.UIWidgets.material; |
|||
using Unity.UIWidgets.ui; |
|||
using TextStyle = Unity.UIWidgets.painting.TextStyle; |
|||
using ThemeUtils = Unity.UIWidgets.DevTools.inspector.layout_explorer.ui.ThemeUtils; |
|||
|
|||
namespace Unity.UIWidgets.DevTools.inspector |
|||
{ |
|||
public class inspector_text_styles |
|||
{ |
|||
public static TextStyle unimportant(ColorScheme colorScheme) |
|||
{ |
|||
|
|||
return new TextStyle( |
|||
color: CommonThemeUtils.isLight ? Colors.grey.shade500 : Colors.grey.shade600); |
|||
} |
|||
|
|||
public static TextStyle regular = new TextStyle(); |
|||
public static TextStyle warning(ColorScheme colorScheme) => new TextStyle( |
|||
color: |
|||
CommonThemeUtils.isLight ? Colors.orange.shade900 : Colors.orange.shade400); |
|||
public static TextStyle error(ColorScheme colorScheme) => new TextStyle( |
|||
color: CommonThemeUtils.isLight ? Colors.red.shade500 : Colors.red.shade400 |
|||
); |
|||
TextStyle link(ColorScheme colorScheme) => new TextStyle( |
|||
color: CommonThemeUtils.isLight ? Colors.blue.shade700 : Colors.blue.shade300, |
|||
decoration: TextDecoration.underline |
|||
); |
|||
|
|||
TextStyle regularBold(ColorScheme colorScheme) => new TextStyle( |
|||
color: CommonThemeUtils.defaultForeground, |
|||
fontWeight: FontWeight.w700 |
|||
); |
|||
TextStyle regularItalic(ColorScheme colorScheme) => new TextStyle( |
|||
color: CommonThemeUtils.defaultForeground, |
|||
fontStyle: FontStyle.italic |
|||
); |
|||
TextStyle unimportantItalic(ColorScheme colorScheme) => |
|||
unimportant(colorScheme).merge(new TextStyle( |
|||
fontStyle: FontStyle.italic |
|||
)); |
|||
} |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue