Fix side bar button on Retina screens.
This commit is contained in:
		
							parent
							
								
									ed97ff0d4f
								
							
						
					
					
						commit
						1f0a772b18
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -127,6 +127,7 @@ void SideBarButton::validateIconCache() { | ||||||
| 	auto image = QImage( | 	auto image = QImage( | ||||||
| 		icon.size() * style::DevicePixelRatio(), | 		icon.size() * style::DevicePixelRatio(), | ||||||
| 		QImage::Format_ARGB32_Premultiplied); | 		QImage::Format_ARGB32_Premultiplied); | ||||||
|  | 	image.setDevicePixelRatio(style::DevicePixelRatio()); | ||||||
| 	image.fill(Qt::transparent); | 	image.fill(Qt::transparent); | ||||||
| 	{ | 	{ | ||||||
| 		auto p = QPainter(&image); | 		auto p = QPainter(&image); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 John Preston
						John Preston