Mercurial > minori
comparison src/gui/widgets/text.cpp @ 74:5ccb99bfa605
fix regressions on macOS
for now, we're setting our font sizes using setPixelSize, and later I'll
use a macro or something to make the point size constant across platforms
also anilist user id stuff stopped working :) that's fixed now
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Tue, 03 Oct 2023 06:12:43 -0400 |
| parents | fe719c109dbc |
| children | d3e9310598b1 |
comparison
equal
deleted
inserted
replaced
| 73:f1fc8b04bc63 | 74:5ccb99bfa605 |
|---|---|
| 189 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); | 189 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); |
| 190 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); | 190 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
| 191 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); | 191 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
| 192 | 192 |
| 193 QFont fnt(font()); | 193 QFont fnt(font()); |
| 194 fnt.setPointSize(12); | 194 fnt.setPixelSize(16); |
| 195 setFont(fnt); | 195 setFont(fnt); |
| 196 | 196 |
| 197 QPalette pal(palette()); | 197 QPalette pal(palette()); |
| 198 pal.setColor(QPalette::Window, Qt::transparent); | 198 pal.setColor(QPalette::Window, Qt::transparent); |
| 199 pal.setColor(QPalette::Text, QColor(0x00, 0x33, 0x99)); | 199 pal.setColor(QPalette::Text, QColor(0x00, 0x33, 0x99)); |
