Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Light = Palette{ Error: rgb(0xB00020), Surface: rgb(0xFFFFFF), Bg: rgb(0xDCDCDC), BgSecondary: rgb(0xEBEBEB), OnError: rgb(0xFFFFFF), OnSurface: rgb(0x000000), OnBg: rgb(0x000000), OnBgSecondary: rgb(0x000000), } Dark = Palette{ Error: rgb(0xB00020), Surface: rgb(0x222222), Bg: rgb(0x000000), BgSecondary: rgb(0x444444), OnError: rgb(0xFFFFFF), OnSurface: rgb(0xFFFFFF), OnBg: rgb(0xEEEEEE), OnBgSecondary: rgb(0xFFFFFF), } )
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page interface { Actions() []component.AppBarAction Overflow() []component.OverflowAction Layout(gtx layout.Context, th *Theme, loadSize int, quality string) layout.Dimensions ClickMainMenu(event component.AppBarEvent) }
type Palette ¶
type Palette struct { // Error used to indicate errors. Error color.NRGBA OnError color.NRGBA // Surface affect surfaces of components, such as cards, sheets and menus. Surface color.NRGBA OnSurface color.NRGBA // Bg appears behind scrollable content. Bg color.NRGBA OnBg color.NRGBA // BgSecondary appears behind scrollable content. BgSecondary color.NRGBA OnBgSecondary color.NRGBA }
Palette defines non-brand semantic colors.
`On` colors define a color that is appropriate to display atop its counterpart.
type Router ¶
type Router struct { *component.AppBar *component.ModalLayer NonModalDrawer, BottomBar bool *app.Window // contains filtered or unexported fields }
type Theme ¶
Theme wraps the material.Theme with useful application-specific theme information.
func (*Theme) UsePalette ¶
UsePalette changes to the specified palette.
type UserColorData ¶
UserColorData tracks both a color and its luminance.
Click to show internal directories.
Click to hide internal directories.