theme

package
v0.0.0-...-20a9d7b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ButtonBackgroundColor = render.RGBA(200, 200, 200, 255)
	ButtonHoverColor      = render.RGBA(200, 255, 255, 255)
	ButtonOutlineColor    = render.Black
	InputBackgroundColor  = render.White

	BorderColorOffset = 40
)

Color schemes.

View Source
var Default = Theme{
	Name:     "Default",
	Label:    &style.DefaultLabel,
	Button:   &style.DefaultButton,
	ListBox:  &style.DefaultListBox,
	Tooltip:  &style.DefaultTooltip,
	TabFrame: &style.DefaultButton,
}

Default theme.

View Source
var DefaultDark = Theme{
	Name: "DefaultDark",
	Label: &style.Label{
		Foreground: render.Grey,
	},
	Window: &style.Window{
		ActiveTitleBackground:   render.Red,
		ActiveTitleForeground:   render.White,
		InactiveTitleBackground: render.DarkGrey,
		InactiveTitleForeground: render.Grey,
		ActiveBackground:        render.Black,
		InactiveBackground:      render.Black,
	},
	Button: &style.Button{
		Background:      render.Black,
		Foreground:      render.Grey,
		OutlineColor:    render.DarkGrey,
		OutlineSize:     1,
		HoverBackground: render.Grey,
		BorderStyle:     style.BorderRaised,
		BorderSize:      2,
	},
	Tooltip: &style.Tooltip{
		Background: render.RGBA(60, 60, 60, 230),
		Foreground: render.Cyan,
	},
	TabFrame: &style.Button{
		Background:      render.DarkGrey,
		Foreground:      render.Grey,
		OutlineColor:    render.DarkGrey,
		OutlineSize:     1,
		HoverBackground: render.Grey,
		BorderStyle:     style.BorderRaised,
		BorderSize:      2,
	},
}

DefaultDark is a dark version of the default theme.

View Source
var DefaultFlat = Theme{
	Name: "DefaultFlat",
	Button: &style.Button{
		Background:      style.DefaultButton.Background,
		Foreground:      style.DefaultButton.Foreground,
		OutlineColor:    style.DefaultButton.OutlineColor,
		OutlineSize:     1,
		HoverBackground: style.DefaultButton.HoverBackground,
		HoverForeground: style.DefaultButton.HoverForeground,
		BorderStyle:     style.BorderSolid,
		BorderSize:      2,
	},
	TabFrame: &style.Button{
		Background:      style.DefaultButton.Background,
		Foreground:      style.DefaultButton.Foreground,
		OutlineColor:    style.DefaultButton.OutlineColor,
		OutlineSize:     1,
		HoverBackground: style.DefaultButton.HoverBackground,
		HoverForeground: style.DefaultButton.HoverForeground,
		BorderStyle:     style.BorderSolid,
		BorderSize:      2,
	},
}

DefaultFlat is a flat version of the default theme.

Functions

This section is empty.

Types

type Theme

type Theme struct {
	Name     string
	Window   *style.Window
	Label    *style.Label
	Button   *style.Button
	ListBox  *style.ListBox
	Tooltip  *style.Tooltip
	TabFrame *style.Button
}

Theme is a collection of styles for various built-in widgets.

Jump to

Keyboard shortcuts

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