forked from zeozeozeo/microui-go
-
Notifications
You must be signed in to change notification settings - Fork 3
/
constants.go
49 lines (43 loc) · 1.14 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2024 The Ebitengine Authors
package debugui
import (
"image"
"image/color"
)
const (
containerPoolSize = 48
treeNodePoolSize = 48
)
const (
realFmt = "%.3g"
sliderFmt = "%.2f"
)
var defaultStyle style = style{
size: image.Pt(68, 10),
padding: 5,
spacing: 4,
indent: 24,
titleHeight: 24,
scrollbarSize: 12,
thumbSize: 8,
colors: [...]color.RGBA{
{230, 230, 230, 255}, // MU_COLOR_TEXT
{25, 25, 25, 255}, // MU_COLOR_BORDER
{50, 50, 50, 255}, // MU_COLOR_WINDOWBG
{25, 25, 25, 255}, // MU_COLOR_TITLEBG
{240, 240, 240, 255}, // MU_COLOR_TITLETEXT
{0, 0, 0, 0}, // MU_COLOR_PANELBG
{75, 75, 75, 255}, // MU_COLOR_BUTTON
{95, 95, 95, 255}, // MU_COLOR_BUTTONHOVER
{115, 115, 115, 255}, // MU_COLOR_BUTTONFOCUS
{30, 30, 30, 255}, // MU_COLOR_BASE
{35, 35, 35, 255}, // MU_COLOR_BASEHOVER
{40, 40, 40, 255}, // MU_COLOR_BASEFOCUS
{43, 43, 43, 255}, // MU_COLOR_SCROLLBASE
{30, 30, 30, 255}, // MU_COLOR_SCROLLTHUMB
},
}
var (
unclippedRect = image.Rect(0, 0, 0x1000000, 0x1000000)
)