Package com.vaadin.flow.component.page
Annotation Interface ColorScheme
Defines the color scheme for the application using the CSS color-scheme
property.
This annotation should be placed on a class that implements
AppShellConfigurator to set the
initial color scheme for the entire application.
Example usage:
@ColorScheme(ColorScheme.Value.SYSTEM)
public class AppShell implements AppShellConfigurator {
}
The color scheme can also be changed programmatically at runtime using
Page.setColorScheme(ColorScheme.Value).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of supported color scheme values. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe initial color scheme for the application.
-
Element Details
-
value
ColorScheme.Value valueThe initial color scheme for the application.- Returns:
- the color scheme value
- Default:
NORMAL
-