mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-27 21:07:09 +00:00
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
@ -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…
x
Reference in New Issue
Block a user