diff options
author | Spartan322 <Megacake1234@gmail.com> | 2024-10-26 10:10:15 -0400 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-10-26 12:45:10 -0400 |
commit | 6b2fb2a325db980dd90a3fee00b8dd805f9cf4ed (patch) | |
tree | 8f36f0d8fc3d99c2055f5c75b628a73f27ca072d /editor | |
parent | a43f7f1c02a887d19694bdebac83af4d32cf3433 (diff) | |
download | redot-engine-6b2fb2a325db980dd90a3fee00b8dd805f9cf4ed.tar.gz |
Add `wheel_picker_cursor` theme icon to `ColorPicker`
Replaces `ColorPicker`'s HSV wheel hue indicator with `wheel_picker_icon` texture which by default is the same as `picker_cursor`
Diffstat (limited to 'editor')
-rw-r--r-- | editor/icons/WheelPickerCursor.svg | 1 | ||||
-rw-r--r-- | editor/themes/editor_theme_manager.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/editor/icons/WheelPickerCursor.svg b/editor/icons/WheelPickerCursor.svg new file mode 100644 index 0000000000..2eaad3c128 --- /dev/null +++ b/editor/icons/WheelPickerCursor.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><circle cx="8" cy="8" r="5.5" fill="none" stroke="#fff"/><circle cx="8" cy="8" r="4.5" fill="none" stroke="#000"/></svg>
\ No newline at end of file diff --git a/editor/themes/editor_theme_manager.cpp b/editor/themes/editor_theme_manager.cpp index 85b850b7f5..28e8f1affd 100644 --- a/editor/themes/editor_theme_manager.cpp +++ b/editor/themes/editor_theme_manager.cpp @@ -1771,6 +1771,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the p_theme->set_icon("overbright_indicator", "ColorPicker", p_theme->get_icon(SNAME("OverbrightIndicator"), EditorStringName(EditorIcons))); p_theme->set_icon("bar_arrow", "ColorPicker", p_theme->get_icon(SNAME("ColorPickerBarArrow"), EditorStringName(EditorIcons))); p_theme->set_icon("picker_cursor", "ColorPicker", p_theme->get_icon(SNAME("PickerCursor"), EditorStringName(EditorIcons))); + p_theme->set_icon("wheel_picker_cursor", "ColorPicker", p_theme->get_icon(SNAME("WheelPickerCursor"), EditorStringName(EditorIcons))); // ColorPickerButton. p_theme->set_icon("bg", "ColorPickerButton", p_theme->get_icon(SNAME("GuiMiniCheckerboard"), EditorStringName(EditorIcons))); |