@@ -23,6 +23,10 @@ public class UiStyle : GenericDataHolder {
2323 /// </summary>
2424 public NinePatch SelectionIndicator ;
2525 /// <summary>
26+ /// The color of the selector that is rendered on top of the <see cref="UiControls.SelectedElement"/>
27+ /// </summary>
28+ public Color SelectionColor = Color . White ;
29+ /// <summary>
2630 /// A <see cref="UiAnimation"/> that is played when the mouse enters an element.
2731 /// </summary>
2832 public UiAnimation MouseEnterAnimation ;
@@ -35,6 +39,10 @@ public class UiStyle : GenericDataHolder {
3539 /// </summary>
3640 public NinePatch ButtonTexture ;
3741 /// <summary>
42+ /// The color that the <see cref="Button"/> element renders
43+ /// </summary>
44+ public Color ButtonColor = Color . White ;
45+ /// <summary>
3846 /// The texture that the <see cref="Button"/> element uses when it is moused over (<see cref="Element.IsMouseOver"/>)
3947 /// Note that, if you just want to change the button's color when hovered, use <see cref="ButtonHoveredColor"/>.
4048 /// </summary>
@@ -76,10 +84,18 @@ public class UiStyle : GenericDataHolder {
7684 /// </summary>
7785 public float PanelScrollBarOffset = 1 ;
7886 /// <summary>
87+ /// The text color of text the <see cref="TextField"/> element uses
88+ /// </summary>
89+ public Color TextFieldTextColor = Color . White ;
90+ /// <summary>
7991 /// The texture that the <see cref="TextField"/> element uses
8092 /// </summary>
8193 public NinePatch TextFieldTexture ;
8294 /// <summary>
95+ /// The color that the <see cref="TextField"/> renders with when it is idle
96+ /// </summary>
97+ public Color TextFieldColor = Color . LightGray ;
98+ /// <summary>
8399 /// The texture that the <see cref="TextField"/> element uses when it is moused over (<see cref="Element.IsMouseOver"/>)
84100 /// </summary>
85101 public NinePatch TextFieldHoveredTexture ;
@@ -100,10 +116,18 @@ public class UiStyle : GenericDataHolder {
100116 /// </summary>
101117 public NinePatch ScrollBarBackground ;
102118 /// <summary>
119+ /// The background color that the <see cref="ScrollBar"/> element uses
120+ /// </summary>
121+ public Color ScrollBarBackColor = Color . White ;
122+ /// <summary>
103123 /// The texture that the scroll indicator of the <see cref="ScrollBar"/> element uses
104124 /// </summary>
105125 public NinePatch ScrollBarScrollerTexture ;
106126 /// <summary>
127+ /// The color that the scroll indicator of the <see cref="ScrollBar"/> element uses
128+ /// </summary>
129+ public Color ScrollBarScrollerColor = Color . White ;
130+ /// <summary>
107131 /// Whether or not a <see cref="ScrollBar"/> should use smooth scrolling
108132 /// </summary>
109133 public bool ScrollBarSmoothScrolling ;
@@ -116,6 +140,10 @@ public class UiStyle : GenericDataHolder {
116140 /// </summary>
117141 public NinePatch CheckboxTexture ;
118142 /// <summary>
143+ /// The color that the <see cref="Checkbox"/> element uses
144+ /// </summary>
145+ public Color CheckboxColor = Color . White ;
146+ /// <summary>
119147 /// The texture that the <see cref="Checkbox"/> element uses when it is moused over (<see cref="Element.IsMouseOver"/>)
120148 /// </summary>
121149 public NinePatch CheckboxHoveredTexture ;
@@ -136,6 +164,15 @@ public class UiStyle : GenericDataHolder {
136164 /// </summary>
137165 public TextureRegion CheckboxCheckmark ;
138166 /// <summary>
167+ /// The color of the check mark that the <see cref="Checkbox"/> element uses when it is <see cref="Checkbox.Checked"/>
168+ /// </summary>
169+ public Color CheckboxCheckColor = Color . White ;
170+ /// <summary>
171+ /// The color of the check mark that the <see cref="Checkbox"/> element uses when it is not <see cref="Checkbox.Checked"/>.
172+ /// Set alpha to 0 to disable this behavior
173+ /// </summary>
174+ public Color CheckboxUncheckedColor = Color . Transparent ;
175+ /// <summary>
139176 /// The width of the space between a <see cref="Checkbox"/> and its <see cref="Checkbox.Label"/>
140177 /// </summary>
141178 public float CheckboxTextOffsetX = 2 ;
@@ -144,6 +181,10 @@ public class UiStyle : GenericDataHolder {
144181 /// </summary>
145182 public NinePatch RadioTexture ;
146183 /// <summary>
184+ /// The color that the <see cref="RadioButton"/> element uses
185+ /// </summary>
186+ public Color RadioColor = Color . White ;
187+ /// <summary>
147188 /// The texture that the <see cref="RadioButton"/> element uses when it is moused over (<see cref="Element.IsMouseOver"/>)
148189 /// </summary>
149190 public NinePatch RadioHoveredTexture ;
@@ -156,10 +197,23 @@ public class UiStyle : GenericDataHolder {
156197 /// </summary>
157198 public TextureRegion RadioCheckmark ;
158199 /// <summary>
200+ /// The color of the check mark that the <see cref="RadioButton"/> uses when it is <see cref="Checkbox.Checked"/>
201+ /// </summary>
202+ public Color RadioCheckColor = Color . White ;
203+ /// <summary>
204+ /// The color of the check mark that the <see cref="RadioButton"/> uses when it is not <see cref="Checkbox.Checked"/>
205+ /// Set the alpha to 0 to disable this behavior
206+ /// </summary>
207+ public Color RadioUncheckedColor = Color . Transparent ;
208+ /// <summary>
159209 /// The texture that the <see cref="Tooltip"/> uses for its background
160210 /// </summary>
161211 public NinePatch TooltipBackground ;
162212 /// <summary>
213+ /// The color that the <see cref="Tooltip"/> uses for its background
214+ /// </summary>
215+ public Color TooltipBackColor = Color . White ;
216+ /// <summary>
163217 /// The offset of the <see cref="Tooltip"/> element's top left corner from the mouse position
164218 /// </summary>
165219 public Vector2 TooltipOffset = new Vector2 ( 8 , 16 ) ;
@@ -286,9 +340,11 @@ public UiStyle() {}
286340 /// <param name="original">The original style settings, to copy into the new instance.</param>
287341 public UiStyle ( UiStyle original ) {
288342 this . SelectionIndicator = original . SelectionIndicator ;
343+ this . SelectionColor = original . SelectionColor ;
289344 this . MouseEnterAnimation = original . MouseEnterAnimation ;
290345 this . MouseExitAnimation = original . MouseExitAnimation ;
291346 this . ButtonTexture = original . ButtonTexture ;
347+ this . ButtonColor = original . ButtonColor ;
292348 this . ButtonHoveredTexture = original . ButtonHoveredTexture ;
293349 this . ButtonHoveredColor = original . ButtonHoveredColor ;
294350 this . ButtonDisabledTexture = original . ButtonDisabledTexture ;
@@ -300,26 +356,36 @@ public UiStyle(UiStyle original) {
300356 this . PanelScrollerSize = original . PanelScrollerSize ;
301357 this . PanelScrollBarOffset = original . PanelScrollBarOffset ;
302358 this . TextFieldTexture = original . TextFieldTexture ;
359+ this . TextFieldColor = original . TextFieldColor ;
303360 this . TextFieldHoveredTexture = original . TextFieldHoveredTexture ;
304361 this . TextFieldHoveredColor = original . TextFieldHoveredColor ;
305362 this . TextFieldTextOffsetX = original . TextFieldTextOffsetX ;
306363 this . TextFieldCaretWidth = original . TextFieldCaretWidth ;
307364 this . ScrollBarBackground = original . ScrollBarBackground ;
365+ this . ScrollBarBackColor = original . ScrollBarBackColor ;
308366 this . ScrollBarScrollerTexture = original . ScrollBarScrollerTexture ;
367+ this . ScrollBarScrollerColor = original . ScrollBarScrollerColor ;
309368 this . ScrollBarSmoothScrolling = original . ScrollBarSmoothScrolling ;
310369 this . ScrollBarSmoothScrollFactor = original . ScrollBarSmoothScrollFactor ;
311370 this . CheckboxTexture = original . CheckboxTexture ;
371+ this . CheckboxColor = original . CheckboxColor ;
312372 this . CheckboxHoveredTexture = original . CheckboxHoveredTexture ;
313373 this . CheckboxHoveredColor = original . CheckboxHoveredColor ;
314374 this . CheckboxDisabledTexture = original . CheckboxDisabledTexture ;
315375 this . CheckboxDisabledColor = original . CheckboxDisabledColor ;
316376 this . CheckboxCheckmark = original . CheckboxCheckmark ;
377+ this . CheckboxCheckColor = original . CheckboxCheckColor ;
378+ this . CheckboxUncheckedColor = original . CheckboxUncheckedColor ;
317379 this . CheckboxTextOffsetX = original . CheckboxTextOffsetX ;
318380 this . RadioTexture = original . RadioTexture ;
381+ this . RadioColor = original . RadioColor ;
319382 this . RadioHoveredTexture = original . RadioHoveredTexture ;
320383 this . RadioHoveredColor = original . RadioHoveredColor ;
321384 this . RadioCheckmark = original . RadioCheckmark ;
385+ this . RadioCheckColor = original . RadioCheckColor ;
386+ this . RadioUncheckedColor = original . RadioUncheckedColor ;
322387 this . TooltipBackground = original . TooltipBackground ;
388+ this . TooltipBackColor = original . TooltipBackColor ;
323389 this . TooltipOffset = original . TooltipOffset ;
324390 this . TooltipAutoNavOffset = original . TooltipAutoNavOffset ;
325391 this . TooltipAutoNavAnchor = original . TooltipAutoNavAnchor ;
0 commit comments