mirror of https://github.com/procxx/kepka.git
				
				
				
			fixed recording display, 0.8.22.dev test version ready (not production!)
This commit is contained in:
		
							parent
							
								
									c6ee2772e2
								
							
						
					
					
						commit
						e5f2f68188
					
				|  | @ -4401,8 +4401,7 @@ void HistoryWidget::paintEvent(QPaintEvent *e) { | ||||||
| 		if (!_scroll.isHidden()) { | 		if (!_scroll.isHidden()) { | ||||||
| 			if (!_field.isHidden() || _recording) { | 			if (!_field.isHidden() || _recording) { | ||||||
| 				drawFieldBackground(p); | 				drawFieldBackground(p); | ||||||
| 			} |                 if (_send.isHidden()) { | ||||||
| 			if (!_field.isHidden() && _send.isHidden()) { |  | ||||||
|                     if (a_recordDown.current() < 1) { |                     if (a_recordDown.current() < 1) { | ||||||
|                         p.setOpacity(st::btnAttachEmoji.opacity * (1 - a_recordOver.current()) + st::btnAttachEmoji.overOpacity * a_recordOver.current()); |                         p.setOpacity(st::btnAttachEmoji.opacity * (1 - a_recordOver.current()) + st::btnAttachEmoji.overOpacity * a_recordOver.current()); | ||||||
|                         p.drawSprite(_send.x() + (_send.width() - st::btnRecordAudio.pxWidth()) / 2, _send.y() + (_send.height() - st::btnRecordAudio.pxHeight()) / 2, st::btnRecordAudio); |                         p.drawSprite(_send.x() + (_send.width() - st::btnRecordAudio.pxWidth()) / 2, _send.y() + (_send.height() - st::btnRecordAudio.pxHeight()) / 2, st::btnRecordAudio); | ||||||
|  | @ -4432,6 +4431,7 @@ void HistoryWidget::paintEvent(QPaintEvent *e) { | ||||||
| 
 | 
 | ||||||
|                         p.setPen(a_recordCancel.current()); |                         p.setPen(a_recordCancel.current()); | ||||||
|                         p.drawText(left + (right - left - _recordCancelWidth) / 2, _attachPhoto.y() + st::recordTextTop + st::recordFont->ascent, lang(lng_record_cancel)); |                         p.drawText(left + (right - left - _recordCancelWidth) / 2, _attachPhoto.y() + st::recordTextTop + st::recordFont->ascent, lang(lng_record_cancel)); | ||||||
|  |                     } | ||||||
|                 } |                 } | ||||||
| 			} | 			} | ||||||
| 		} else { | 		} else { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue