mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Main window position and size saving fixed in Windows.
Dock and top bar hiding after photo view fixed in OS X. Some design improvements. Alpha version 0.9.55.
This commit is contained in:
@@ -114,10 +114,16 @@ CountryInput::CountryInput(QWidget *parent, const style::countryInput &st) : QWi
|
||||
void CountryInput::paintEvent(QPaintEvent *e) {
|
||||
QPainter p(this);
|
||||
|
||||
p.fillRect(_inner, _st.bgColor->b);
|
||||
p.setRenderHint(QPainter::HighQualityAntialiasing);
|
||||
p.setBrush(_st.bgColor);
|
||||
p.setPen(Qt::NoPen);
|
||||
p.drawRoundedRect(_inner, st::msgRadius, st::msgRadius);
|
||||
p.setRenderHint(QPainter::HighQualityAntialiasing, false);
|
||||
|
||||
p.drawPixmap(_arrowRect.x(), _arrowRect.top(), _arrow);
|
||||
|
||||
p.setFont(_st.font->f);
|
||||
p.setFont(_st.font);
|
||||
p.setPen(st::windowTextFg);
|
||||
|
||||
p.drawText(rect().marginsRemoved(_st.textMrg), _text, QTextOption(_st.align));
|
||||
}
|
||||
|
Reference in New Issue
Block a user