RibbonWindow: Use embeded RibbonUI.alpha() for Qt 5.

This commit is contained in:
Mentalflow 2025-05-24 00:54:44 +08:00
parent fa7439f243
commit 0e8c1fd2f5
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 3 additions and 3 deletions

View File

@ -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()
}