From 34d3a3b2db97d320a4aaf55a6fae761b335cfab6 Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Sun, 5 Jan 2025 19:39:49 +0800 Subject: [PATCH] RibbonBackStageView: Fix content background opacity bug. --- lib_source/qml/Qt5/RibbonBackStageView.qml | 4 ++-- lib_source/qml/Qt6/RibbonBackStageView.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib_source/qml/Qt5/RibbonBackStageView.qml b/lib_source/qml/Qt5/RibbonBackStageView.qml index 5e07498..c74e62a 100644 --- a/lib_source/qml/Qt5/RibbonBackStageView.qml +++ b/lib_source/qml/Qt5/RibbonBackStageView.qml @@ -512,7 +512,7 @@ Popup { function show(){ control.opacity = 1 menu_bg.x = 0 - content_bg.color = alphaTohex(control.bgColor, blurEnabled ? RibbonTheme.modernStyle ? 0.95 : 0.9 : 1) + content_bg.color = alphaTohex(control.bgColor, blurEnabled ? RibbonTheme.modernStyle ? 0.92 : 0.9 : 1) blur_bg.maskOpacity = blurEnabled ? 0.5 : 1 blur_bg.blurRadius = blurEnabled ? 32 : 0 blur_bg.opacity = 1 @@ -528,7 +528,7 @@ Popup { } function refresh(){ - content_bg.color = alphaTohex(control.bgColor, blurEnabled ? RibbonTheme.modernStyle ? 0.95 : 0.9 : 1) + content_bg.color = alphaTohex(control.bgColor, blurEnabled ? RibbonTheme.modernStyle ? 0.92 : 0.9 : 1) blur_bg.maskOpacity = blurEnabled ? 0.5 : 1 blur_bg.blurRadius = blurEnabled ? 32 : 0 blur_bg.opacity = 1 diff --git a/lib_source/qml/Qt6/RibbonBackStageView.qml b/lib_source/qml/Qt6/RibbonBackStageView.qml index d461b1d..ae937e8 100644 --- a/lib_source/qml/Qt6/RibbonBackStageView.qml +++ b/lib_source/qml/Qt6/RibbonBackStageView.qml @@ -512,7 +512,7 @@ Popup { function show(){ control.opacity = 1 menu_bg.x = 0 - content_bg.color = Qt.alpha(control.bgColor, blurEnabled ? RibbonTheme.modernStyle ? 0.95 : 0.9 : 1) + content_bg.color = Qt.alpha(control.bgColor, blurEnabled ? RibbonTheme.modernStyle ? 0.92 : 0.9 : 1) blur_bg.maskOpacity = blurEnabled ? 0.5 : 1 blur_bg.blurRadius = blurEnabled ? 32 : 0 blur_bg.opacity = 1 @@ -528,7 +528,7 @@ Popup { } function refresh(){ - content_bg.color = Qt.alpha(control.bgColor, blurEnabled ? RibbonTheme.modernStyle ? 0.95 : 0.9 : 1) + content_bg.color = Qt.alpha(control.bgColor, blurEnabled ? RibbonTheme.modernStyle ? 0.92 : 0.9 : 1) blur_bg.maskOpacity = blurEnabled ? 0.5 : 1 blur_bg.blurRadius = blurEnabled ? 32 : 0 blur_bg.opacity = 1