colors.go 614 Bytes
Newer Older
Loïck Bonniot's avatar
Loïck Bonniot committed
1
2
package gui

Loïck Bonniot's avatar
Loïck Bonniot committed
3
4
// This file stores useful colors

Loïck Bonniot's avatar
Loïck Bonniot committed
5
6
7
import "github.com/visualfc/goqt/ui"

var colors = map[string]uint32{
8
9
10
11
12
13
14
	"red":    0x00ff0000,
	"green":  0x0000aa00,
	"blue":   0x000000ff,
	"black":  0x00000000,
	"purple": 0x00aa00aa,
	"lime":   0x0000ee00,
	"grey":   0x00888888,
Loïck Bonniot's avatar
Loïck Bonniot committed
15
16
17
18
19
20
21
}

var pen_black = ui.NewPenWithColor(ui.NewColorWithGlobalcolor(ui.Qt_black))
var pen_gray = ui.NewPenWithColor(ui.NewColorWithGlobalcolor(ui.Qt_gray))

var brush_none = ui.NewBrushWithGlobalcolorBrushstyle(ui.Qt_transparent, ui.Qt_SolidPattern)
var brush_black = ui.NewBrushWithGlobalcolorBrushstyle(ui.Qt_black, ui.Qt_SolidPattern)