assets

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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.ico
	GreenICO []byte

	//go:embed data/icons/pm_light_yellow_512.ico
	YellowICO []byte

	//go:embed data/icons/pm_light_red_512.ico
	RedICO []byte

	//go:embed data/icons/pm_light_blue_512.ico
	BlueICO []byte

	// ColoredIcons holds all the icons as .ICOs
	ColoredIcons = [4][]byte{
		GreenID:  GreenICO,
		YellowID: YellowICO,
		RedID:    RedICO,
		BlueID:   BlueICO,
	}
)

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