c-koi/gmic-qt

G'MIC host dialog does not support HDPI

Opened this issue · 1 comments

When opening on a 4k monitor with 200% font scaling, G'MIC opens without any scaling, so the text is very tiny.
When moving the dialog to a secondary monitor with 125% scaling, only the filters list becomes readable (I suspect this is unintentional, the rest of the text is further downscaled, so it still unreadable)

Below is a screenshot on a 4K monitor at 200% (check dialog caption title characters for the size text should have)

image

Same dialog moved from 4k monitor at 200% to a secondary monitor at 125%

image

I think the attribute Qt::AA_EnableHighDpiScaling needs to be set (not sure if pixmaps need to be adjusted too, I don't have a HiDPI screen on my Linux box to test):

gmic-qt/src/GmicQt.cpp

Lines 546 to 552 in d824a99

void configureApplication()
{
QCoreApplication::setOrganizationName(GMIC_QT_ORGANISATION_NAME);
QCoreApplication::setOrganizationDomain(GMIC_QT_ORGANISATION_DOMAIN);
QCoreApplication::setApplicationName(GMIC_QT_APPLICATION_NAME);
QCoreApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);
}