You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Merge pull request #69053 from KoBeWi/grabbercentrism
Add center_grabber theme property to Slider
This commit is contained in:
@@ -1604,6 +1604,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
||||
theme->set_stylebox("slider", "HSlider", make_flat_stylebox(dark_color_3, 0, default_margin_size / 2, 0, default_margin_size / 2, corner_width));
|
||||
theme->set_stylebox("grabber_area", "HSlider", make_flat_stylebox(contrast_color_1, 0, default_margin_size / 2, 0, default_margin_size / 2, corner_width));
|
||||
theme->set_stylebox("grabber_area_highlight", "HSlider", make_flat_stylebox(contrast_color_1, 0, default_margin_size / 2, 0, default_margin_size / 2));
|
||||
theme->set_constant("center_grabber", "HSlider", 0);
|
||||
theme->set_constant("grabber_offset", "HSlider", 0);
|
||||
|
||||
// VSlider
|
||||
@@ -1612,6 +1613,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
||||
theme->set_stylebox("slider", "VSlider", make_flat_stylebox(dark_color_3, default_margin_size / 2, 0, default_margin_size / 2, 0, corner_width));
|
||||
theme->set_stylebox("grabber_area", "VSlider", make_flat_stylebox(contrast_color_1, default_margin_size / 2, 0, default_margin_size / 2, 0, corner_width));
|
||||
theme->set_stylebox("grabber_area_highlight", "VSlider", make_flat_stylebox(contrast_color_1, default_margin_size / 2, 0, default_margin_size / 2, 0));
|
||||
theme->set_constant("center_grabber", "VSlider", 0);
|
||||
theme->set_constant("grabber_offset", "VSlider", 0);
|
||||
|
||||
// RichTextLabel
|
||||
@@ -1868,6 +1870,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
||||
theme->set_constant("sv_height", "ColorPicker", 256 * EDSCALE);
|
||||
theme->set_constant("h_width", "ColorPicker", 30 * EDSCALE);
|
||||
theme->set_constant("label_width", "ColorPicker", 10 * EDSCALE);
|
||||
theme->set_constant("center_slider_grabbers", "ColorPicker", 1);
|
||||
theme->set_icon("screen_picker", "ColorPicker", theme->get_icon(SNAME("ColorPick"), SNAME("EditorIcons")));
|
||||
theme->set_icon("shape_circle", "ColorPicker", theme->get_icon(SNAME("PickerShapeCircle"), SNAME("EditorIcons")));
|
||||
theme->set_icon("shape_rect", "ColorPicker", theme->get_icon(SNAME("PickerShapeRectangle"), SNAME("EditorIcons")));
|
||||
|
||||
Reference in New Issue
Block a user