Package snap.view
Class ViewTheme
java.lang.Object
snap.view.ViewTheme
A class to provide view area classes to define UI look.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ButtonPainter
Creates the button painter.static ViewTheme
get()
Returns the current theme.Returns the background fill.Returns the background fill.Returns the button border color.Returns the button border pressed color.Returns the button color.Returns the button over color.Returns the button painter.Returns the button pressed color.static ViewTheme
Returns the classic theme.static ViewTheme
getLast()
Returns the last theme.Returns the selection color.Returns the selection color.Returns the selection color.Returns the selection color.Returns the text fill.static void
setThemeForName
(String aName) Sets the theme by name.
-
Field Details
-
BACK_FILL
-
BACK_DARK_FILL
-
SEL_FILL
-
TARG_FILL
-
TEXT_FILL
-
SEL_TEXT_FILL
-
TARG_TEXT_FILL
-
BUTTON_COLOR
-
BUTTON_OVER_COLOR
-
BUTTON_PRESSED_COLOR
-
BUTTON_BORDER_COLOR
-
BUTTON_BORDER_PRESSED_COLOR
-
-
Constructor Details
-
ViewTheme
public ViewTheme()Constructor.
-
-
Method Details
-
getBackFill
Returns the background fill. -
getBackDarkFill
Returns the background fill. -
getTextFill
Returns the text fill. -
getSelectFill
Returns the selection color. -
getSelectTextFill
Returns the selection color. -
getTargetFill
Returns the selection color. -
getTargetTextFill
Returns the selection color. -
getButtonColor
Returns the button color. -
getButtonOverColor
Returns the button over color. -
getButtonPressedColor
Returns the button pressed color. -
getButtonBorderColor
Returns the button border color. -
getButtonBorderPressedColor
Returns the button border pressed color. -
getButtonPainter
Returns the button painter. -
createButtonPainter
Creates the button painter. -
get
Returns the current theme. -
getLast
Returns the last theme. -
getClassic
Returns the classic theme. -
setThemeForName
Sets the theme by name.
-