mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	FIX: remove layer menu
1.remove layer menu 2.add dark color adaption of obj_layer Change-Id: I8faf5f69359f0d0fff769887b800f3963884d55d
This commit is contained in:
		
							parent
							
								
									8ace4e6d81
								
							
						
					
					
						commit
						7efa355ff5
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -289,7 +289,7 @@ void ObjectLayers::sys_color_changed() | |||
|         if (item->IsSizer()) {// case when we have editor with buttons
 | ||||
|             for (size_t btn : {2, 3}) { // del_btn, add_btn
 | ||||
|                 wxSizerItem* b_item = item->GetSizer()->GetItem(btn); | ||||
|                 if (b_item->IsWindow()) { | ||||
|                 if (b_item && b_item->IsWindow()) { | ||||
|                     auto button = dynamic_cast<PlusMinusButton*>(b_item->GetWindow()); | ||||
|                     if (button != nullptr) | ||||
|                         button->msw_rescale(); | ||||
|  |  | |||
|  | @ -1259,12 +1259,11 @@ void ObjectList::show_context_menu(const bool evt_context_menu) | |||
|         if (item) | ||||
|         { | ||||
|             const ItemType type = m_objects_model->GetItemType(item); | ||||
|             if (!(type & (itPlate | itObject | itVolume | itLayer | itInstance))) | ||||
|             if (!(type & (itPlate | itObject | itVolume | itInstance))) | ||||
|                 return; | ||||
| 
 | ||||
|             menu =  type & itPlate                                              ? plater->plate_menu() : | ||||
|                     type & itInstance                                           ? plater->instance_menu() : | ||||
|                     type & itLayer                                              ? plater->layer_menu() : | ||||
|                     type & itVolume                                             ? plater->part_menu() : | ||||
|                     printer_technology() == ptFFF                               ? plater->object_menu() : plater->sla_object_menu(); | ||||
|         } | ||||
|  |  | |||
|  | @ -1270,6 +1270,7 @@ void Sidebar::sys_color_changed() | |||
| 
 | ||||
|     // BBS
 | ||||
|     obj_list()->sys_color_changed(); | ||||
|     obj_layers()->sys_color_changed(); | ||||
|     // BBS
 | ||||
|     //p->object_manipulation->sys_color_changed();
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 liz.li
						liz.li