mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-12 23:13:32 +00:00
* Update GUI_ObjectList.cpp * fix scaling issue on arrow * Update GUI_ObjectList.cpp * Update name column on Linux as well * Always use column width from `m_columns_width` * Always use column width from `m_columns_width` * Remove object list extra horizontal spacing on macOS * Remove object list header * Avoid negative width * Fix compile error --------- Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
20 lines
480 B
Plaintext
20 lines
480 B
Plaintext
|
|
#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];
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|