mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	UnsavedChangesDialog: Linux specific: Made a first column wider
+ Field: Made def_width() wider
This commit is contained in:
		
							parent
							
								
									9197935056
								
							
						
					
					
						commit
						7e33047804
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		|  | @ -128,7 +128,7 @@ void Field::PostInitialize() | |||
| } | ||||
| 
 | ||||
| // Values of width to alignments of fields
 | ||||
| int Field::def_width()			{ return wxOSX ? 8 : 7; } | ||||
| int Field::def_width()			{ return 8; } | ||||
| int Field::def_width_wider()	{ return 16; } | ||||
| int Field::def_width_thinner()	{ return 4; } | ||||
| 
 | ||||
|  |  | |||
|  | @ -24,6 +24,12 @@ | |||
| 
 | ||||
| using boost::optional; | ||||
| 
 | ||||
| #ifdef __Linux__ | ||||
| #define wxLinux true | ||||
| #else | ||||
| #define wxLinux false | ||||
| #endif | ||||
| 
 | ||||
| namespace Slic3r { | ||||
| 
 | ||||
| namespace GUI { | ||||
|  | @ -586,7 +592,7 @@ void UnsavedChangesDialog::build(Preset::Type type, PresetCollection* dependent_ | |||
|     m_tree->AssociateModel(m_tree_model); | ||||
|     m_tree_model->SetAssociatedControl(m_tree); | ||||
| 
 | ||||
|     m_tree->AppendToggleColumn(L"\u2714", UnsavedChangesModel::colToggle, wxDATAVIEW_CELL_ACTIVATABLE, 6 * em);//2610,11,12 //2714
 | ||||
|     m_tree->AppendToggleColumn(L"\u2714", UnsavedChangesModel::colToggle, wxDATAVIEW_CELL_ACTIVATABLE, (wxLinux ? 8 : 6) * em); | ||||
| 
 | ||||
|     auto append_bmp_text_column = [this](const wxString& label, unsigned model_column, int width, bool set_expander = false)  | ||||
|     { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 YuSanka
						YuSanka