You've already forked godot
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:
@@ -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"]);
|
||||
|
||||
1
scene/theme/icons/h_dragger.svg
Normal file
1
scene/theme/icons/h_dragger.svg
Normal 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 |
1
scene/theme/icons/v_dragger.svg
Normal file
1
scene/theme/icons/v_dragger.svg
Normal 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 |
Reference in New Issue
Block a user