|
|
|
@ -358,8 +358,9 @@ namespace O3DE::ProjectManager
|
|
|
|
painter.drawPixmap(backgroundRect, m_background);
|
|
|
|
painter.drawPixmap(backgroundRect, m_background);
|
|
|
|
|
|
|
|
|
|
|
|
// Draw a semi-transparent overlay to darken down the colors.
|
|
|
|
// Draw a semi-transparent overlay to darken down the colors.
|
|
|
|
painter.setCompositionMode (QPainter::CompositionMode_DestinationIn);
|
|
|
|
// Use SourceOver, DestinationIn will make background transparent on Mac
|
|
|
|
const float overlayTransparency = 0.7f;
|
|
|
|
painter.setCompositionMode (QPainter::CompositionMode_SourceOver);
|
|
|
|
|
|
|
|
const float overlayTransparency = 0.3f;
|
|
|
|
painter.fillRect(backgroundRect, QColor(0, 0, 0, static_cast<int>(255.0f * overlayTransparency)));
|
|
|
|
painter.fillRect(backgroundRect, QColor(0, 0, 0, static_cast<int>(255.0f * overlayTransparency)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|