Merge pull request #67871 from Calinou/editor-theme-add-oled-preset

Add Black (OLED) editor theme preset
This commit is contained in:
Rémi Verschelde 2022-11-28 08:46:12 +01:00
commit 2fadc1299d
No known key found for this signature in database
GPG key ID: C3336907360768E1
4 changed files with 69 additions and 14 deletions

View file

@ -61,7 +61,7 @@ void EditorSettingsDialog::_settings_changed() {
void EditorSettingsDialog::_settings_property_edited(const String &p_name) {
String full_name = inspector->get_full_item_path(p_name);
if (full_name == "interface/theme/accent_color" || full_name == "interface/theme/base_color" || full_name == "interface/theme/contrast") {
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"); // set preset to Custom
} else if (full_name.begins_with("text_editor/theme/highlighting")) {
EditorSettings::get_singleton()->set_manually("text_editor/theme/color_theme", "Custom");