Suppression de la profondeur sur bouton choix
This commit is contained in:
		
							parent
							
								
									853976f56d
								
							
						
					
					
						commit
						78991c216b
					
				|  | @ -73,12 +73,6 @@ std::unique_ptr<sfg::RenderQueue> IconRadioButton::InvalidateImpl() const { | ||||||
|         size.x = std::min(GetAllocation().width, GetRequisition().x); |         size.x = std::min(GetAllocation().width, GetRequisition().x); | ||||||
|         size.y = std::min(GetAllocation().height, GetRequisition().y); |         size.y = std::min(GetAllocation().height, GetRequisition().y); | ||||||
| 
 | 
 | ||||||
|         // si on est en train de cliquer, on décale le fond
 |  | ||||||
|         if (GetState() == sfg::Widget::State::ACTIVE) { |  | ||||||
|             position.x += 1; |  | ||||||
|             position.y += 1; |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
| 		queue->Add(sfg::Renderer::Get().CreatePane( | 		queue->Add(sfg::Renderer::Get().CreatePane( | ||||||
|             position, size, border_width, |             position, size, border_width, | ||||||
|             background_color, border_color, 0 |             background_color, border_color, 0 | ||||||
|  | @ -91,11 +85,6 @@ std::unique_ptr<sfg::RenderQueue> IconRadioButton::InvalidateImpl() const { | ||||||
|         GetAllocation().height - 2 * padding |         GetAllocation().height - 2 * padding | ||||||
|     ); |     ); | ||||||
| 
 | 
 | ||||||
|     if (GetState() == sfg::Widget::State::ACTIVE) { |  | ||||||
|         allocation.left += 1; |  | ||||||
|         allocation.top += 1; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     GetChild()->SetAllocation(allocation); |     GetChild()->SetAllocation(allocation); | ||||||
|     GetChild()->Invalidate(); |     GetChild()->Invalidate(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue