Merge pull request #112441 from YeldhamDev/scrollbar_padding
Allow to add padding to `ScrollBar`s
This commit is contained in:
@ -8,4 +8,14 @@
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<theme_items>
|
||||
<theme_item name="padding_bottom" data_type="constant" type="int" default="0">
|
||||
Padding between the bottom of the [theme_item ScrollBar.scroll] element and the [theme_item ScrollBar.grabber].
|
||||
[b]Note:[/b] To apply horizontal padding, modify the left/right content margins of [theme_item ScrollBar.scroll] instead.
|
||||
</theme_item>
|
||||
<theme_item name="padding_top" data_type="constant" type="int" default="0">
|
||||
Padding between the top of the [theme_item ScrollBar.scroll] element and the [theme_item ScrollBar.grabber].
|
||||
[b]Note:[/b] To apply horizontal padding, modify the left/right content margins of [theme_item ScrollBar.scroll] instead.
|
||||
</theme_item>
|
||||
</theme_items>
|
||||
</class>
|
||||
|
||||
@ -12,4 +12,14 @@
|
||||
<member name="size_flags_horizontal" type="int" setter="set_h_size_flags" getter="get_h_size_flags" overrides="Control" enum="Control.SizeFlags" is_bitfield="true" default="0" />
|
||||
<member name="size_flags_vertical" type="int" setter="set_v_size_flags" getter="get_v_size_flags" overrides="Control" enum="Control.SizeFlags" is_bitfield="true" default="1" />
|
||||
</members>
|
||||
<theme_items>
|
||||
<theme_item name="padding_left" data_type="constant" type="int" default="0">
|
||||
Padding between the left of the [theme_item ScrollBar.scroll] element and the [theme_item ScrollBar.grabber].
|
||||
[b]Note:[/b] To apply vertical padding, modify the top/bottom content margins of [theme_item ScrollBar.scroll] instead.
|
||||
</theme_item>
|
||||
<theme_item name="padding_right" data_type="constant" type="int" default="0">
|
||||
Padding between the right of the [theme_item ScrollBar.scroll] element and the [theme_item ScrollBar.grabber].
|
||||
[b]Note:[/b] To apply vertical padding, modify the top/bottom content margins of [theme_item ScrollBar.scroll] instead.
|
||||
</theme_item>
|
||||
</theme_items>
|
||||
</class>
|
||||
|
||||
Reference in New Issue
Block a user