Package ca.cgjennings.ui.theme
Class Palette.Variant
- java.lang.Object
-
- ca.cgjennings.ui.theme.Palette.Variant
-
- Enclosing class:
- Palette
public static final class Palette.Variant extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description Settings.Colour
black
A black colour, code0
orK
.Settings.Colour
blue
A blue colour, codeB
.Settings.Colour
brown
A brown colour, codeW
.Settings.Colour
cyan
A cyan colour, codeC
.Settings.Colour
fill
A default background colour, typically similar to the standard component or menu background.Settings.Colour
green
A green colour, codeG
.Settings.Colour
grey
A grey colour, codeE
.Settings.Colour
indigo
An indigo colour, codeI
.Settings.Colour
orange
An orange colour, codeO
.Settings.Colour
pink
A pink colour, codeP
.Settings.Colour
red
A red colour, codeR
.Settings.Colour
teal
A teal colour, codeT
.Settings.Colour
text
A default foreground colour, typically similar to the standard text colour.Settings.Colour
violet
A violet colour, codeV
.Settings.Colour
white
A white colour, code1
orH
.Settings.Colour
yellow
A yellow colour, codeY
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Settings.Colour
fromCode(char code)
Returns one of the colours in the variant, specified by code.Settings.Colour
get(int i)
Returns a colour by index instead of by name.
-
-
-
Field Detail
-
text
public final Settings.Colour text
A default foreground colour, typically similar to the standard text colour. CodeX
.
-
fill
public final Settings.Colour fill
A default background colour, typically similar to the standard component or menu background.F
.
-
red
public final Settings.Colour red
A red colour, codeR
.
-
orange
public final Settings.Colour orange
An orange colour, codeO
.
-
yellow
public final Settings.Colour yellow
A yellow colour, codeY
.
-
green
public final Settings.Colour green
A green colour, codeG
.
-
blue
public final Settings.Colour blue
A blue colour, codeB
.
-
indigo
public final Settings.Colour indigo
An indigo colour, codeI
.
-
violet
public final Settings.Colour violet
A violet colour, codeV
.
-
cyan
public final Settings.Colour cyan
A cyan colour, codeC
.
-
teal
public final Settings.Colour teal
A teal colour, codeT
.
-
brown
public final Settings.Colour brown
A brown colour, codeW
.
-
pink
public final Settings.Colour pink
A pink colour, codeP
.
-
grey
public final Settings.Colour grey
A grey colour, codeE
.
-
black
public final Settings.Colour black
A black colour, code0
orK
.
-
white
public final Settings.Colour white
A white colour, code1
orH
.
-
-
Method Detail
-
fromCode
public Settings.Colour fromCode(char code)
Returns one of the colours in the variant, specified by code.- Parameters:
code
- the case-insensitive code- Returns:
- the matching colour
- Throws:
java.lang.IllegalArgumentException
- if the code is invalid
-
get
public Settings.Colour get(int i)
Returns a colour by index instead of by name.- Parameters:
i
- the index- Returns:
- the matching colour
- Throws:
java.lang.IllegalArgumentException
- if the code is invalid
-
-