You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wgui/doc/widgets.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ _They can be used in any widget/component._
60
60
61
61
`width`, `height`: **float** | **percent**
62
62
63
-
###Advanced attributes
63
+
## Advanced attributes
64
64
65
65
`interactable`: "1" | "0"
66
66
@@ -74,6 +74,32 @@ _Used in case of overlapping pop-ups or windows, most notably applied to various
74
74
75
75
_Set to 1 if you want to render overlapping pop-ups to properly render your widgets in order. Wgui renders with as few Vulkan drawcalls as possible, so this is your responsibility._
76
76
77
+
## Default Colors
78
+
79
+
_These colors can be defined by the user to control the color scheme. They always exists and can be used in any place a normal color could be used._
80
+
81
+
`~color_text`: default: white(#FFFFFF)
82
+
`~color_accent`: default: light blue(#21ADFF)
83
+
`~color_danger`: default: red(#E60000)
84
+
`~color_faded`: default: grey(#ABBDCC)
85
+
`~color_bg`: default: black(#00121ABF) (color_background in config)
86
+
87
+
_Only the default colors can be changed with the following suffixes._
88
+
89
+
`_translucent`
90
+
91
+
_Halves the alpha of the color._
92
+
93
+
`_10`
94
+
`_20`
95
+
`_30`
96
+
`_40`
97
+
`_50`
98
+
99
+
_Darkens the color by multiplying it with a percentage. `~color_accent_50` Would be half of the normal brightness but the same alpha. You can't combine the suffixes_
0 commit comments