assets

package
v1.6.23 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GreenID  = 0
	YellowID = 1
	RedID    = 2
	BlueID   = 3
)

Colored Icon IDs.

Variables

View Source
var (
	//go:embed data/icons/pm_light_green_512.png
	GreenPNG []byte

	//go:embed data/icons/pm_light_yellow_512.png
	YellowPNG []byte

	//go:embed data/icons/pm_light_red_512.png
	RedPNG []byte

	//go:embed data/icons/pm_light_blue_512.png
	BluePNG []byte

	// ColoredIcons holds all the icons as .PNGs.
	ColoredIcons [4][]byte
)

Icons.

View Source
var PNG []byte

Functions

func ScaleColoredIconsTo

func ScaleColoredIconsTo(pixelSize int)

ScaleColoredIconsTo scales all colored icons to the given size. It must be called before any colored icons are used. It does nothing on Windows.

Types

This section is empty.

Jump to

Keyboard shortcuts

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