mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 12:47:12 +01:00
Changed the default color theme for the editor. Added the old one as a new Godot 3 preset.
This commit is contained in:
parent
5f623865c6
commit
ac25525b39
@ -344,7 +344,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||
|
||||
// Theme
|
||||
_initial_set("interface/theme/preset", "Default");
|
||||
hints["interface/theme/preset"] = PropertyInfo(Variant::STRING, "interface/theme/preset", PROPERTY_HINT_ENUM, "Default,Alien,Arc,Godot 2,Grey,Light,Solarized (Dark),Solarized (Light),Custom", PROPERTY_USAGE_DEFAULT);
|
||||
hints["interface/theme/preset"] = PropertyInfo(Variant::STRING, "interface/theme/preset", PROPERTY_HINT_ENUM, "Default,Godot 3,Alien,Arc,Godot 2,Grey,Light,Solarized (Dark),Solarized (Light),Custom", PROPERTY_USAGE_DEFAULT);
|
||||
_initial_set("interface/theme/icon_and_font_color", 0);
|
||||
hints["interface/theme/icon_and_font_color"] = PropertyInfo(Variant::INT, "interface/theme/icon_and_font_color", PROPERTY_HINT_ENUM, "Auto,Dark,Light", PROPERTY_USAGE_DEFAULT);
|
||||
_initial_set("interface/theme/base_color", Color(0.2, 0.23, 0.31));
|
||||
|
@ -309,6 +309,10 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
||||
// Please, use alphabet order if you've added new theme here(After "Default" and "Custom")
|
||||
|
||||
if (preset == "Default") {
|
||||
preset_accent_color = Color(0.22, 0.47, 0.62);
|
||||
preset_base_color = Color(0.15, 0.19, 0.23);
|
||||
preset_contrast = default_contrast;
|
||||
} else if (preset == "Godot 3") {
|
||||
preset_accent_color = Color(0.41, 0.61, 0.91);
|
||||
preset_base_color = Color(0.2, 0.23, 0.31);
|
||||
preset_contrast = default_contrast;
|
||||
|
Loading…
Reference in New Issue
Block a user