Merge pull request #120 from mentalfl0w/dev

Fix the system titlebar buttons show behind surface.
main
zhuzichu 2023-05-21 20:38:58 +08:00 committed by GitHub
commit e7c185e723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#include <QGuiApplication> #include <QGuiApplication>
#include <QQmlApplicationEngine> #include <QQmlApplicationEngine>
#include <QQmlContext> #include <QQmlContext>
#include <QDir> #include <QDir>
@ -22,7 +22,9 @@ FRAMELESSHELPER_USE_NAMESPACE
QGuiApplication::setApplicationName("FluentUI"); QGuiApplication::setApplicationName("FluentUI");
QGuiApplication app(argc, argv); QGuiApplication app(argc, argv);
FramelessConfig::instance()->set(Global::Option::ForceHideWindowFrameBorder); FramelessConfig::instance()->set(Global::Option::ForceHideWindowFrameBorder);
// FramelessConfig::instance()->set(Global::Option::EnableBlurBehindWindow); #ifndef QT_OS_WIN
FramelessConfig::instance()->set(Global::Option::EnableBlurBehindWindow);
#endif
FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial); FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial);
FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow); FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow);
AppInfo* appInfo = new AppInfo(); AppInfo* appInfo = new AppInfo();