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 ![Go to next message Go to next message](theme/default/images/down.png) |
zsolt
Messages: 698 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 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
![](https://www.ultimatepp.org/forums/images/custom_avatars/3.png) |
mirek
Messages: 13986 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: Sun Jun 16 21:00:03 CEST 2024
Total time taken to generate the page: 0.02284 seconds
|