Mercurial > minori
comparison src/gui/dialog/settings.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 | 27a19dd6cba1 |
| children | 3364fadc8a36 |
comparison
equal
deleted
inserted
replaced
| 73:f1fc8b04bc63 | 74:5ccb99bfa605 |
|---|---|
| 14 page_title->setWordWrap(false); | 14 page_title->setWordWrap(false); |
| 15 page_title->setFrameShape(QFrame::Panel); | 15 page_title->setFrameShape(QFrame::Panel); |
| 16 page_title->setFrameShadow(QFrame::Sunken); | 16 page_title->setFrameShadow(QFrame::Sunken); |
| 17 | 17 |
| 18 QFont font(page_title->font()); | 18 QFont font(page_title->font()); |
| 19 font.setPointSize(10); | 19 font.setPixelSize(13); |
| 20 font.setWeight(QFont::Bold); | 20 font.setWeight(QFont::Bold); |
| 21 page_title->setFont(font); | 21 page_title->setFont(font); |
| 22 | 22 |
| 23 QPalette pal = page_title->palette(); | 23 QPalette pal = page_title->palette(); |
| 24 pal.setColor(QPalette::Window, QColor(0xAB, 0xAB, 0xAB)); | 24 pal.setColor(QPalette::Window, QColor(0xAB, 0xAB, 0xAB)); |
| 74 // sidebar->AddItem(tr("Advanced"), SideBar::CreateIcon(":/icons/24x24/gear.png")); | 74 // sidebar->AddItem(tr("Advanced"), SideBar::CreateIcon(":/icons/24x24/gear.png")); |
| 75 sidebar->setIconSize(QSize(24, 24)); | 75 sidebar->setIconSize(QSize(24, 24)); |
| 76 sidebar->setFrameShape(QFrame::Box); | 76 sidebar->setFrameShape(QFrame::Box); |
| 77 | 77 |
| 78 QFont font(sidebar->font()); | 78 QFont font(sidebar->font()); |
| 79 font.setPointSize(9); | 79 font.setPixelSize(12); |
| 80 sidebar->setFont(font); | 80 sidebar->setFont(font); |
| 81 | 81 |
| 82 QPalette pal(sidebar->palette()); | 82 QPalette pal(sidebar->palette()); |
| 83 sidebar->SetBackgroundColor(pal.color(QPalette::Base)); | 83 sidebar->SetBackgroundColor(pal.color(QPalette::Base)); |
| 84 | 84 |
