overlay

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PrimaryColor   walk.Color = walk.RGB(194, 176, 226)
	SecondaryColor walk.Color = walk.RGB(239, 108, 0)
	GreenColor     walk.Color = walk.RGB(76, 175, 80)
	YellowColor    walk.Color = walk.RGB(223, 235, 37)
	CyanColor      walk.Color = walk.RGB(0, 137, 123)
	RedColor       walk.Color = walk.RGB(255, 47, 0)
)

Functions

func AssignToConfig added in v0.8.1

func AssignToConfig(c *config.CaptureConfig, o *OverlayConfig)

func RunSettingsDialog added in v0.8.1

func RunSettingsDialog(owner walk.Form, conf interface{}, onSettingsSubmit func(c *OverlayConfig), invalidateFunc func()) (int, error)

Types

type Mode

type Mode int
const (
	ModePlacement Mode = iota
	ModeLive
)

type Overlay

type Overlay struct {
	// contains filtered or unexported fields
}

func New

func New(c *OverlayConfig, captureConfig *config.CaptureConfig) *Overlay

func (*Overlay) ChangeProperty

func (o *Overlay) ChangeProperty(prop WidgetProperty, text string, color *walk.Color)

func (*Overlay) Close

func (o *Overlay) Close()

func (*Overlay) Show

func (o *Overlay) Show()

func (*Overlay) ToggleOverlay

func (o *Overlay) ToggleOverlay()

type OverlayConfig

type OverlayConfig struct {
	FontFamily          string
	FontSize            int
	Color               walk.Color
	ColorText           string
	BackgroundColor     walk.Color
	BackgroundColorText string
	Spacing             int
}

func FromCaptureConfig added in v0.8.1

func FromCaptureConfig(c *config.CaptureConfig) *OverlayConfig

type OverlayDialog

type OverlayDialog struct {
	Dialog *walk.Dialog
	Widget *walk.CustomWidget
	// contains filtered or unexported fields
}

func CreateDialog

func CreateDialog(owner walk.Form, c *OverlayConfig, s *overlayState) *OverlayDialog

type ShortcutSetter added in v0.8.1

type ShortcutSetter interface {
	SetRecorderShortcut(int, walk.Shortcut)
}

type WidgetProperty

type WidgetProperty string
const (
	Status     WidgetProperty = "status"
	Weather    WidgetProperty = "weather"
	TODO       WidgetProperty = "todo"
	Override   WidgetProperty = "override"
	Autoupload WidgetProperty = "autoupload"
)

Jump to

Keyboard shortcuts

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