mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-20 07:11:12 -06:00 
			
		
		
		
	Removal of tabs from plater -> Nicer icons and reduced flickering when changing view
This commit is contained in:
		
							parent
							
								
									d6b5ed2063
								
							
						
					
					
						commit
						c96c9808aa
					
				
					 2 changed files with 10 additions and 4 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 18 KiB | 
|  | @ -2112,14 +2112,20 @@ void Plater::priv::set_current_panel(wxPanel* panel) | |||
|         return; | ||||
| 
 | ||||
|     current_panel = panel; | ||||
|     // to reduce flickering when changing view, first set as visible the new current panel
 | ||||
|     for (wxPanel* p : panels) | ||||
|     { | ||||
|         p->Show(p == current_panel); | ||||
|         if (p == current_panel) | ||||
|             p->Show(); | ||||
|     } | ||||
|     // then set to invisible the other
 | ||||
|     for (wxPanel* p : panels) | ||||
|     { | ||||
|         if (p != current_panel) | ||||
|             p->Hide(); | ||||
|     } | ||||
| 
 | ||||
|     q->Freeze(); | ||||
|     panel_sizer->Layout(); | ||||
|     q->Thaw(); | ||||
| 
 | ||||
|     if (current_panel == view3D) | ||||
|     { | ||||
|  | @ -2479,7 +2485,7 @@ bool Plater::priv::init_object_menu() | |||
| #if ENABLE_REMOVE_TABS_FROM_PLATER | ||||
| void Plater::priv::init_view_toolbar() | ||||
| { | ||||
|     if (!view_toolbar.init("view_toolbar.png", 36, 1, 1)) | ||||
|     if (!view_toolbar.init("view_toolbar.png", 64, 0, 0)) | ||||
|         return; | ||||
| 
 | ||||
|     GLRadioToolbarItem::Data item; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri