diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e34d37..95c0268 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,11 +33,11 @@ if(WIN32) endif() # dependencies -find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core) set(qtComponents Gui Network Widgets LinguistTools) if(LINUX) list(APPEND qtComponents DBus) endif() +find_package(QT NAMES Qt6 REQUIRED COMPONENTS ${qtComponents}) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS ${qtComponents}) if(MSVC_TOOLSET_VERSION EQUAL 142) diff --git a/creator.cpp b/creator.cpp index 0d12da3..4a45b3e 100644 --- a/creator.cpp +++ b/creator.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #if defined(Q_OS_WIN) #include "diskwriter_windows.h" @@ -74,6 +75,12 @@ Creator::Creator(Privileges &privilegesArg, QWidget *parent) : ui->setupUi(this); +#ifdef Q_OS_MACOS + auto fontAbout = ui->labelAbout->font(); + fontAbout.setPointSize(fontAbout.pointSize() + 2); + ui->labelAbout->setFont(fontAbout); +#endif + #if defined(Q_OS_WIN) diskWriter = new DiskWriter_windows(); devEnumerator = new DeviceEnumerator_windows(); @@ -305,7 +312,6 @@ void Creator::retranslateUi() // retranslate dynamic texts ui->labelVersion->setText(tr("Version: %1\nBuild date: %2").arg(QLatin1String{BUILD_VERSION}, QLatin1String{BUILD_DATE})); - ui->labelAbout->setTextFormat(Qt::RichText); ui->labelAbout->setText(QString("

© LibreELEC %8

%1
%2

%3
https://github.com/LibreELEC/usb-sd-creator

%4
%5

%6
%7

") \ .arg(tr("This software was created with love and released")) .arg(tr("under GPLv2, using earlier work from RasPlex.")) diff --git a/creator.ui b/creator.ui index 4358b28..7d25951 100644 --- a/creator.ui +++ b/creator.ui @@ -807,6 +807,9 @@ 10 + + Qt::RichText + Qt::AlignHCenter|Qt::AlignTop diff --git a/main.cpp b/main.cpp index 80680a3..469153e 100644 --- a/main.cpp +++ b/main.cpp @@ -46,7 +46,9 @@ void noMessageOutput(QtMsgType type, const QMessageLogContext &context, const QS int main(int argc, char *argv[]) { +#ifdef Q_OS_WINDOWS qputenv("QT_QPA_PLATFORM", "windows:darkmode=0"); +#endif QApplication app(argc, argv); const auto cmdArgs = app.arguments();