mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Class for RadioGroup & LabeledStaticBox and improvements for Calibration Dialogs, Windows with wxStaticBoxSizer (#9797)
* update * Update calib_dlg.cpp * Update LabeledStaticBox.hpp * Update calib_dlg.cpp * update * update * RadioGroup fix * update * update * update * update * RadioGroup * Fix render issue when position is set to default (-1) * Fix macOS render issue by removing default NSBox border * Fix compile --------- Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "MsgDialog.hpp"
|
||||
#include "format.hpp"
|
||||
#include "Widgets/StaticLine.hpp"
|
||||
#include "Widgets/LabeledStaticBox.hpp"
|
||||
|
||||
#include <utility>
|
||||
#include <wx/bookctrl.h>
|
||||
@@ -470,14 +471,11 @@ bool OptionsGroup::activate(std::function<void()> throw_if_canceled/* = [](){}*/
|
||||
|
||||
try {
|
||||
if (staticbox) {
|
||||
wxStaticBox * stb = new wxStaticBox(m_parent, wxID_ANY, _(title));
|
||||
if (!wxOSX) stb->SetBackgroundStyle(wxBG_STYLE_PAINT);
|
||||
stb->SetBackgroundColour(m_parent->GetBackgroundColour());
|
||||
stb->SetFont(wxOSX ? wxGetApp().normal_font() : wxGetApp().bold_font());
|
||||
wxGetApp().UpdateDarkUI(stb);
|
||||
// BBS: new layout
|
||||
sizer = new wxStaticBoxSizer(stb, wxVERTICAL);
|
||||
// ORCA match style of wxStaticBox between platforms
|
||||
LabeledStaticBox * stb = new LabeledStaticBox(m_parent, _(title));
|
||||
//wxGetApp().UpdateDarkUI(stb);
|
||||
this->stb = stb;
|
||||
sizer = new wxStaticBoxSizer(stb, wxVERTICAL);
|
||||
}
|
||||
else {
|
||||
// BBS: new layout
|
||||
|
||||
Reference in New Issue
Block a user