Skip to content

Commit

Permalink
sync: from linuxdeepin/qt5integration
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/qt5integration.

Source-pull-request: linuxdeepin/qt5integration#227
  • Loading branch information
deepin-ci-robot committed Jul 3, 2024
1 parent ac5e4c9 commit 9207a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion styleplugins/chameleon/chameleonstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2812,7 +2812,7 @@ void ChameleonStyle::drawMenuItemBackground(const QStyleOption *option, QPainter
} else {
color = option->palette.window().color();

if (color.color().isValid()) {
if (color.color().isValid() && color.color() != Qt::transparent) {
QColor c = color.color();

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

0 comments on commit 9207a4c

Please sign in to comment.