Don't make multiboost badge gradient.
This commit is contained in:
		
							parent
							
								
									c530d7cc89
								
							
						
					
					
						commit
						468d4c5e4f
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		|  | @ -98,11 +98,7 @@ namespace { | ||||||
| 		auto hq = PainterHighQualityEnabler(p); | 		auto hq = PainterHighQualityEnabler(p); | ||||||
| 		const auto radius = std::min(badge->width(), badge->height()) / 2; | 		const auto radius = std::min(badge->width(), badge->height()) / 2; | ||||||
| 		p.setPen(Qt::NoPen); | 		p.setPen(Qt::NoPen); | ||||||
| 		auto brush = QLinearGradient( | 		p.setBrush(st::premiumButtonBg2); | ||||||
| 			QPointF(badge->width(), badge->height()), |  | ||||||
| 			QPointF()); |  | ||||||
| 		brush.setStops(Ui::Premium::ButtonGradientStops()); |  | ||||||
| 		p.setBrush(brush); |  | ||||||
| 		p.drawRoundedRect(badge->rect(), radius, radius); | 		p.drawRoundedRect(badge->rect(), radius, radius); | ||||||
| 	}, badge->lifetime()); | 	}, badge->lifetime()); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 John Preston
						John Preston