Documentation
¶
Overview ¶
Package theme provides the Onevra design style's light and dark palettes: warm neutrals with a shared terracotta accent.
The palettes are ui.Theme values applied through MyGo's own theme mechanism, so every MyGo widget keeps working unchanged. Applications choose light or dark with mygo.Theme.SetSource and choose the palette themselves: pass Onevra as a Shell's Theme option, install it with Apply, or supply a ui.Theme of their own.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply installs Onevra for the current frame. Call it at the start of the root content builder, before creating any widgets: SetTheme only affects the window root and the widgets created after the call. MyGo reruns the frame when the appearance or the desktop's preferences change.
func DarkPalette ¶
DarkPalette returns Onevra's dark palette. MyGo widgets branch on the Dark flag, so it stays set.
func Onevra ¶ added in v0.2026.9
Onevra returns the palette matching the frame's light or dark appearance, which follows mygo.Theme's source. Like MyGo's default theme, it follows the desktop's text scale and higher contrast; it keeps Onevra's own accent rather than the desktop's.
Its signature fits a Shell's Theme option. Windows a Shell does not create install it with Apply.
Types ¶
This section is empty.