Home » U++ Library support » RichText,QTF,RTF... » Bugfix: Report header/footer looks good in dark mode, not dark
Bugfix: Report header/footer looks good in dark mode, not dark [message #56759] |
Mon, 12 April 2021 03:02 |
zsolt
Messages: 696 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
-------------------------- uppsrc/Report/Report.cpp ---------------------------
index 7cd2cd679..f46905e9f 100644
@@ -51,7 +51,9 @@ Rect Report::GetPageRect()
void Report::PaintHF(Draw& w, int y, const char *qtf, int i)
{
RichText txt = ParseQTF(FormatHF(qtf, i));
- txt.Paint(w, 0, y, GetSize().cx);
+ PaintInfo pi;
+ pi.highlightpara = false;
+ txt.Paint(w, 0, y, GetSize().cx, pi);
}
|
|
|
Re: Bugfix: Report header/footer looks good in dark mode, not dark [message #56815 is a reply to message #56759] |
Sat, 17 April 2021 17:08 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Setting highlightpara is not necessarry and does not make sense. What the fix needs is darktheme = false, which is default, just Paint without PaintInfo sets it to true. So in fact, the correct fix seems to be
void Report::PaintHF(Draw& w, int y, const char *qtf, int i)
{
RichText txt = ParseQTF(FormatHF(qtf, i));
PaintInfo pi; // need pi so that darktheme is false
txt.Paint(w, 0, y, GetSize().cx, pi);
}
[Updated on: Sat, 17 April 2021 17:12] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Thu Apr 18 10:18:52 CEST 2024
Total time taken to generate the page: 0.01859 seconds
|