Skip to content
Snippets Groups Projects
Commit 14ff7f8a authored by SeeLook's avatar SeeLook :musical_note:
Browse files

fixup! {Android] Scale Noo.fontSize() by DPI and phisical screen size

parent 8db6a976
No related branches found
No related tags found
No related merge requests found
......@@ -119,16 +119,17 @@ int main(int argc, char *argv[])
if (!loadNootkaFont(a))
return 111;
auto f = a->font();
#if defined (Q_OS_ANDROID)
f.setPixelSize(f.pixelSize() * gl->guiScale());
f.setPixelSize(qRound(static_cast<qreal>(f.pixelSize()) * gl->guiScale()));
auto pal = qApp->palette();
pal.setColor(QPalette::Active, QPalette::Highlight, QColor(0, 160, 160)); // Teal color of highlight for Android
pal.setColor(QPalette::Active, QPalette::Shadow, QColor(144, 144, 144)); // Dark gray for shadow
qApp->setPalette(pal);
#else
f.setPointSizeF(f.pointSizeF() * gl->guiScale());
#endif
auto f = a->font();
f.setPointSizeF(f.pointSizeF() * gl->guiScale());
a->setFont(f);
a->setWindowIcon(QIcon(Tpath::img("nootka")));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment