From f9d0bc1858fb0e6da6b4bbdee29be4e40c48a57f Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 20 Jan 2019 23:50:46 +0100 Subject: Make "Export with Debug" more visible in the Export dialog This swaps out the CheckButton with a CheckBox, which has two benefits: - The checkbox icon appears to the left of the text, which moves it closer from the text. This makes it more easily noticeable, as it also appears below the "File:" text now. - It follows the UI convention of using checkboxes for options that do not bear an immediate effect, unlike CheckButtons which are expected to have an immediate effect when toggled. This closes #25170. --- editor/project_export.cpp | 4 ++-- editor/project_export.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'editor') diff --git a/editor/project_export.cpp b/editor/project_export.cpp index 976eff0c56..8e5ef88698 100644 --- a/editor/project_export.cpp +++ b/editor/project_export.cpp @@ -1298,12 +1298,12 @@ ProjectExportDialog::ProjectExportDialog() { export_project->connect("file_selected", this, "_export_project_to_path"); export_project->get_line_edit()->connect("text_changed", this, "_validate_export_path"); - export_debug = memnew(CheckButton); + export_debug = memnew(CheckBox); export_debug->set_text(TTR("Export With Debug")); export_debug->set_pressed(true); export_project->get_vbox()->add_child(export_debug); - export_pck_zip_debug = memnew(CheckButton); + export_pck_zip_debug = memnew(CheckBox); export_pck_zip_debug->set_text(TTR("Export With Debug")); export_pck_zip_debug->set_pressed(true); export_pck_zip->get_vbox()->add_child(export_pck_zip_debug); diff --git a/editor/project_export.h b/editor/project_export.h index b292976a78..f8b6484477 100644 --- a/editor/project_export.h +++ b/editor/project_export.h @@ -141,8 +141,8 @@ private: FileDialog *export_pck_zip; FileDialog *export_project; - CheckButton *export_debug; - CheckButton *export_pck_zip_debug; + CheckBox *export_debug; + CheckBox *export_pck_zip_debug; void _open_export_template_manager(); -- cgit v1.2.3