theme

package
v0.2026.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Apply(c *ui.Context)

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

func DarkPalette() *ui.Theme

DarkPalette returns Onevra's dark palette. MyGo widgets branch on the Dark flag, so it stays set.

func LightPalette

func LightPalette() *ui.Theme

LightPalette returns Onevra's light palette.

func Onevra added in v0.2026.9

func Onevra(c *ui.Context) *ui.Theme

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.

func Palette added in v0.2026.9

func Palette(dark bool) *ui.Theme

Palette returns Onevra's dark palette when dark is set, and its light palette otherwise. It ignores the desktop's preferences; see Onevra.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL