Unify wiki & video guide buttons (#16159)

* init

* fix build

* Update PrintOptionsDialog.cpp

* Update TroubleshootDialog.cpp
This commit is contained in:
yw4z
2026-10-09 12:13:00 +08:00
committed by GitHub
parent 018c4f49ee
commit 25ec403156
28 changed files with 381 additions and 141 deletions
+6
View File
@@ -223,6 +223,12 @@ void Button::SetStyle(const ButtonStyle style, const ButtonType type)
this->SetMinSize(FromDIP(wxSize(26, 26)));
this->SetSize(FromDIP(wxSize(26, 26)));
this->SetCornerRadius(this->FromDIP(4));
} else if (type == ButtonType::Circle) {
this->SetPaddingSize(FromDIP(wxSize(6, 6)));
this->SetMinSize(FromDIP(wxSize(25, 25)));
this->SetMaxSize(FromDIP(wxSize(25, 25)));
this->SetSize(FromDIP(wxSize(25, 25)));
this->SetCornerRadius(this->FromDIP(12));
} else if (type == ButtonType::Expanded) {
this->SetMinSize(FromDIP(wxSize(-1, 32)));
this->SetPaddingSize(FromDIP(wxSize(12, 8)));