From 27d1b3f57f9ffbf5f1063738c14bf4f1cef822d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A?= Date: Sun, 21 May 2023 22:24:56 +0800 Subject: [PATCH] update --- example/qml/component/CustomWindow.qml | 2 +- example/src/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/qml/component/CustomWindow.qml b/example/qml/component/CustomWindow.qml index 4f684e03..6ea394af 100644 --- a/example/qml/component/CustomWindow.qml +++ b/example/qml/component/CustomWindow.qml @@ -46,7 +46,7 @@ FluWindow { framless_helper.setWindowFixedSize(fixSize) title_bar.maximizeButton.visible = !fixSize if (blurBehindWindowEnabled) - window.backgroundOpacity = 0.8 + window.backgroundOpacity = 0.1 window.visible = true } } diff --git a/example/src/main.cpp b/example/src/main.cpp index 9dac27ab..ab655259 100644 --- a/example/src/main.cpp +++ b/example/src/main.cpp @@ -24,9 +24,9 @@ FRAMELESSHELPER_USE_NAMESPACE FramelessConfig::instance()->set(Global::Option::ForceHideWindowFrameBorder); FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial); FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow); - FramelessConfig::instance()->set(Global::Option::EnableBlurBehindWindow); -#ifndef QT_OS_WIN FramelessConfig::instance()->set(Global::Option::EnableBlurBehindWindow,false); +#ifdef Q_OS_MACOS + FramelessConfig::instance()->set(Global::Option::EnableBlurBehindWindow,true); #endif AppInfo* appInfo = new AppInfo(); IPC ipc(0);