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

Merge pull request #113917 from Calinou/project-manager-folder-naming-convention-quick-settings

Tweak Quick Settings dialog to ensure labels and dropdowns are aligned
This commit is contained in:
Rémi Verschelde
2025-12-19 11:53:16 +01:00
4 changed files with 3 additions and 4 deletions

View File

@@ -1287,7 +1287,7 @@
The renderer type that will be checked off by default when creating a new project. Accepted strings are "forward_plus", "mobile" or "gl_compatibility".
</member>
<member name="project_manager/directory_naming_convention" type="int" setter="" getter="">
Directory naming convention for the project manager. Options are "No convention" (project name is directory name), "kebab-case" (default), "snake_case", "camelCase", "PascalCase", or "Title Case".
Directory naming convention for the project manager. Options are "No Convention" (project name is directory name), "kebab-case" (default), "snake_case", "camelCase", "PascalCase", or "Title Case".
</member>
<member name="project_manager/sorting_order" type="int" setter="" getter="">
The sorting order to use in the project manager. When changing the sorting order in the project manager, this setting is set permanently in the editor settings.

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`.