RibbonWindow: Use embeded RibbonUI.alpha() for Qt 5.
This commit is contained in:
parent
fa7439f243
commit
0e8c1fd2f5
|
@ -124,9 +124,9 @@ Window {
|
||||||
if (Qt.platform.os === 'windows')
|
if (Qt.platform.os === 'windows')
|
||||||
{
|
{
|
||||||
if (RibbonTheme.isDarkMode) {
|
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'
|
return 'transparent'
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@ Window {
|
||||||
let sub_windows = RibbonUI.windowsSet
|
let sub_windows = RibbonUI.windowsSet
|
||||||
delete sub_windows[window_url]
|
delete sub_windows[window_url]
|
||||||
RibbonUI.windowsSet = sub_windows
|
RibbonUI.windowsSet = sub_windows
|
||||||
});
|
})
|
||||||
window.raise()
|
window.raise()
|
||||||
window.requestActivate()
|
window.requestActivate()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue