plasma: fill the exposed rectangle with the set color in potd wallpaper

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-09 20:08:45 +03:00
parent b61f979a85
commit 30301c83ee

View file

@ -108,7 +108,7 @@ void PoTD::paint(QPainter *painter, const QRectF &exposedRect)
{
const QSize brectsize = boundingRect().size().toSize();
if (m_image.isNull() || m_size != brectsize) {
painter->fillRect(exposedRect, QBrush(Qt::black));
painter->fillRect(exposedRect, m_color);
m_size = brectsize;
if (!m_imagepath.isEmpty()) {
kDebug() << "rendering potd" << m_imagepath << m_size << m_resizemethod << m_color;