1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add option for a touch-friendly drag handle in SplitContainer

This commit is contained in:
Anish Mishra
2025-06-01 19:06:51 +05:30
parent 64b09905c7
commit bccf36b27b
6 changed files with 122 additions and 2 deletions

View File

@@ -1184,6 +1184,10 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
// Containers
theme->set_icon("h_touch_dragger", "SplitContainer", icons["h_dragger"]);
theme->set_icon("v_touch_dragger", "SplitContainer", icons["v_dragger"]);
theme->set_icon("touch_dragger", "VSplitContainer", icons["v_dragger"]);
theme->set_icon("touch_dragger", "HSplitContainer", icons["h_dragger"]);
theme->set_icon("h_grabber", "SplitContainer", icons["hsplitter"]);
theme->set_icon("v_grabber", "SplitContainer", icons["vsplitter"]);
theme->set_icon("grabber", "VSplitContainer", icons["vsplitter"]);

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="60"><rect width="28" height="58" x="1" y="1" fill="#e0e0e0" fill-opacity=".6" stroke="#000" stroke-width=".8" rx="7"/></svg>

After

Width:  |  Height:  |  Size: 184 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30"><rect width="58" height="28" x="1" y="1" fill="#e0e0e0" fill-opacity=".6" stroke="#000" stroke-width=".8" rx="7"/></svg>

After

Width:  |  Height:  |  Size: 184 B