theme

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 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 builds ZPad's light and dark palettes for the native UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveTab

func ActiveTab(t *ui.Theme) ui.Color

ActiveTab is the chosen tab's background.

func Dark

func Dark() *ui.Theme

Dark returns the dark palette.

func EditorTheme

func EditorTheme(t *ui.Theme) *editor.Theme

EditorTheme colors the code editor to match t.

func FileTree

func FileTree(t *ui.Theme) *ui.Theme

FileTree returns the palette of the sidebar's tree: the chosen row is a faint, full-width wash rather than a filled accent, as VS Code's and Zed's file trees, and its text keeps the normal color.

func For

func For(dark bool) *ui.Theme

For returns the palette for an appearance.

func Inverse

func Inverse(t *ui.Theme) (fill, text ui.Color)

Inverse is the fill of a tip and the color of text on it, as MyGo's own tooltip and toast choose them: the theme's Inverse and InverseText where it sets them, the text on the background otherwise. A tip that MyGo cannot place shares the look of the ones it can.

func Light

func Light() *ui.Theme

Light returns the light palette.

func Sidebar(t *ui.Theme) ui.Color

Sidebar is the sidebar's background.

func TabBar

func TabBar(t *ui.Theme) ui.Color

TabBar is the tab bar's background.

Types

This section is empty.

Jump to

Keyboard shortcuts

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