r24814 by jghali - Use QPalette's text color instead of black when restoring text color in story editor
scribus-commit
scribus-commit at lists.scribus.net
Fri Jan 21 19:12:17 UTC 2022
Author: jghali
Date: Fri Jan 21 19:12:17 2022
New Revision: 24814
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24814
Log:
Use QPalette's text color instead of black when restoring text color in story editor
Modified:
trunk/Scribus/scribus/ui/storyeditor.cpp
Modified: trunk/Scribus/scribus/ui/storyeditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24814&path=/trunk/Scribus/scribus/ui/storyeditor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/storyeditor.cpp (original)
+++ trunk/Scribus/scribus/ui/storyeditor.cpp Fri Jan 21 19:12:17 2022
@@ -995,7 +995,10 @@
if (marker)
tmp = QColor(Qt::red);
else
- tmp = QColor(Qt::black);
+ {
+ const QPalette& palette = this->palette();
+ tmp = palette.color(QPalette::Text);
+ }
setTextColor(tmp);
}
More information about the scribus-commit
mailing list