use material style for all platform

This commit is contained in:
notify 2023-01-16 21:57:05 +08:00
parent 2ab79a26fb
commit 2ea7acfb7a
3 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ find_package(Qt6 REQUIRED COMPONENTS
Widgets
Network
Multimedia
QuickControls2
)
find_package(OpenSSL)

View File

@ -77,4 +77,5 @@ target_link_libraries(FreeKill PRIVATE
Qt6::Widgets
Qt6::Network
Qt6::Multimedia
Qt6::QuickControls2
)

View File

@ -14,6 +14,7 @@
#include <QSplashScreen>
#include <QScreen>
#include <QFileDialog>
#include <QQuickStyle>
#if defined(Q_OS_ANDROID) || defined(Q_OS_WASM)
static bool copyPath(const QString &srcFilePath, const QString &tgtFilePath)
@ -137,6 +138,7 @@ int main(int argc, char *argv[])
SHOW_SPLASH_MSG("Loading qml files...");
QQmlApplicationEngine *engine = new QQmlApplicationEngine;
QQuickStyle::setStyle("Material");
QmlBackend backend;
backend.setEngine(engine);