r24660 by jghali - Draw fancy color pixmap with transparent background in order to also accomodate dark mode
scribus-commit
scribus-commit at lists.scribus.net
Sat Jun 5 15:15:25 UTC 2021
Author: jghali
Date: Sat Jun 5 15:15:25 2021
New Revision: 24660
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24660
Log:
Draw fancy color pixmap with transparent background in order to also accomodate dark mode
Modified:
trunk/Scribus/scribus/util_color.cpp
Modified: trunk/Scribus/scribus/util_color.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24660&path=/trunk/Scribus/scribus/util_color.cpp
==============================================================================
--- trunk/Scribus/scribus/util_color.cpp (original)
+++ trunk/Scribus/scribus/util_color.cpp Sat Jun 5 15:15:25 2021
@@ -271,8 +271,7 @@
QPixmap *pa = new QPixmap(60, 15);
QPixmap *pm = getSmallPixmap(ScColorEngine::getDisplayColor(col, doc));
-// QPixmap *pm=getSmallPixmap(col.getRawRGBColor());
- pa->fill(Qt::white);
+ pa->fill(Qt::transparent);
paintAlert(*pm, *pa, 0, 0);
if (ScColorEngine::isOutOfGamut(col, doc))
paintAlert(alertIcon, *pa, 15, 0);
More information about the scribus-commit
mailing list