mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add a new editor theme
Co-authored-by: passivestar <60579014+passivestar@users.noreply.github.com>
This commit is contained in:
@@ -70,8 +70,8 @@ void EditorSettingsDialog::_settings_property_edited(const String &p_name) {
|
||||
|
||||
// Set theme presets to Custom when controlled settings change.
|
||||
|
||||
if (full_name == "interface/theme/accent_color" || full_name == "interface/theme/base_color" || full_name == "interface/theme/contrast" || full_name == "interface/theme/draw_extra_borders") {
|
||||
EditorSettings::get_singleton()->set_manually("interface/theme/preset", "Custom");
|
||||
if (full_name == "interface/theme/accent_color" || full_name == "interface/theme/base_color" || full_name == "interface/theme/contrast" || full_name == "interface/theme/draw_extra_borders" || full_name == "interface/theme/icon_saturation" || full_name == "interface/theme/draw_relationship_lines" || full_name == "interface/theme/corner_radius") {
|
||||
EditorSettings::get_singleton()->set_manually("interface/theme/color_preset", "Custom");
|
||||
} else if (full_name == "interface/theme/base_spacing" || full_name == "interface/theme/additional_spacing") {
|
||||
EditorSettings::get_singleton()->set_manually("interface/theme/spacing_preset", "Custom");
|
||||
} else if (full_name.begins_with("text_editor/theme/highlighting")) {
|
||||
|
||||
Reference in New Issue
Block a user