FIX: optimize the GUI dialog

jira: [STUDIO-9580]
Change-Id: I01bb5b116f472d2b5de51cdff4f074aca2f3447c
(cherry picked from commit 98f076c04949c0df588b66ae1dfc2ad1fabc99f3)
This commit is contained in:
xin.zhang
2025-01-09 10:54:04 +08:00
committed by Noisyfox
parent 897a78ce9a
commit b5a3e0e29c
4 changed files with 82 additions and 65 deletions

View File

@@ -245,7 +245,7 @@ public:
bool not_show_again_check = false
);
void update_text(wxString text);
void update_text(std::vector<ConfirmBeforeSendInfo> texts);
void update_text(std::vector<ConfirmBeforeSendInfo> texts, bool enable_warning_clr = true);
void on_show();
void on_hide();
void update_btn_label(wxString ok_btn_text, wxString cancel_btn_text);
@@ -253,13 +253,14 @@ public:
void on_dpi_changed(const wxRect& suggested_rect);
void show_update_nozzle_button(bool show = false);
void hide_button_ok();
void edit_cancel_button_txt(wxString txt);
void edit_cancel_button_txt(const wxString& txt, bool switch_green = false);
void disable_button_ok();
void enable_button_ok();
wxString format_text(wxString str, int warp);
~ConfirmBeforeSendDialog();
protected:
wxBoxSizer* m_sizer_main;
wxScrolledWindow* m_vebview_release_note{ nullptr };
Label* m_staticText_release_note{ nullptr };