Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeThemeSurfaces

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

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.

Accepted by parameters 2

Constructors

public OfficeThemeSurfaces(OfficeColor surface, OfficeColor rule, OfficeColor accent1Tint, OfficeColor successFill, OfficeColor warningFill, OfficeColor dangerFill) #

Creates immutable surface colours.

Parameters

surface OfficeIMO.OfficeColor required
rule OfficeIMO.OfficeColor required
accent1Tint OfficeIMO.OfficeColor required
successFill OfficeIMO.OfficeColor required
warningFill OfficeIMO.OfficeColor required
dangerFill OfficeIMO.OfficeColor required

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 required
surface OfficeIMO.OfficeColor required
rule OfficeIMO.OfficeColor required
public 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 optional
rule OfficeIMO.OfficeColor? = null optional
accent1Tint OfficeIMO.OfficeColor? = null optional
successFill OfficeIMO.OfficeColor? = null optional
warningFill OfficeIMO.OfficeColor? = null optional
dangerFill OfficeIMO.OfficeColor? = null optional

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.