You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Slider: Add tick position property and tick offset theme item
Allow ticks to be placed at the top, bottom, or center with custom offset.
This commit is contained in:
@@ -588,6 +588,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
|
||||
theme->set_constant("center_grabber", "HSlider", 0);
|
||||
theme->set_constant("grabber_offset", "HSlider", 0);
|
||||
theme->set_constant("tick_offset", "HSlider", 0);
|
||||
|
||||
// VSlider
|
||||
|
||||
@@ -602,6 +603,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
|
||||
theme->set_constant("center_grabber", "VSlider", 0);
|
||||
theme->set_constant("grabber_offset", "VSlider", 0);
|
||||
theme->set_constant("tick_offset", "VSlider", 0);
|
||||
|
||||
// SpinBox
|
||||
|
||||
|
||||
Reference in New Issue
Block a user