Package totalcross.ui

Class UIColors


  • public final class UIColors
    extends java.lang.Object
    This class holds the colors used in some user interface dialogs, such as MessageBox, InputBox, CalculatorBox, KeyboardBox, CalendarBox, ToolTip, KeyPad and others. You can customize it as needed.

    To correctly change the colors to your own, you must do it in the constructor of your application.

    Since:
    SuperWaba 5.64
    • Field Detail

      • windowBorder

        public static int windowBorder
        The border color of all windows.
      • keyboardBack

        public static int keyboardBack
        KeyboardBox background color.
      • keyboardFore

        public static int keyboardFore
        KeyboardBox foreground color.
      • keyboardAction

        public static int keyboardAction
        KeyboardBox action color.
      • calculatorBack

        public static int calculatorBack
        CalculatorBox background color.
      • calculatorFore

        public static int calculatorFore
        CalculatorBox foreground color.
      • calculatorAction

        public static int calculatorAction
        CalculatorBox action color.
      • calendarBack

        public static int calendarBack
        CalendarBox background color.
      • calendarFore

        public static int calendarFore
        CalendarBox foreground color.
      • calendarAction

        public static int calendarAction
        CalendarBox action color.
      • calendarArrows

        public static int calendarArrows
        CalendarBox arrow colors.
      • messageboxBack

        public static int messageboxBack
        MessageBox background color.
      • messageboxFore

        public static int messageboxFore
        MessageBox foreground color.
      • messageboxMsgFore

        public static int messageboxMsgFore
        MessageBox message foreground
      • messageboxAction

        public static int messageboxAction
        MessageBox action color.
      • inputboxBack

        public static int inputboxBack
        InputBox background color.
      • inputboxFore

        public static int inputboxFore
        InputBox foreground color.
      • inputboxAction

        public static int inputboxAction
        InputBox action color.
      • colorchooserboxBack

        public static int colorchooserboxBack
        ColorChooserBox background color.
      • colorchooserboxFore

        public static int colorchooserboxFore
        ColorChooserBox foreground color.
      • colorchooserboxAction

        public static int colorchooserboxAction
        ColorChooserBox action color.
      • tooltipBack

        public static int tooltipBack
        ToolTip background color.
      • tooltipFore

        public static int tooltipFore
        ToolTip foreground color.
      • keypadBack

        public static int keypadBack
        Keypad background color.
      • keypadFore

        public static int keypadFore
        Keypad foreground color.
      • controlsFore

        public static int controlsFore
        Default control foreground color.
      • controlsBack

        public static int controlsBack
        Default control background color.
      • sameColors

        public static boolean sameColors
        Make the edit area have the same color of the background setting this to true
      • highlightColors

        public static int[] highlightColors
        These are the colors used to draw the highlight rectangle.
      • vistaFadeStep

        public static int vistaFadeStep
        The default step used on Vista buttons to make the fade. Decrease the step to make the button lighter.
      • fileChooserFore

        public static int fileChooserFore
        FileChooser foreground color.
      • fileChooserBack

        public static int fileChooserBack
        FileChooser background color.
      • htmlContainerControlsFore

        public static int htmlContainerControlsFore
        HtmlContainer background color for the Form controls.
      • htmlContainerControlsBack

        public static int htmlContainerControlsBack
        HtmlContainer foreground color for the Form controls.
      • htmlContainerLink

        public static int htmlContainerLink
        HtmlContainer link foreground color.
      • timeboxVisorBack

        public static int timeboxVisorBack
        TimeBox visor's background color.
      • timeboxVisorFore

        public static int timeboxVisorFore
        TimeBox visor's background color.
      • timeboxVisorCursor

        public static int timeboxVisorCursor
        TimeBox visor's cursor color.
      • timeboxOk

        public static int timeboxOk
        TimeBox OK button color.
      • timeboxClear

        public static int timeboxClear
        TimeBox Clear button color.
      • timeboxBack

        public static int timeboxBack
        TimeBox background color.
      • timeboxFore

        public static int timeboxFore
        TimeBox foreground color.
      • textShadowColor

        public static int textShadowColor
        Default value to be used in all textShadowColor(s) set in the constructor of a control. Defaults to -1. Note that it does not affect the shadow when you call setBackColor or setForeColor.
        Since:
        TotalCross 1.27
        See Also:
        Control.BRIGHTER_BACKGROUND, Control.DARKER_BACKGROUND
      • positionbarColor

        public static int positionbarColor
        The color of the PositionBar for all places that use it.
      • positionbarBackgroundColor

        public static int positionbarBackgroundColor
        The color to fill the background of the PositionBar. Defaults to -1 (don't fill).
      • spinnerFore

        @Deprecated
        public static int spinnerFore
        Deprecated.
        Spinner foreground color.
      • spinnerBack

        @Deprecated
        public static int spinnerBack
        Deprecated.
        Spinner background color.
      • shadeFactor

        public static int shadeFactor
        The shaded factor (0 - 100) used to fill a background when the backgroundStyle is BACKGROUND_SHADED
      • numericboxBack

        public static int numericboxBack
        NumericBox background color.
      • numericboxFore

        public static int numericboxFore
        NumericBox foreground color.
      • numericboxAction

        public static int numericboxAction
        NumericBox action color.
      • shiftScreenColor

        public static int shiftScreenColor
        The color that will be used to paint the disabled area when a screen shift occurs.
        Since:
        TotalCross 1.3
      • clipboardBack

        public static int clipboardBack
        Background color of the clipboard menu that is opened at Edit and MultiEdit.
      • clipboardFore

        public static int clipboardFore
        Foreground color of the clipboard menu that is opened at Edit and MultiEdit.
      • topmenuBack

        public static int topmenuBack
        Background color of the TopMenu
      • topmenuFore

        public static int topmenuFore
        Foreground color of the TopMenu
      • separatorFore

        public static int separatorFore
        Separator color of the TopMenu
      • materialSelectedColor

        public static int materialSelectedColor
        The selected color for material UI