# HG changeset patch # User Paper # Date 1696327963 14400 # Node ID 5ccb99bfa605910393c89e486abb2ac59fb9887b # Parent f1fc8b04bc63b7e698c59a96c294850abf8b07b8 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 diff -r f1fc8b04bc63 -r 5ccb99bfa605 src/gui/dialog/about.cpp --- 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); \ } diff -r f1fc8b04bc63 -r 5ccb99bfa605 src/gui/dialog/settings.cpp --- 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()); diff -r f1fc8b04bc63 -r 5ccb99bfa605 src/gui/dialog/settings/services.cpp --- 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; } diff -r f1fc8b04bc63 -r 5ccb99bfa605 src/gui/widgets/sidebar.cpp --- 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, diff -r f1fc8b04bc63 -r 5ccb99bfa605 src/gui/widgets/text.cpp --- 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()); diff -r f1fc8b04bc63 -r 5ccb99bfa605 src/services/anilist.cpp --- 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; }