Package snap.view

Class ViewTheme

java.lang.Object
snap.view.ViewTheme

public class ViewTheme extends Object
A class to provide view area classes to define UI look.
  • Field Details

    • BACK_FILL

      protected Color BACK_FILL
    • BACK_DARK_FILL

      protected Color BACK_DARK_FILL
    • SEL_FILL

      protected Color SEL_FILL
    • TARG_FILL

      protected Color TARG_FILL
    • TEXT_FILL

      protected Color TEXT_FILL
    • SEL_TEXT_FILL

      protected Color SEL_TEXT_FILL
    • TARG_TEXT_FILL

      protected Color TARG_TEXT_FILL
    • BUTTON_COLOR

      protected Color BUTTON_COLOR
    • BUTTON_OVER_COLOR

      protected Color BUTTON_OVER_COLOR
    • BUTTON_PRESSED_COLOR

      protected Color BUTTON_PRESSED_COLOR
    • BUTTON_BORDER_COLOR

      protected Color BUTTON_BORDER_COLOR
    • BUTTON_BORDER_PRESSED_COLOR

      protected Color BUTTON_BORDER_PRESSED_COLOR
  • Constructor Details

    • ViewTheme

      public ViewTheme()
      Constructor.
  • Method Details

    • getBackFill

      public Paint getBackFill()
      Returns the background fill.
    • getBackDarkFill

      public Paint getBackDarkFill()
      Returns the background fill.
    • getTextFill

      public Paint getTextFill()
      Returns the text fill.
    • getSelectFill

      public Paint getSelectFill()
      Returns the selection color.
    • getSelectTextFill

      public Paint getSelectTextFill()
      Returns the selection color.
    • getTargetFill

      public Paint getTargetFill()
      Returns the selection color.
    • getTargetTextFill

      public Paint getTargetTextFill()
      Returns the selection color.
    • getButtonColor

      public Color getButtonColor()
      Returns the button color.
    • getButtonOverColor

      public Color getButtonOverColor()
      Returns the button over color.
    • getButtonPressedColor

      public Color getButtonPressedColor()
      Returns the button pressed color.
    • getButtonBorderColor

      public Color getButtonBorderColor()
      Returns the button border color.
    • getButtonBorderPressedColor

      public Color getButtonBorderPressedColor()
      Returns the button border pressed color.
    • getButtonPainter

      public ButtonPainter getButtonPainter()
      Returns the button painter.
    • createButtonPainter

      protected ButtonPainter createButtonPainter()
      Creates the button painter.
    • get

      public static ViewTheme get()
      Returns the current theme.
    • getLast

      public static ViewTheme getLast()
      Returns the last theme.
    • getClassic

      public static ViewTheme getClassic()
      Returns the classic theme.
    • setThemeForName

      public static void setThemeForName(String aName)
      Sets the theme by name.