Class MilkTheme
java.lang.Object
wiiuu.ui.MilkTheme
Choccy Milk's own look: Cocoa (dark) and Milk (light), following the computer unless chosen
(choccy.theme = auto, cocoa or milk; T switches). A chocolate band with drips across the top,
the glass of chocolate milk as its logo (also the window icon), rounded type when the computer
has some.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Colorfinal Colorthe chocolate band at the top, and the drips off itfinal Colorthe chocolate band at the top, and the drips off itfinal Colorthe page: a gradient from top to bottomfinal Colorthe page: a gradient from top to bottomfinal Colorthe chocolate in the glassfinal Colorthe chocolate in the glassstatic final MilkThemefinal booleanfinal Colorfinal Colorstatic final MilkThemefinal Stringfinal Colorlists sit on panelsfinal Colorlists sit on panelsfinal Colorthe chosen row: a chocolate pill, lighter at the topfinal Colorthe chosen row while the other column has the focusfinal Colorthe chosen row: a chocolate pill, lighter at the topfinal Colorthe chosen row: a chocolate pill, lighter at the topfinal Color -
Method Summary
Modifier and TypeMethodDescriptionstatic Colorstatic Shapedrips(int w, float bandH, float u, float grow) The band with drips hanging off its bottom edge;grow0..1 lets the drips run down.static Stringfamily()A rounded, friendly face when the computer has one; the standard sans otherwise.static Fontfont(int style, float size) static voidglass(Graphics2D g, float x, float y, float w, float h, float fill, float mix, float straw, float slosh, double phase, Color edge, Color milk, Color choc, Color chocLight) The logo: a glass at (x, y), w wide and h tall.static BufferedImageicon(int size) The app icon at one size: the glass on a rounded chocolate square.static List<BufferedImage> icons()Icons for the window (each size drawn on its own, so small ones stay crisp).static ColorvoidpaintPage(Graphics2D g, int w, int h, float bandH, float u, long now) The background, and the chocolate band at the top (bandHtall, drips below it).voidpick(Graphics2D g, float x, float y, float w, float h, float u, boolean focused) The chosen row's pill.static MilkThemeThe look to use: choccy.theme, or the computer's dark / light mode.voidshadow(Graphics2D g, float x, float y, float w, float h, float r, float u) A soft shadow under a rounded panel.static Shapewave(float x, float y, float w, float amp, float waves, double phase) A gentle wave from (x, y) across w.
-
Field Details
-
name
-
dark
public final boolean dark -
bgTop
the page: a gradient from top to bottom -
bgBottom
the page: a gradient from top to bottom -
band
the chocolate band at the top, and the drips off it -
bandShade
the chocolate band at the top, and the drips off it -
panel
lists sit on panels -
panelEdge
lists sit on panels -
pickTop
the chosen row: a chocolate pill, lighter at the top -
pickBottom
the chosen row: a chocolate pill, lighter at the top -
pickText
the chosen row: a chocolate pill, lighter at the top -
pickIdle
the chosen row while the other column has the focus -
text
-
dim
-
accent
-
milk
-
choc
the chocolate in the glass -
chocLight
the chocolate in the glass -
COCOA
-
MILK
-
-
Method Details
-
pick
-
family
A rounded, friendly face when the computer has one; the standard sans otherwise. -
font
-
paintPage
The background, and the chocolate band at the top (bandHtall, drips below it). -
drips
The band with drips hanging off its bottom edge;grow0..1 lets the drips run down. -
wave
A gentle wave from (x, y) across w. -
shadow
A soft shadow under a rounded panel. -
pick
The chosen row's pill. -
glass
public static void glass(Graphics2D g, float x, float y, float w, float h, float fill, float mix, float straw, float slosh, double phase, Color edge, Color milk, Color choc, Color chocLight) The logo: a glass at (x, y), w wide and h tall. fill 0..1 is how full it is, mix 0..1 how much chocolate is stirred in (0: plain milk), straw 0..1 how far the straw is in (0: none), slosh a little wave on the top, phase moves it. -
mix
-
alpha
-
icon
The app icon at one size: the glass on a rounded chocolate square. -
icons
Icons for the window (each size drawn on its own, so small ones stay crisp).
-