-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.odin
54 lines (50 loc) · 1.28 KB
/
style.odin
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
50
51
52
53
54
package main
import "vendor:raylib"
loadStyle :: proc() {
raylib.GuiLoadStyle("assets/listview.rgs")
raylib.GuiSetStyle(
raylib.GuiControl.LISTVIEW,
i32(raylib.GuiControlProperty.TEXT_ALIGNMENT),
i32(raylib.GuiTextAlignment.TEXT_ALIGN_LEFT),
)
raylib.GuiSetStyle(
raylib.GuiControl.LISTVIEW,
i32(raylib.GuiControlProperty.TEXT_COLOR_FOCUSED),
i32(raylib.ColorToInt(raylib.WHITE)),
)
raylib.GuiSetStyle(
raylib.GuiControl.LISTVIEW,
i32(raylib.GuiControlProperty.BASE_COLOR_FOCUSED),
i32(raylib.ColorToInt(raylib.GRAY)),
)
raylib.GuiSetStyle(
raylib.GuiControl.LISTVIEW,
i32(raylib.GuiControlProperty.BASE_COLOR_PRESSED),
i32(raylib.ColorToInt(raylib.LIGHTGRAY)),
)
raylib.GuiSetStyle(
raylib.GuiControl.LISTVIEW,
i32(raylib.GuiControlProperty.BORDER_COLOR_FOCUSED),
i32(raylib.ColorToInt(raylib.GRAY)),
)
raylib.GuiSetStyle(
raylib.GuiControl.LISTVIEW,
i32(raylib.GuiControlProperty.BORDER_WIDTH),
i32(0),
)
raylib.GuiSetStyle(
raylib.GuiControl.LISTVIEW,
i32(raylib.GuiControlProperty.TEXT_PADDING),
i32(1),
)
raylib.GuiSetStyle(
raylib.GuiControl.LISTVIEW,
i32(raylib.GuiListViewProperty.LIST_ITEMS_SPACING),
i32(1),
)
raylib.GuiSetStyle(
raylib.GuiControl.LISTVIEW,
i32(raylib.GuiListViewProperty.LIST_ITEMS_HEIGHT),
i32(15),
)
}