ThemeFluentProperties.SetCustomAccentColor(String) Method
Applies a custom accent color to a Fluent theme.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.Resources.v26.1.dll
NuGet Package: DevExpress.Blazor.Resources
Declaration
public void SetCustomAccentColor(
string color
)
Parameters
| Name | Type | Description |
|---|---|---|
| color | String | The accent color. |
Remarks
The color parameter accepts the following formats:
- Longhand and shorthand hexadecimal color values:
#ffff00,#ff0. - RGB and RGBA color codes:
rgb(255, 0, 0),rgba(0, 230, 0, 0.3). - HTML color name (case-insensitive):
red,DarkGreen.
Refer to the ThemeFluentProperties class description for additional information and an example.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetCustomAccentColor(String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.