You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Default ColorPicker color mode setting
There is a new setting for Default ColorPicker color mode in Editor Settings->Interface->Inspector. Initially this setting will be RGB. Editor ColorPicker will always start with mode defined in this settiing. Fixes #30755 and #30754
This commit is contained in:
committed by
Bhupendra Aole
parent
4f6eb3610f
commit
1de3ec911f
@@ -1741,6 +1741,13 @@ ScriptTextEditor::ScriptTextEditor() {
|
||||
color_panel->add_child(color_picker);
|
||||
color_picker->connect("color_changed", this, "_color_changed");
|
||||
|
||||
// get default color picker mode from editor settings
|
||||
int default_color_mode = EDITOR_GET("interface/inspector/default_color_picker_mode");
|
||||
if (default_color_mode == 1)
|
||||
color_picker->set_hsv_mode(true);
|
||||
else if (default_color_mode == 2)
|
||||
color_picker->set_raw_mode(true);
|
||||
|
||||
edit_hb = memnew(HBoxContainer);
|
||||
|
||||
edit_menu = memnew(MenuButton);
|
||||
|
||||
Reference in New Issue
Block a user