From 0e8c1fd2f5c50f0a4f53dab884bb33944f3d84ae Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Sat, 24 May 2025 00:54:44 +0800 Subject: [PATCH] RibbonWindow: Use embeded RibbonUI.alpha() for Qt 5. --- lib_source/qml/Qt5/RibbonWindow.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib_source/qml/Qt5/RibbonWindow.qml b/lib_source/qml/Qt5/RibbonWindow.qml index 6cb2517..58d6ed0 100644 --- a/lib_source/qml/Qt5/RibbonWindow.qml +++ b/lib_source/qml/Qt5/RibbonWindow.qml @@ -124,9 +124,9 @@ Window { if (Qt.platform.os === 'windows') { if (RibbonTheme.isDarkMode) { - return Qt.rgba(44, 43, 41, 0.8) + return RibbonUI.alpha('#2C2B29', 0.8) } - return Qt.rgba(255, 255, 255, 0.8) + return RibbonUI.alpha('#FFFFFF',0.8) } return 'transparent' } @@ -181,7 +181,7 @@ Window { let sub_windows = RibbonUI.windowsSet delete sub_windows[window_url] RibbonUI.windowsSet = sub_windows - }); + }) window.raise() window.requestActivate() }