mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-15 20:35:44 -07:00
* 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>
25 lines
653 B
Text
25 lines
653 B
Text
|
|
#import <wx/osx/cocoa/dataview.h>
|
|
#import "GUI_Utils.hpp"
|
|
|
|
namespace Slic3r {
|
|
namespace GUI {
|
|
|
|
void dataview_remove_insets(wxDataViewCtrl* dv) {
|
|
NSScrollView* scrollview = (NSScrollView*) ((wxCocoaDataViewControl*)dv->GetDataViewPeer())->GetWXWidget();
|
|
NSOutlineView* outlineview = scrollview.documentView;
|
|
[outlineview setIntercellSpacing: NSMakeSize(0.0, 1.0)];
|
|
if (@available(macOS 11, *)) {
|
|
[outlineview setStyle:NSTableViewStylePlain];
|
|
}
|
|
}
|
|
|
|
void staticbox_remove_margin(wxStaticBox* sb) {
|
|
NSBox* nativeBox = (NSBox*)sb->GetHandle();
|
|
[nativeBox setBoxType:NSBoxCustom];
|
|
[nativeBox setBorderWidth:0];
|
|
}
|
|
|
|
}
|
|
}
|
|
|