mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fix of "Color Picker Placement #1496"
Now the color picker from the plater is centered around the associated combo box. Keep your fingers crossed, it seems to be working, but on a two monitor setup the color picker may jump to the other screen.
This commit is contained in:
		
							parent
							
								
									b7a92b5525
								
							
						
					
					
						commit
						4227499534
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -246,7 +246,8 @@ PresetComboBox::PresetComboBox(wxWindow *parent, Preset::Type preset_type) : | |||
|             // Swallow the mouse click and open the color picker.
 | ||||
|             auto data = new wxColourData(); | ||||
|             data->SetChooseFull(1); | ||||
|             auto dialog = new wxColourDialog(wxGetApp().mainframe, data); | ||||
|             auto dialog = new wxColourDialog(/* wxGetApp().mainframe */this, data); | ||||
|             dialog->CenterOnParent(); | ||||
|             if (dialog->ShowModal() == wxID_OK) { | ||||
|                 DynamicPrintConfig cfg = *wxGetApp().get_tab(Preset::TYPE_PRINTER)->get_config();  | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv