Modify color in ColorPicker with keyboard or joypad
This commit is contained in:
parent
4f0cbc9a58
commit
e6f812c056
8 changed files with 539 additions and 8 deletions
|
|
@ -1750,6 +1750,9 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
|
|||
// ColorPicker and related nodes.
|
||||
{
|
||||
// ColorPicker.
|
||||
p_config.circle_style_focus = p_config.button_style_focus->duplicate();
|
||||
p_config.circle_style_focus->set_corner_radius_all(256 * EDSCALE);
|
||||
p_config.circle_style_focus->set_corner_detail(32 * EDSCALE);
|
||||
|
||||
p_theme->set_constant("margin", "ColorPicker", p_config.base_margin);
|
||||
p_theme->set_constant("sv_width", "ColorPicker", 256 * EDSCALE);
|
||||
|
|
@ -1758,6 +1761,11 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
|
|||
p_theme->set_constant("label_width", "ColorPicker", 10 * EDSCALE);
|
||||
p_theme->set_constant("center_slider_grabbers", "ColorPicker", 1);
|
||||
|
||||
p_theme->set_stylebox("sample_focus", "ColorPicker", p_config.button_style_focus);
|
||||
p_theme->set_stylebox("picker_focus_rectangle", "ColorPicker", p_config.button_style_focus);
|
||||
p_theme->set_stylebox("picker_focus_circle", "ColorPicker", p_config.circle_style_focus);
|
||||
p_theme->set_color("focused_not_editing_cursor_color", "ColorPicker", p_config.highlight_color);
|
||||
|
||||
p_theme->set_icon("screen_picker", "ColorPicker", p_theme->get_icon(SNAME("ColorPick"), EditorStringName(EditorIcons)));
|
||||
p_theme->set_icon("shape_circle", "ColorPicker", p_theme->get_icon(SNAME("PickerShapeCircle"), EditorStringName(EditorIcons)));
|
||||
p_theme->set_icon("shape_rect", "ColorPicker", p_theme->get_icon(SNAME("PickerShapeRectangle"), EditorStringName(EditorIcons)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue