Skip to main content

Set-FluenceTheme

SYNOPSIS​

Applies a Fluent theme (and optionally a backdrop) to the process-wide WPF resources.

SYNTAX​

Set-FluenceTheme [-Theme] <string> [-Backdrop <string>] [-UpdateAccent]

DESCRIPTION​

Runs the Fluence theme engine on the UI (STA) thread, rebuilding the computed color and brush dictionary for the requested theme. When -Backdrop is omitted the current backdrop is preserved. The accent intent is always preserved by the engine.

EXAMPLES​

EXAMPLE 1​

Set-FluenceTheme -Theme Dark

EXAMPLE 2​

Set-FluenceTheme -Theme Light -Backdrop Acrylic

PARAMETERS​

-Backdrop​

Mica, Acrylic, Tabbed, None, or Auto. When omitted, the current backdrop is kept.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Theme​

Auto, Light, Dark, or HighContrast.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-UpdateAccent​

Accepted and ignored. Earlier library versions took an updateAccent flag on Apply; the 0.9 engine always preserves the accent intent, so the switch stays only for contract stability.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

NOTES​

Uses the calling STA thread or a module-owned STA runspace. An existing host application is supported only when the command already runs on its dispatcher thread. Omitting -Backdrop keeps the current backdrop, and the accent intent is preserved.