Add theme colors to touch dragger and fix touch dragger icon theme

This commit is contained in:
Koyper
2025-07-17 12:50:41 -05:00
parent 987832be46
commit 21144401c3
4 changed files with 28 additions and 6 deletions

View File

@@ -94,6 +94,15 @@
</constant>
</constants>
<theme_items>
<theme_item name="touch_dragger_color" data_type="color" type="Color" default="Color(1, 1, 1, 0.3)">
The color of the touch dragger.
</theme_item>
<theme_item name="touch_dragger_hover_color" data_type="color" type="Color" default="Color(1, 1, 1, 0.6)">
The color of the touch dragger when hovered.
</theme_item>
<theme_item name="touch_dragger_pressed_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
The color of the touch dragger when pressed.
</theme_item>
<theme_item name="autohide" data_type="constant" type="int" default="1">
Boolean value. If [code]1[/code] ([code]true[/code]), the grabber will hide automatically when it isn't under the cursor. If [code]0[/code] ([code]false[/code]), it's always visible. The [member dragger_visibility] must be [constant DRAGGER_VISIBLE].
</theme_item>