1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Tweak Quick Settings dialog to ensure labels and dropdowns are aligned

This commit is contained in:
Hugo Locurcio
2025-12-19 01:37:29 +01:00
parent 1cf3180537
commit 0e7a69a2e0
4 changed files with 3 additions and 4 deletions

View File

@@ -305,7 +305,7 @@ void ProjectDialog::_update_target_auto_dir() {
}
int naming_convention = (int)EDITOR_GET("project_manager/directory_naming_convention");
switch (naming_convention) {
case 0: // No convention
case 0: // No Convention
break;
case 1: // kebab-case
new_auto_dir = new_auto_dir.to_kebab_case();

View File

@@ -175,7 +175,6 @@ void QuickSettingsDialog::_add_setting_control(const String &p_text, Control *p_
container->add_child(label);
p_control->set_h_size_flags(Control::SIZE_EXPAND_FILL);
p_control->set_stretch_ratio(2.0);
container->add_child(p_control);
}

View File

@@ -1123,7 +1123,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
// TRANSLATORS: Project Manager here refers to the tool used to create/manage Godot projects.
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "project_manager/sorting_order", 0, "Last Edited,Name,Path")
EDITOR_SETTING_BASIC(Variant::INT, PROPERTY_HINT_ENUM, "project_manager/directory_naming_convention", 1, "No convention,kebab-case,snake_case,camelCase,PascalCase,Title Case")
EDITOR_SETTING_BASIC(Variant::INT, PROPERTY_HINT_ENUM, "project_manager/directory_naming_convention", 1, "No Convention,kebab-case,snake_case,camelCase,PascalCase,Title Case")
#if defined(WEB_ENABLED)
// Web platform only supports `gl_compatibility`.