generated from Patitotective/ImTemplate
-
Notifications
You must be signed in to change notification settings - Fork 79
/
config.toml
109 lines (105 loc) · 2.85 KB
/
config.toml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# App
name = "ImThemes"
comment = "ImThemes is a Dear ImGui theme designer and browser written in Nim"
version = "0.2.6"
website = "https://github.com/Patitotective/ImThemes"
authors = ["Patitotective <https://github.com/Patitotective>"]
categories = ["Utility"]
# AppImage
ghRepo = "Patitotective/ImThemes"
stylePath = "assets/style.toml"
iconPath = "assets/icon.png"
svgIconPath = "assets/icon.svg"
iconFontPath = "assets/forkawesome-webfont.ttf"
fontPath = "assets/Karla-Regular.ttf"
strongFontPath = "assets/Karla-Bold.ttf"
fontSize = 18.0
# Window
minSize = [700, 500] # Width, height
# Settings for the preferences window
[[settings]]
name = "input"
type = "input"
default = "Hello World"
max = 100
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiInputTextFlags
help = "Help message"
[[settings]]
name = "hintInput"
display = "Input with hint"
hint = "type something"
type = "input"
default = ""
max = 100
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiInputTextFlags
help = "Help message"
[[settings]]
name = "checkbox"
type = "check"
default = true
[[settings]]
name = "combo"
type = "combo"
default = 2 # Or "c"
items = ["a", "b", "c"]
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiComboFlags
[[settings]]
name = "radio"
type = "radio"
default = "b" # Or 1
items = ["a", "b", "c"]
[[settings]]
name = "numbers"
display = "Spinners and sliders"
type = "section"
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiTreeNodeFlags
[[settings.content]]
name = "slider"
type = "slider"
default = 4
min = 0
max = 9
format = "%d"
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiSliderFlags
[[settings.content]]
name = "floatSider"
display = "Float slider"
type = "fslider" # For floats
default = 2.5
min = 0.0
max = 5.0
format = "%.1f"
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiSliderFlags
[[settings.content]]
name = "spin"
type = "spin" # Input int
default = 5
step = 1
step_fast = 10
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiInputTextFlags
[[settings.content]]
name = "floatSpin"
display = "Float spin"
type = "fspin" # Input float
default = 5.0
step = 1.0
step_fast = 10.0
format = "%.1f"
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiInputTextFlags
[[settings]]
name = "colors"
display = "Color pickers"
type = "section"
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiTreeNodeFlags
[[settings.content]]
name = "color"
display = "RGB color"
type = "color3" # RGB
default = "#000000" # Or [0, 0, 0] or rgb(0, 0, 0) or black
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiColorEditFlags
[[settings.content]]
name = "alphaColor"
display = "RGBA color"
type = "color4" # RGBA
default = "rgba(17, 209, 194, 0.64)" # Or [0.06666667014360428, 0.8196078538894653, 0.7607843279838562, 0.6392157077789307]
flags = "None" # See https://nimgl.dev/docs/imgui.html#ImGuiColorEditFlags