Merge pull request #105994 from syntaxerror247/split_container

Add option for a touch-friendly drag handle in `SplitContainer`
This commit is contained in:
Rémi Verschelde
2025-06-05 13:11:14 +02:00
15 changed files with 157 additions and 17 deletions

View File

@ -1192,6 +1192,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