diff options
-rw-r--r-- | applications/kube/main.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/applications/kube/main.cpp b/applications/kube/main.cpp index 61773381..49a0b5fa 100644 --- a/applications/kube/main.cpp +++ b/applications/kube/main.cpp | |||
@@ -120,9 +120,15 @@ int main(int argc, char *argv[]) | |||
120 | QApplication app(argc, argv); | 120 | QApplication app(argc, argv); |
121 | app.setApplicationName("kube"); | 121 | app.setApplicationName("kube"); |
122 | app.setApplicationVersion(QString("%1 Branch: %2 Commit: %3").arg(kube_VERSION_STRING).arg(kube_BRANCH).arg(kube_COMMIT)); | 122 | app.setApplicationVersion(QString("%1 Branch: %2 Commit: %3").arg(kube_VERSION_STRING).arg(kube_BRANCH).arg(kube_COMMIT)); |
123 | app.setFont(QFont{"Noto Sans", app.font().pointSize(), QFont::Normal}); | 123 | auto fontSize = app.font().pointSize(); |
124 | 124 | #ifdef Q_OS_UNIX | |
125 | qDebug() << "Font size:" << app.font().pointSize(); | 125 | if (qgetenv("QT_QPA_PLATFORMTHEME").isEmpty()) { |
126 | //The hardcoded default in qgenericunixthemes.cpp of 9 is tiny, so we default to something larger. | ||
127 | fontSize = 11; | ||
128 | } | ||
129 | #endif | ||
130 | qWarning() << "Font size:" << fontSize; | ||
131 | app.setFont(QFont{"Noto Sans", fontSize, QFont::Normal}); | ||
126 | 132 | ||
127 | QCommandLineParser parser; | 133 | QCommandLineParser parser; |
128 | parser.setApplicationDescription("A communication and collaboration client."); | 134 | parser.setApplicationDescription("A communication and collaboration client."); |