You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
ColorPicker UX improvements
- Tabs and MenuButton for mode selection and enabling/disabling colorized sliders - MenuButton for shape selection with new icon for each shape - Drag and drop functionality for presets to arrange order - A chronological list of recently selected presets which are global for the editor - Presets are now highlighted as being active or inactive - Thicker sliders for easy targeting - `grabber_offset` theme constant for Slider - Uncolorized sliders
This commit is contained in:
@@ -227,7 +227,7 @@ void Slider::_notification(int p_what) {
|
||||
tick->draw(ci, Point2i((size.width - widget_width) / 2, ofs));
|
||||
}
|
||||
}
|
||||
grabber->draw(ci, Point2i(size.width / 2 - grabber->get_size().width / 2, size.height - ratio * areasize - grabber->get_size().height));
|
||||
grabber->draw(ci, Point2i(size.width / 2 - grabber->get_size().width / 2 + get_theme_constant(SNAME("grabber_offset")), size.height - ratio * areasize - grabber->get_size().height));
|
||||
} else {
|
||||
int widget_height = style->get_minimum_size().height + style->get_center_size().height;
|
||||
double areasize = size.width - grabber->get_size().width;
|
||||
@@ -245,7 +245,7 @@ void Slider::_notification(int p_what) {
|
||||
tick->draw(ci, Point2i(ofs, (size.height - widget_height) / 2));
|
||||
}
|
||||
}
|
||||
grabber->draw(ci, Point2i(ratio * areasize, size.height / 2 - grabber->get_size().height / 2));
|
||||
grabber->draw(ci, Point2i(ratio * areasize, size.height / 2 - grabber->get_size().height / 2 + get_theme_constant(SNAME("grabber_offset"))));
|
||||
}
|
||||
} break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user