Class OverlayPalette
java.lang.Object
privbot.ui.overlay.OverlayPalette
The resolved colours of one overlay: the scheme's, with a custom scheme's per-colour overrides.
User-chosen colours reach a
Graphics2D only through here.
Every colour is OPAQUE RGB. Transparency comes from the opacity setting: apply it to
background exactly as OverlayTheme.cardBackground(int) does
(alpha = round(pct * 255 / 100)). Classic's card was (18, 20, 26, 200) with a
(51, 58, 72, 180) border; the palette keeps the RGB and drops those alphas, so a caller
gives the border the card's alpha (or OverlayTheme.CARD_BORDER's own 180 for Classic's exact look).
A line's own value colour wins over its status colour; LEVEL progress bars
use accent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.final ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.final ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.final ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.final ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.final ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.final ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.final ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.final ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.final ColorThe resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
Method Summary
Modifier and TypeMethodDescriptionstatic OverlayPaletteof(PaletteSettings settings) The palette a plugin's user chose: the built-in scheme's colours, or forPaletteSettings.Scheme.CUSTOMClassic's with each colour the settings give put in its place.
-
Field Details
-
background
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
border
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
title
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
label
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
value
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
accent
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
info
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
good
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
warn
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted. -
muted
The resolved colours, all opaque: cardbackgroundandborder,title, rowlabelandvalue,accent(LEVEL bars), and the status coloursinfo,good,warn,muted.
-
-
Method Details
-
of
The palette a plugin's user chose: the built-in scheme's colours, or forPaletteSettings.Scheme.CUSTOMClassic's with each colour the settings give put in its place.- Parameters:
settings- the user's choice; null, or a null scheme, is Classic- Returns:
- the palette, all colours opaque
-