Skip to content

Commit b049bf8

Browse files
deepin-ci-robot18202781743
authored andcommitted
sync: from linuxdeepin/qt5integration
Synchronize source files from linuxdeepin/qt5integration. Source-pull-request: linuxdeepin/qt5integration#227
1 parent ac5e4c9 commit b049bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

styleplugins/chameleon/chameleonstyle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2812,7 +2812,7 @@ void ChameleonStyle::drawMenuItemBackground(const QStyleOption *option, QPainter
28122812
} else {
28132813
color = option->palette.window().color();
28142814

2815-
if (color.color().isValid()) {
2815+
if (color.color().isValid() && color.color().alpha() != 0) {
28162816
QColor c = color.color();
28172817

28182818
// 未开启窗口混成时不应该设置背景色的alpha通道,应当显示纯色背景(设置StyleSheet时,不加载此设置,防止alpha通道等对其造成影响)

0 commit comments

Comments
 (0)