Wiki

Clone wiki

Mono:UI / Concepts / Themes

INTRODUCED: v0.1.0
LAST UPDATED: v0.1.1

Themes

Themes are an array of length 4, each index filled with an integer number between $0 and $ffffff. Mono:UI introduces this concept as an easy way to customise the way its elements look.
A number of Themes already exist and are built-in. These are meant as useful defaults and not as absolute standards, so overriding them with your own Themes is recommended.
The default Themes do not use names describing their colours, but instead the general feeling that they convey.

Structure

[
    primary,
    secondary,
    text,
    border
]

Usage

m_make_theme( "foo", c_blue, c_green, c_yellow, c_red );

var _theme = m_get_theme( "foo" );
draw_set_colour( _theme[ __mono_EColour.text ] );
draw_text( 0, 0, "Hello World!" );

// Result: "Hello World!" in c_yellow

Default Themes

Theme Primary Secondary Text Border Example
"mild" Sample #DCDCDC Sample #C8C8C8 Sample #000000 Sample #AAAAAA Button
"bright" Sample #FAFAFA Sample #EBEBEB Sample #000000 Sample #DCDCDC Button
"dark" Sample #282828 Sample #3C3C3C Sample #FFFFFF Sample #141414 Button
"dangerous" Sample #F02828 Sample #FF5050 Sample #FFFFFF Sample #BE1414 Button
"bold" Sample #2864F0 Sample #5082FF Sample #FFFFFF Sample #1450C8 Button
"energetic" Sample #DCBE28 Sample #E6D250 Sample #FFFFFF Sample #B4A014 Button
"pleasant" Sample #28C828 Sample #50DC50 Sample #FFFFFF Sample #149614 Button

See Also

Updated