Skip to content

Commit 6f9ca5b

Browse files
Earthgamesgalister
authored andcommitted
Added documentation for default colors
1 parent c54b211 commit 6f9ca5b

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

wgui/doc/widgets.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ _They can be used in any widget/component._
6060

6161
`width`, `height`: **float** | **percent**
6262

63-
### Advanced attributes
63+
## Advanced attributes
6464

6565
`interactable`: "1" | "0"
6666

@@ -74,6 +74,32 @@ _Used in case of overlapping pop-ups or windows, most notably applied to various
7474

7575
_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._
7676

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_
100+
101+
### Color
102+
77103
# Widgets
78104

79105
## div widget

0 commit comments

Comments
 (0)