Mercurial > minori
changeset 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 | f1fc8b04bc63 |
children | d3e9310598b1 |
files | src/gui/dialog/about.cpp src/gui/dialog/settings.cpp src/gui/dialog/settings/services.cpp src/gui/widgets/sidebar.cpp src/gui/widgets/text.cpp src/services/anilist.cpp |
diffstat | 6 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui/dialog/about.cpp Tue Oct 03 05:00:08 2023 -0400 +++ b/src/gui/dialog/about.cpp Tue Oct 03 06:12:43 2023 -0400 @@ -17,7 +17,7 @@ #define SET_TITLE_FONT(font, format, cursor) \ { \ font = cursor.charFormat().font(); \ - font.setPointSize(10); \ + font.setPixelSize(16); \ format.setFont(font); \ cursor.setCharFormat(format); \ } @@ -25,7 +25,7 @@ #define SET_PARAGRAPH_FONT(font, format, cursor) \ { \ font = cursor.charFormat().font(); \ - font.setPointSize(8); \ + font.setPixelSize(12); \ format.setFont(font); \ cursor.setCharFormat(format); \ }
--- a/src/gui/dialog/settings.cpp Tue Oct 03 05:00:08 2023 -0400 +++ b/src/gui/dialog/settings.cpp Tue Oct 03 06:12:43 2023 -0400 @@ -16,7 +16,7 @@ page_title->setFrameShadow(QFrame::Sunken); QFont font(page_title->font()); - font.setPointSize(10); + font.setPixelSize(13); font.setWeight(QFont::Bold); page_title->setFont(font); @@ -76,7 +76,7 @@ sidebar->setFrameShape(QFrame::Box); QFont font(sidebar->font()); - font.setPointSize(9); + font.setPixelSize(12); sidebar->setFont(font); QPalette pal(sidebar->palette());
--- a/src/gui/dialog/settings/services.cpp Tue Oct 03 05:00:08 2023 -0400 +++ b/src/gui/dialog/settings/services.cpp Tue Oct 03 06:12:43 2023 -0400 @@ -85,7 +85,8 @@ } void SettingsPageServices::SaveInfo() { - session.config.anilist.username = Strings::ToUtf8String(username); + // session.config.anilist.username = +Strings::ToUtf8String(username); session.config.service = service; }
--- a/src/gui/widgets/sidebar.cpp Tue Oct 03 05:00:08 2023 -0400 +++ b/src/gui/widgets/sidebar.cpp Tue Oct 03 06:12:43 2023 -0400 @@ -19,7 +19,7 @@ SetBackgroundColor(Qt::transparent); QFont font; - font.setPointSize(9); + font.setPixelSize(12); setFont(font); connect(this, &QListWidget::currentRowChanged, this,
--- a/src/gui/widgets/text.cpp Tue Oct 03 05:00:08 2023 -0400 +++ b/src/gui/widgets/text.cpp Tue Oct 03 06:12:43 2023 -0400 @@ -191,7 +191,7 @@ setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); QFont fnt(font()); - fnt.setPointSize(12); + fnt.setPixelSize(16); setFont(fnt); QPalette pal(palette());
--- a/src/services/anilist.cpp Tue Oct 03 05:00:08 2023 -0400 +++ b/src/services/anilist.cpp Tue Oct 03 06:12:43 2023 -0400 @@ -345,7 +345,7 @@ {"query", query} }; auto ret = nlohmann::json::parse(SendRequest(json.dump())); - ParseUser(json["Viewer"]); + ParseUser(ret["data"]["Viewer"]); return true; }