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.ColourblackA black colour, code0orK.Settings.ColourblueA blue colour, codeB.Settings.ColourbrownA brown colour, codeW.Settings.ColourcyanA cyan colour, codeC.Settings.ColourfillA default background colour, typically similar to the standard component or menu background.Settings.ColourgreenA green colour, codeG.Settings.ColourgreyA grey colour, codeE.Settings.ColourindigoAn indigo colour, codeI.Settings.ColourorangeAn orange colour, codeO.Settings.ColourpinkA pink colour, codeP.Settings.ColourredA red colour, codeR.Settings.ColourtealA teal colour, codeT.Settings.ColourtextA default foreground colour, typically similar to the standard text colour.Settings.ColourvioletA violet colour, codeV.Settings.ColourwhiteA white colour, code1orH.Settings.ColouryellowA yellow colour, codeY.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Settings.ColourfromCode(char code)Returns one of the colours in the variant, specified by code.Settings.Colourget(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, code0orK.
-
white
public final Settings.Colour white
A white colour, code1orH.
-
-
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
-
-