Tantalum
The default Theme.
Supports a dark and light color scheme based on a single property : darkProperty. Each color scheme is just a map of ColorProperty keyed on the color's name (a String).
Colors
There are only 8 basic colors and 5 additional special purpose colors. However, many of these colors are used with varying amounts of opacity, which gives the appearance of more colors. For example a simple Button uses a background color named "button". But when the mouse hover over it, the opacity changes. When you press it, the opacity changes again.
background1
The default background color for the whole scene.
TabPane's selected Tab
background2
An alternative to "background1" to help distinguish one region from another.
Unselected tabs
TextArea's line number gutter
TitledPane's title
PopupMenus
Tooltips
AlertDialog's heading
The sides of a Harbour
A Dock's toolbar
accent
A color to grab attention. e.g.
Default buttons
Border of the TextField/TextArea with focus
Highlight for the selected Tab in a TabPane
font
Text in Buttons, Labels, TextFields, TextAreas etc.
font2 : Similar to "font", but with lower contrast
Disabled Buttons, TextFields, TextAreas etc.
textField
The background color for TextField, TextArea, Spinner
button
The background color for buttons
stroke
Borders around TextField, TextArea, Tabs, a TabPane's content etc.
A Separator
Speciality Colors
caret : The caret in a TextField, TextArea, Spinner etc.
white : Always white, regardless of the color scheme. e.g. to represent a sheet of paper
black : Always black, regardless of the color scheme. e.g. for text, when the background uses color "white" (above)
find_match : The highlight color for matched text when using
FindAndReplace
on a StyledTextArea.find_replacement : The highlight color of replaced text using
FindAndReplace
.
Properties
The current color scheme - an immutable map of ColorProperty keyed by the color's name, such as "accent".
The color scheme used for the "dark" theme.
The color scheme used for the high-contract "dark" theme.
The color scheme used for the high-contract "light" theme.
The color scheme used for the "light" theme.
The theme generated by buildTheme. GlokSettings.defaultTheme is typically bound to this property, so that whenever any of this ThemeBuilder's properties change, the entire application will be re-themed.
Functions
Builds a FormGrid, letting the user change some aspects of the Tantalum Theme.
This is where the magic happens. Your theme builder must implement this abstract method.
Combines two ThemeBuilders. The result is an ObservableTheme whose value is a Theme with rules from both of the ThemeBuilders.