ColorSchemeOptions¶
Configuration object for toolbar, navigation bar, and divider colors in Custom Tabs. Created using ColorSchemeOptionsBuilder.
Overview¶
ColorSchemeOptions holds color hex strings for the toolbar, navigation bar, and navigation bar divider.
All properties are optional. Unset values use system or browser defaults.
Creating Instances¶
Always use ColorSchemeOptionsBuilder to create ColorSchemeOptions:
var colors = new ColorSchemeOptionsBuilder()
.WithToolbarColor("#121212")
.WithNavigationBarColor(Color.black)
.WithNavigationBarDividerColor("#333333")
.Build();
Properties¶
ToolbarColor¶
The color of the Custom Tab toolbar.
NavigationBarColor¶
The color of the device navigation bar when the Custom Tab is open.
NavigationBarDividerColor¶
The color of the divider line between the Custom Tab content and the navigation bar.
Color Format¶
Colors must be valid hex strings in RGB format:
- Valid:
"#FF5733","#000000","#FFFFFF" - Invalid:
"red","blue"