Converted QFont to style::font on macOS
Even though I have no builds for macOS, losing compatibility entirely is not in my plans.
This commit is contained in:
parent
a6af6280b5
commit
ada7567d0a
1 changed files with 2 additions and 3 deletions
|
|
@ -49,8 +49,7 @@ void TitleWidget::paintEvent(QPaintEvent *e) {
|
|||
|
||||
auto active = isActiveWindow();
|
||||
p.fillRect(rect(), active ? st::titleBgActive : st::titleBg);
|
||||
|
||||
p.setFont(_font);
|
||||
p.setFont(style::font(_font.pixelSize(), 0, _font.family()));
|
||||
p.setPen(active ? st::titleFgActive : st::titleFg);
|
||||
p.drawText(rect(), static_cast<MainWindow*>(parentWidget())->titleText(), style::al_center);
|
||||
}
|
||||
|
|
@ -132,7 +131,7 @@ void PreviewWindowTitle(Painter &p, const style::palette &palette, QRect body, i
|
|||
}
|
||||
|
||||
p.setPen(st::titleFgActive[palette]);
|
||||
p.setFont(font);
|
||||
p.setFont(style::font(font.pixelSize(), 0, font.family()));
|
||||
|
||||
p.drawText(titleRect, qsl("Kotatogram"), style::al_center);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue