TinyMaterialDesign
Loading...
Searching...
No Matches
Public Attributes | List of all members
MaterialTheme< RGB_T > Struct Template Reference

Bundles a color scheme, shape tokens, typography, and spacing into one theme, passed to widgets so they all draw with consistent styling. More...

#include <MaterialTheme.h>

Collaboration diagram for MaterialTheme< RGB_T >:
Collaboration graph
[legend]

Public Attributes

ColorScheme< RGB_T > colors
 
ShapeTokens shape
 
Typography< RGB_T > typography
 
int32_t spacing = 8
 
bool enableRipple = true
 

Detailed Description

template<typename RGB_T = TINYMD_DEFAULT_RGB_T>
struct tinymd::MaterialTheme< RGB_T >

Bundles a color scheme, shape tokens, typography, and spacing into one theme, passed to widgets so they all draw with consistent styling.

Member Data Documentation

◆ colors

ColorScheme<RGB_T> colors

◆ enableRipple

bool enableRipple = true

Grows/fades a circle from the touch point on Button taps. Set false on very constrained targets to skip the per-frame update()/redraw cost.

◆ shape

ShapeTokens shape

◆ spacing

int32_t spacing = 8

◆ typography

Typography<RGB_T> typography

The documentation for this struct was generated from the following file: