Class ThemeData | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ThemeData

    Inheritance
    System.Object
    Diagnosticable
    ThemeData
    Inherited Members
    Diagnosticable.toStringShort()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Diagnosticable.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    Namespace: Unity.UIWidgets.material
    Syntax
    public class ThemeData : Diagnosticable, IEquatable<ThemeData>

    Constructors

    ThemeData(Nullable<Brightness>, MaterialColor, Color, Nullable<Brightness>, Color, Color, Color, Nullable<Brightness>, Color, Color, Color, Color, Color, Color, Color, InteractiveInkFeatureFactory, Color, Color, Color, Color, ButtonThemeData, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, String, TextTheme, TextTheme, TextTheme, InputDecorationTheme, IconThemeData, IconThemeData, IconThemeData, SliderThemeData, TabBarTheme, CardTheme, ChipThemeData, Nullable<RuntimePlatform>, Nullable<MaterialTapTargetSize>, PageTransitionsTheme, AppBarTheme, BottomAppBarTheme, ColorScheme, DialogTheme, Typography)

    Declaration
    public ThemeData(Brightness? brightness = default(Brightness? ), MaterialColor primarySwatch = null, Color primaryColor = null, Brightness? primaryColorBrightness = default(Brightness? ), Color primaryColorLight = null, Color primaryColorDark = null, Color accentColor = null, Brightness? accentColorBrightness = default(Brightness? ), Color canvasColor = null, Color scaffoldBackgroundColor = null, Color bottomAppBarColor = null, Color cardColor = null, Color dividerColor = null, Color highlightColor = null, Color splashColor = null, InteractiveInkFeatureFactory splashFactory = null, Color selectedRowColor = null, Color unselectedWidgetColor = null, Color disabledColor = null, Color buttonColor = null, ButtonThemeData buttonTheme = null, Color secondaryHeaderColor = null, Color textSelectionColor = null, Color cursorColor = null, Color textSelectionHandleColor = null, Color backgroundColor = null, Color dialogBackgroundColor = null, Color indicatorColor = null, Color hintColor = null, Color errorColor = null, Color toggleableActiveColor = null, string fontFamily = null, TextTheme textTheme = null, TextTheme primaryTextTheme = null, TextTheme accentTextTheme = null, InputDecorationTheme inputDecorationTheme = null, IconThemeData iconTheme = null, IconThemeData primaryIconTheme = null, IconThemeData accentIconTheme = null, SliderThemeData sliderTheme = null, TabBarTheme tabBarTheme = null, CardTheme cardTheme = null, ChipThemeData chipTheme = null, RuntimePlatform? platform = default(RuntimePlatform? ), MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), PageTransitionsTheme pageTransitionsTheme = null, AppBarTheme appBarTheme = null, BottomAppBarTheme bottomAppBarTheme = null, ColorScheme colorScheme = null, DialogTheme dialogTheme = null, Typography typography = null)
    Parameters
    Type Name Description
    System.Nullable<Brightness> brightness
    MaterialColor primarySwatch
    Color primaryColor
    System.Nullable<Brightness> primaryColorBrightness
    Color primaryColorLight
    Color primaryColorDark
    Color accentColor
    System.Nullable<Brightness> accentColorBrightness
    Color canvasColor
    Color scaffoldBackgroundColor
    Color bottomAppBarColor
    Color cardColor
    Color dividerColor
    Color highlightColor
    Color splashColor
    InteractiveInkFeatureFactory splashFactory
    Color selectedRowColor
    Color unselectedWidgetColor
    Color disabledColor
    Color buttonColor
    ButtonThemeData buttonTheme
    Color secondaryHeaderColor
    Color textSelectionColor
    Color cursorColor
    Color textSelectionHandleColor
    Color backgroundColor
    Color dialogBackgroundColor
    Color indicatorColor
    Color hintColor
    Color errorColor
    Color toggleableActiveColor
    System.String fontFamily
    TextTheme textTheme
    TextTheme primaryTextTheme
    TextTheme accentTextTheme
    InputDecorationTheme inputDecorationTheme
    IconThemeData iconTheme
    IconThemeData primaryIconTheme
    IconThemeData accentIconTheme
    SliderThemeData sliderTheme
    TabBarTheme tabBarTheme
    CardTheme cardTheme
    ChipThemeData chipTheme
    System.Nullable<RuntimePlatform> platform
    System.Nullable<MaterialTapTargetSize> materialTapTargetSize
    PageTransitionsTheme pageTransitionsTheme
    AppBarTheme appBarTheme
    BottomAppBarTheme bottomAppBarTheme
    ColorScheme colorScheme
    DialogTheme dialogTheme
    Typography typography

    Fields

    accentColor

    Declaration
    public readonly Color accentColor
    Field Value
    Type Description
    Color

    accentColorBrightness

    Declaration
    public readonly Brightness accentColorBrightness
    Field Value
    Type Description
    Brightness

    accentIconTheme

    Declaration
    public readonly IconThemeData accentIconTheme
    Field Value
    Type Description
    IconThemeData

    accentTextTheme

    Declaration
    public readonly TextTheme accentTextTheme
    Field Value
    Type Description
    TextTheme

    appBarTheme

    Declaration
    public readonly AppBarTheme appBarTheme
    Field Value
    Type Description
    AppBarTheme

    backgroundColor

    Declaration
    public readonly Color backgroundColor
    Field Value
    Type Description
    Color

    bottomAppBarColor

    Declaration
    public readonly Color bottomAppBarColor
    Field Value
    Type Description
    Color

    bottomAppBarTheme

    Declaration
    public readonly BottomAppBarTheme bottomAppBarTheme
    Field Value
    Type Description
    BottomAppBarTheme

    brightness

    Declaration
    public readonly Brightness brightness
    Field Value
    Type Description
    Brightness

    buttonColor

    Declaration
    public readonly Color buttonColor
    Field Value
    Type Description
    Color

    buttonTheme

    Declaration
    public readonly ButtonThemeData buttonTheme
    Field Value
    Type Description
    ButtonThemeData

    canvasColor

    Declaration
    public readonly Color canvasColor
    Field Value
    Type Description
    Color

    cardColor

    Declaration
    public readonly Color cardColor
    Field Value
    Type Description
    Color

    cardTheme

    Declaration
    public readonly CardTheme cardTheme
    Field Value
    Type Description
    CardTheme

    chipTheme

    Declaration
    public readonly ChipThemeData chipTheme
    Field Value
    Type Description
    ChipThemeData

    colorScheme

    Declaration
    public readonly ColorScheme colorScheme
    Field Value
    Type Description
    ColorScheme

    cursorColor

    Declaration
    public readonly Color cursorColor
    Field Value
    Type Description
    Color

    dialogBackgroundColor

    Declaration
    public readonly Color dialogBackgroundColor
    Field Value
    Type Description
    Color

    dialogTheme

    Declaration
    public readonly DialogTheme dialogTheme
    Field Value
    Type Description
    DialogTheme

    disabledColor

    Declaration
    public readonly Color disabledColor
    Field Value
    Type Description
    Color

    dividerColor

    Declaration
    public readonly Color dividerColor
    Field Value
    Type Description
    Color

    errorColor

    Declaration
    public readonly Color errorColor
    Field Value
    Type Description
    Color

    highlightColor

    Declaration
    public readonly Color highlightColor
    Field Value
    Type Description
    Color

    hintColor

    Declaration
    public readonly Color hintColor
    Field Value
    Type Description
    Color

    iconTheme

    Declaration
    public readonly IconThemeData iconTheme
    Field Value
    Type Description
    IconThemeData

    indicatorColor

    Declaration
    public readonly Color indicatorColor
    Field Value
    Type Description
    Color

    inputDecorationTheme

    Declaration
    public readonly InputDecorationTheme inputDecorationTheme
    Field Value
    Type Description
    InputDecorationTheme

    materialTapTargetSize

    Declaration
    public readonly MaterialTapTargetSize materialTapTargetSize
    Field Value
    Type Description
    MaterialTapTargetSize

    pageTransitionsTheme

    Declaration
    public readonly PageTransitionsTheme pageTransitionsTheme
    Field Value
    Type Description
    PageTransitionsTheme

    platform

    Declaration
    public readonly RuntimePlatform platform
    Field Value
    Type Description
    RuntimePlatform

    primaryColor

    Declaration
    public readonly Color primaryColor
    Field Value
    Type Description
    Color

    primaryColorBrightness

    Declaration
    public readonly Brightness primaryColorBrightness
    Field Value
    Type Description
    Brightness

    primaryColorDark

    Declaration
    public readonly Color primaryColorDark
    Field Value
    Type Description
    Color

    primaryColorLight

    Declaration
    public readonly Color primaryColorLight
    Field Value
    Type Description
    Color

    primaryIconTheme

    Declaration
    public readonly IconThemeData primaryIconTheme
    Field Value
    Type Description
    IconThemeData

    primaryTextTheme

    Declaration
    public readonly TextTheme primaryTextTheme
    Field Value
    Type Description
    TextTheme

    scaffoldBackgroundColor

    Declaration
    public readonly Color scaffoldBackgroundColor
    Field Value
    Type Description
    Color

    secondaryHeaderColor

    Declaration
    public readonly Color secondaryHeaderColor
    Field Value
    Type Description
    Color

    selectedRowColor

    Declaration
    public readonly Color selectedRowColor
    Field Value
    Type Description
    Color

    sliderTheme

    Declaration
    public readonly SliderThemeData sliderTheme
    Field Value
    Type Description
    SliderThemeData

    splashColor

    Declaration
    public readonly Color splashColor
    Field Value
    Type Description
    Color

    splashFactory

    Declaration
    public readonly InteractiveInkFeatureFactory splashFactory
    Field Value
    Type Description
    InteractiveInkFeatureFactory

    tabBarTheme

    Declaration
    public readonly TabBarTheme tabBarTheme
    Field Value
    Type Description
    TabBarTheme

    textSelectionColor

    Declaration
    public readonly Color textSelectionColor
    Field Value
    Type Description
    Color

    textSelectionHandleColor

    Declaration
    public readonly Color textSelectionHandleColor
    Field Value
    Type Description
    Color

    textTheme

    Declaration
    public readonly TextTheme textTheme
    Field Value
    Type Description
    TextTheme

    toggleableActiveColor

    Declaration
    public readonly Color toggleableActiveColor
    Field Value
    Type Description
    Color

    typography

    Declaration
    public readonly Typography typography
    Field Value
    Type Description
    Typography

    unselectedWidgetColor

    Declaration
    public readonly Color unselectedWidgetColor
    Field Value
    Type Description
    Color

    Methods

    copyWith(Nullable<Brightness>, Color, Nullable<Brightness>, Color, Color, Color, Nullable<Brightness>, Color, Color, Color, Color, Color, Color, Color, InteractiveInkFeatureFactory, Color, Color, Color, ButtonThemeData, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, TextTheme, TextTheme, TextTheme, SliderThemeData, InputDecorationTheme, IconThemeData, IconThemeData, IconThemeData, TabBarTheme, CardTheme, ChipThemeData, Nullable<RuntimePlatform>, Nullable<MaterialTapTargetSize>, PageTransitionsTheme, AppBarTheme, BottomAppBarTheme, ColorScheme, DialogTheme, Typography)

    Declaration
    public ThemeData copyWith(Brightness? brightness = default(Brightness? ), Color primaryColor = null, Brightness? primaryColorBrightness = default(Brightness? ), Color primaryColorLight = null, Color primaryColorDark = null, Color accentColor = null, Brightness? accentColorBrightness = default(Brightness? ), Color canvasColor = null, Color scaffoldBackgroundColor = null, Color bottomAppBarColor = null, Color cardColor = null, Color dividerColor = null, Color highlightColor = null, Color splashColor = null, InteractiveInkFeatureFactory splashFactory = null, Color selectedRowColor = null, Color unselectedWidgetColor = null, Color disabledColor = null, ButtonThemeData buttonTheme = null, Color buttonColor = null, Color secondaryHeaderColor = null, Color textSelectionColor = null, Color cursorColor = null, Color textSelectionHandleColor = null, Color backgroundColor = null, Color dialogBackgroundColor = null, Color indicatorColor = null, Color hintColor = null, Color errorColor = null, Color toggleableActiveColor = null, TextTheme textTheme = null, TextTheme primaryTextTheme = null, TextTheme accentTextTheme = null, SliderThemeData sliderTheme = null, InputDecorationTheme inputDecorationTheme = null, IconThemeData iconTheme = null, IconThemeData primaryIconTheme = null, IconThemeData accentIconTheme = null, TabBarTheme tabBarTheme = null, CardTheme cardTheme = null, ChipThemeData chipTheme = null, RuntimePlatform? platform = default(RuntimePlatform? ), MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), PageTransitionsTheme pageTransitionsTheme = null, AppBarTheme appBarTheme = null, BottomAppBarTheme bottomAppBarTheme = null, ColorScheme colorScheme = null, DialogTheme dialogTheme = null, Typography typography = null)
    Parameters
    Type Name Description
    System.Nullable<Brightness> brightness
    Color primaryColor
    System.Nullable<Brightness> primaryColorBrightness
    Color primaryColorLight
    Color primaryColorDark
    Color accentColor
    System.Nullable<Brightness> accentColorBrightness
    Color canvasColor
    Color scaffoldBackgroundColor
    Color bottomAppBarColor
    Color cardColor
    Color dividerColor
    Color highlightColor
    Color splashColor
    InteractiveInkFeatureFactory splashFactory
    Color selectedRowColor
    Color unselectedWidgetColor
    Color disabledColor
    ButtonThemeData buttonTheme
    Color buttonColor
    Color secondaryHeaderColor
    Color textSelectionColor
    Color cursorColor
    Color textSelectionHandleColor
    Color backgroundColor
    Color dialogBackgroundColor
    Color indicatorColor
    Color hintColor
    Color errorColor
    Color toggleableActiveColor
    TextTheme textTheme
    TextTheme primaryTextTheme
    TextTheme accentTextTheme
    SliderThemeData sliderTheme
    InputDecorationTheme inputDecorationTheme
    IconThemeData iconTheme
    IconThemeData primaryIconTheme
    IconThemeData accentIconTheme
    TabBarTheme tabBarTheme
    CardTheme cardTheme
    ChipThemeData chipTheme
    System.Nullable<RuntimePlatform> platform
    System.Nullable<MaterialTapTargetSize> materialTapTargetSize
    PageTransitionsTheme pageTransitionsTheme
    AppBarTheme appBarTheme
    BottomAppBarTheme bottomAppBarTheme
    ColorScheme colorScheme
    DialogTheme dialogTheme
    Typography typography
    Returns
    Type Description
    ThemeData

    dark()

    Declaration
    public static ThemeData dark()
    Returns
    Type Description
    ThemeData

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Diagnosticable.debugFillProperties(DiagnosticPropertiesBuilder)

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    Equals(ThemeData)

    Declaration
    public bool Equals(ThemeData other)
    Parameters
    Type Name Description
    ThemeData other
    Returns
    Type Description
    System.Boolean

    estimateBrightnessForColor(Color)

    Declaration
    public static Brightness estimateBrightnessForColor(Color color)
    Parameters
    Type Name Description
    Color color
    Returns
    Type Description
    Brightness

    fallback()

    Declaration
    public static ThemeData fallback()
    Returns
    Type Description
    ThemeData

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    lerp(ThemeData, ThemeData, Single)

    Declaration
    public static ThemeData lerp(ThemeData a, ThemeData b, float t)
    Parameters
    Type Name Description
    ThemeData a
    ThemeData b
    System.Single t
    Returns
    Type Description
    ThemeData

    light()

    Declaration
    public static ThemeData light()
    Returns
    Type Description
    ThemeData

    localize(ThemeData, TextTheme)

    Declaration
    public static ThemeData localize(ThemeData baseTheme, TextTheme localTextGeometry)
    Parameters
    Type Name Description
    ThemeData baseTheme
    TextTheme localTextGeometry
    Returns
    Type Description
    ThemeData

    raw(Nullable<Brightness>, Color, Nullable<Brightness>, Color, Color, Color, Color, Nullable<Brightness>, Color, Color, Color, Color, Color, Color, InteractiveInkFeatureFactory, Color, Color, Color, ButtonThemeData, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, TextTheme, TextTheme, TextTheme, SliderThemeData, InputDecorationTheme, IconThemeData, IconThemeData, IconThemeData, TabBarTheme, CardTheme, ChipThemeData, Nullable<RuntimePlatform>, Nullable<MaterialTapTargetSize>, PageTransitionsTheme, AppBarTheme, BottomAppBarTheme, ColorScheme, DialogTheme, Typography)

    Declaration
    public static ThemeData raw(Brightness? brightness = default(Brightness? ), Color primaryColor = null, Brightness? primaryColorBrightness = default(Brightness? ), Color primaryColorLight = null, Color primaryColorDark = null, Color canvasColor = null, Color accentColor = null, Brightness? accentColorBrightness = default(Brightness? ), Color scaffoldBackgroundColor = null, Color bottomAppBarColor = null, Color cardColor = null, Color dividerColor = null, Color highlightColor = null, Color splashColor = null, InteractiveInkFeatureFactory splashFactory = null, Color selectedRowColor = null, Color unselectedWidgetColor = null, Color disabledColor = null, ButtonThemeData buttonTheme = null, Color buttonColor = null, Color secondaryHeaderColor = null, Color textSelectionColor = null, Color cursorColor = null, Color textSelectionHandleColor = null, Color backgroundColor = null, Color dialogBackgroundColor = null, Color indicatorColor = null, Color hintColor = null, Color errorColor = null, Color toggleableActiveColor = null, TextTheme textTheme = null, TextTheme primaryTextTheme = null, TextTheme accentTextTheme = null, SliderThemeData sliderTheme = null, InputDecorationTheme inputDecorationTheme = null, IconThemeData iconTheme = null, IconThemeData primaryIconTheme = null, IconThemeData accentIconTheme = null, TabBarTheme tabBarTheme = null, CardTheme cardTheme = null, ChipThemeData chipTheme = null, RuntimePlatform? platform = default(RuntimePlatform? ), MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), PageTransitionsTheme pageTransitionsTheme = null, AppBarTheme appBarTheme = null, BottomAppBarTheme bottomAppBarTheme = null, ColorScheme colorScheme = null, DialogTheme dialogTheme = null, Typography typography = null)
    Parameters
    Type Name Description
    System.Nullable<Brightness> brightness
    Color primaryColor
    System.Nullable<Brightness> primaryColorBrightness
    Color primaryColorLight
    Color primaryColorDark
    Color canvasColor
    Color accentColor
    System.Nullable<Brightness> accentColorBrightness
    Color scaffoldBackgroundColor
    Color bottomAppBarColor
    Color cardColor
    Color dividerColor
    Color highlightColor
    Color splashColor
    InteractiveInkFeatureFactory splashFactory
    Color selectedRowColor
    Color unselectedWidgetColor
    Color disabledColor
    ButtonThemeData buttonTheme
    Color buttonColor
    Color secondaryHeaderColor
    Color textSelectionColor
    Color cursorColor
    Color textSelectionHandleColor
    Color backgroundColor
    Color dialogBackgroundColor
    Color indicatorColor
    Color hintColor
    Color errorColor
    Color toggleableActiveColor
    TextTheme textTheme
    TextTheme primaryTextTheme
    TextTheme accentTextTheme
    SliderThemeData sliderTheme
    InputDecorationTheme inputDecorationTheme
    IconThemeData iconTheme
    IconThemeData primaryIconTheme
    IconThemeData accentIconTheme
    TabBarTheme tabBarTheme
    CardTheme cardTheme
    ChipThemeData chipTheme
    System.Nullable<RuntimePlatform> platform
    System.Nullable<MaterialTapTargetSize> materialTapTargetSize
    PageTransitionsTheme pageTransitionsTheme
    AppBarTheme appBarTheme
    BottomAppBarTheme bottomAppBarTheme
    ColorScheme colorScheme
    DialogTheme dialogTheme
    Typography typography
    Returns
    Type Description
    ThemeData

    Operators

    Equality(ThemeData, ThemeData)

    Declaration
    public static bool operator ==(ThemeData left, ThemeData right)
    Parameters
    Type Name Description
    ThemeData left
    ThemeData right
    Returns
    Type Description
    System.Boolean

    Inequality(ThemeData, ThemeData)

    Declaration
    public static bool operator !=(ThemeData left, ThemeData right)
    Parameters
    Type Name Description
    ThemeData left
    ThemeData right
    Returns
    Type Description
    System.Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023