OfficeThemeSurfaces
OfficeIMO
Background tints and structural colours: panels, hairlines, the accent tint and status row fills.
Inheritance
- object
- OfficeThemeSurfaces
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Property OfficeTheme.Surfaces
- Method OfficeThemeSurfaces.FromPalette
- Method OfficeThemeSurfaces.With
Accepted by parameters 2
- Constructor OfficeTheme.OfficeTheme
- Method OfficeTheme.WithSurfaces
Constructors
public OfficeThemeSurfaces(OfficeColor surface, OfficeColor rule, OfficeColor accent1Tint, OfficeColor successFill, OfficeColor warningFill, OfficeColor dangerFill) #Creates immutable surface colours.
Parameters
- surface OfficeIMO.OfficeColor
- rule OfficeIMO.OfficeColor
- accent1Tint OfficeIMO.OfficeColor
- successFill OfficeIMO.OfficeColor
- warningFill OfficeIMO.OfficeColor
- dangerFill OfficeIMO.OfficeColor
Methods
public static OfficeThemeSurfaces FromPalette(OfficeThemePalette palette, OfficeColor surface, OfficeColor rule) #Derives the accent and status tints from a palette: Accent1 at 10 % and each status colour at 12 % (18 % on a dark background) composited over the background.
Parameters
- palette OfficeIMO.OfficeThemePalette
- surface OfficeIMO.OfficeColor
- rule OfficeIMO.OfficeColor
Returns
OfficeThemeSurfacespublic OfficeThemeSurfaces With(OfficeColor? surface = null, OfficeColor? rule = null, OfficeColor? accent1Tint = null, OfficeColor? successFill = null, OfficeColor? warningFill = null, OfficeColor? dangerFill = null) #Returns a copy with the supplied replacements; omitted values are retained.
Parameters
- surface OfficeIMO.OfficeColor? = null
- rule OfficeIMO.OfficeColor? = null
- accent1Tint OfficeIMO.OfficeColor? = null
- successFill OfficeIMO.OfficeColor? = null
- warningFill OfficeIMO.OfficeColor? = null
- dangerFill OfficeIMO.OfficeColor? = null
Returns
OfficeThemeSurfacesInherited Methods
Properties
public OfficeColor Surface { get; } #Gets the fill for panels, callouts and code blocks.
public OfficeColor Rule { get; } #Gets the colour of hairlines and separators.
public OfficeColor Accent1Tint { get; } #Gets OfficeColor.Accent1 at 10 % over the background.
public OfficeColor SuccessFill { get; } #Gets the row fill behind a success status.
public OfficeColor WarningFill { get; } #Gets the row fill behind a warning status.
public OfficeColor DangerFill { get; } #Gets the row fill behind a danger status.