Use bound theme properties for documentation
This commit is contained in:
@ -243,75 +243,14 @@
|
||||
</signal>
|
||||
</signals>
|
||||
<theme_items>
|
||||
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
|
||||
Default text [Color] of the [OptionButton].
|
||||
</theme_item>
|
||||
<theme_item name="font_disabled_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.5)">
|
||||
Text [Color] used when the [OptionButton] is disabled.
|
||||
</theme_item>
|
||||
<theme_item name="font_focus_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
|
||||
Text [Color] used when the [OptionButton] is focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color.
|
||||
</theme_item>
|
||||
<theme_item name="font_hover_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
|
||||
Text [Color] used when the [OptionButton] is being hovered.
|
||||
</theme_item>
|
||||
<theme_item name="font_hover_pressed_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
|
||||
Text [Color] used when the [OptionButton] is being hovered and pressed.
|
||||
</theme_item>
|
||||
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
|
||||
The tint of text outline of the [OptionButton].
|
||||
</theme_item>
|
||||
<theme_item name="font_pressed_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
|
||||
Text [Color] used when the [OptionButton] is being pressed.
|
||||
</theme_item>
|
||||
<theme_item name="arrow_margin" data_type="constant" type="int" default="4">
|
||||
The horizontal space between the arrow icon and the right edge of the button.
|
||||
</theme_item>
|
||||
<theme_item name="h_separation" data_type="constant" type="int" default="4">
|
||||
The horizontal space between [OptionButton]'s icon and text. Negative values will be treated as [code]0[/code] when used.
|
||||
</theme_item>
|
||||
<theme_item name="modulate_arrow" data_type="constant" type="int" default="0">
|
||||
If different than [code]0[/code], the arrow icon will be modulated to the font color.
|
||||
</theme_item>
|
||||
<theme_item name="outline_size" data_type="constant" type="int" default="0">
|
||||
The size of the text outline.
|
||||
[b]Note:[/b] If using a font with [member FontFile.multichannel_signed_distance_field] enabled, its [member FontFile.msdf_pixel_range] must be set to at least [i]twice[/i] the value of [theme_item outline_size] for outline rendering to look correct. Otherwise, the outline may appear to be cut off earlier than intended.
|
||||
</theme_item>
|
||||
<theme_item name="font" data_type="font" type="Font">
|
||||
[Font] of the [OptionButton]'s text.
|
||||
</theme_item>
|
||||
<theme_item name="font_size" data_type="font_size" type="int">
|
||||
Font size of the [OptionButton]'s text.
|
||||
</theme_item>
|
||||
<theme_item name="arrow" data_type="icon" type="Texture2D">
|
||||
The arrow icon to be drawn on the right end of the button.
|
||||
</theme_item>
|
||||
<theme_item name="disabled" data_type="style" type="StyleBox">
|
||||
[StyleBox] used when the [OptionButton] is disabled (for left-to-right layouts).
|
||||
</theme_item>
|
||||
<theme_item name="disabled_mirrored" data_type="style" type="StyleBox">
|
||||
[StyleBox] used when the [OptionButton] is disabled (for right-to-left layouts).
|
||||
</theme_item>
|
||||
<theme_item name="focus" data_type="style" type="StyleBox">
|
||||
[StyleBox] used when the [OptionButton] is focused. The [code]focus[/code] [StyleBox] is displayed [i]over[/i] the base [StyleBox], so a partially transparent [StyleBox] should be used to ensure the base [StyleBox] remains visible. A [StyleBox] that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a [StyleBoxEmpty] resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.
|
||||
</theme_item>
|
||||
<theme_item name="hover" data_type="style" type="StyleBox">
|
||||
[StyleBox] used when the [OptionButton] is being hovered (for left-to-right layouts).
|
||||
</theme_item>
|
||||
<theme_item name="hover_mirrored" data_type="style" type="StyleBox">
|
||||
[StyleBox] used when the [OptionButton] is being hovered (for right-to-left layouts).
|
||||
</theme_item>
|
||||
<theme_item name="normal" data_type="style" type="StyleBox">
|
||||
Default [StyleBox] for the [OptionButton] (for left-to-right layouts).
|
||||
</theme_item>
|
||||
<theme_item name="normal_mirrored" data_type="style" type="StyleBox">
|
||||
Default [StyleBox] for the [OptionButton] (for right-to-left layouts).
|
||||
</theme_item>
|
||||
<theme_item name="pressed" data_type="style" type="StyleBox">
|
||||
[StyleBox] used when the [OptionButton] is being pressed (for left-to-right layouts).
|
||||
</theme_item>
|
||||
<theme_item name="pressed_mirrored" data_type="style" type="StyleBox">
|
||||
[StyleBox] used when the [OptionButton] is being pressed (for right-to-left layouts).
|
||||
</theme_item>
|
||||
</theme_items>
|
||||
</class>
|
||||
|
||||
Reference in New Issue
Block a user