Package totalcross.ui
Class UIColors
- java.lang.Object
-
- totalcross.ui.UIColors
-
public final class UIColors extends java.lang.ObjectThis 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 Summary
Fields Modifier and Type Field Description static intcalculatorActionCalculatorBox action color.static intcalculatorBackCalculatorBox background color.static intcalculatorForeCalculatorBox foreground color.static intcalendarActionCalendarBox action color.static intcalendarArrowsCalendarBox arrow colors.static intcalendarBackCalendarBox background color.static intcalendarForeCalendarBox foreground color.static intclipboardBackBackground color of the clipboard menu that is opened at Edit and MultiEdit.static intclipboardForeForeground color of the clipboard menu that is opened at Edit and MultiEdit.static intcolorchooserboxActionColorChooserBox action color.static intcolorchooserboxBackColorChooserBox background color.static intcolorchooserboxForeColorChooserBox foreground color.static intcontrolsBackDefault control background color.static intcontrolsForeDefault control foreground color.static intfileChooserBackFileChooser background color.static intfileChooserForeFileChooser foreground color.static int[]highlightColorsThese are the colors used to draw the highlight rectangle.static inthtmlContainerControlsBackHtmlContainer foreground color for the Form controls.static inthtmlContainerControlsForeHtmlContainer background color for the Form controls.static inthtmlContainerLinkHtmlContainer link foreground color.static intinputboxActionInputBox action color.static intinputboxBackInputBox background color.static intinputboxForeInputBox foreground color.static intkeyboardActionKeyboardBox action color.static intkeyboardBackKeyboardBox background color.static intkeyboardForeKeyboardBox foreground color.static intkeypadBackKeypad background color.static intkeypadForeKeypad foreground color.static intmaterialSelectedColorThe selected color for material UIstatic intmessageboxActionMessageBox action color.static intmessageboxBackMessageBox background color.static intmessageboxForeMessageBox foreground color.static intnumericboxActionNumericBox action color.static intnumericboxBackNumericBox background color.static intnumericboxForeNumericBox foreground color.static intpositionbarBackgroundColorThe color to fill the background of the PositionBar.static intpositionbarColorThe color of the PositionBar for all places that use it.static booleansameColorsMake the edit area have the same color of the background setting this to truestatic intseparatorForeSeparator color of the TopMenustatic intshadeFactorThe shaded factor (0 - 100) used to fill a background when the backgroundStyle is BACKGROUND_SHADEDstatic intshiftScreenColorDeprecated.static intspinnerBackDeprecated.static intspinnerForeDeprecated.static inttextShadowColorDefault value to be used in all textShadowColor(s) set in the constructor of a control.static inttimeboxBackTimeBox background color.static inttimeboxClearTimeBox Clear button color.static inttimeboxOkTimeBox OK button color.static inttimeboxVisorBackTimeBox visor's background color.static inttimeboxVisorCursorTimeBox visor's cursor color.static inttooltipBackToolTip background color.static inttooltipForeToolTip foreground color.static inttopmenuBackBackground color of the TopMenustatic inttopmenuForeForeground color of the TopMenustatic intunsafeAreaColorColor used to fill the unsafe areas of the screen and the disabled area when the screen is shifted.static intvistaFadeStepThe default step used on Vista buttons to make the fade.static intwindowBorderThe border color of all windows.
-
-
-
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.
-
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.
-
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.
-
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
@Deprecated public static int shiftScreenColor
Deprecated.UseunsafeAreaColorinstead.- Since:
- TotalCross 1.3
-
unsafeAreaColor
public static int unsafeAreaColor
Color used to fill the unsafe areas of the screen and the disabled area when the screen is shifted. Default color is black.
-
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
-
-