RTF files losing formatting (text colors) when displayed in Dark Mode
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/dc3818df-a656-4ead-ae35-af0f7cce4857n%40googlegroups.com.


However, if you use Rodrigo Ruz's VCL Styles plugin for Inno Setup, the color formatting of the text in the RTF document is not lost.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/bdc5964b-3ff4-4790-a011-f7514c215329n%40googlegroups.com.
On Sunday, November 16, 2025, 10:57:09, 'Martijn Laan' via innosetup wrote:
Interesting, thanks. Do you know how he achieved that? His main VCL Styles Utils project is full of techniques I do not consider reasonable myself, but maybe this one is okay.
I'd check how RTF text is rendered when the text colour isn't set – that should result in the RTF control using Windows text colour (which I assume the theme will override); this is also how RTF files are rendered in high contrast mode (text without colour set uses whatever the Windows foreground colour is, while text with explicit colour is shown with that; it does sometimes result in unreadable text, when colour was explicitly set to black).
I do notice the contrast is really bad. Is this really usable? It would be better readable without the colors.
That example is pretty bad, but IMHO if the installer is set up to support dark themes and uses coloured RTF, it's the responsibility of creator to make sure that the text is readable.
I'd check how RTF text is rendered when the text colour isn't set – that should result in the RTF control using Windows text colour (which I assume the theme will override)
; this is also how RTF files are rendered in high contrast mode (text without colour set uses whatever the Windows foreground colour is, while text with explicit colour is shown with that; it does sometimes result in unreadable text, when colour was explicitly set to black).
That example is pretty bad, but IMHO if the installer is set up to support dark themes and uses coloured RTF, it's the responsibility of creator to make sure that the text is readable.
The specified text colors in the RTF document are not reset when using a dark theme and look the same on both light and dark themes.
This is shown in the screenshots with and without the plugin.
If you use the new Inno Setup theme settings, all colors in the RTF document are reset.
WizardStyle=modern light


If you use the new Inno Setup theme settings, all colors in the RTF document are reset.
With VclStylesinno.dll plugin - all is OK.
On Sunday, November 16, 2025, 12:54:54, 'Martijn Laan' via innosetup wrote:
I believe you're referring to CFE_AUTOCOLOR. AFAIK it changes the color of all text, not just the color of black text. And do note that the Windows foreground color (COLOR_WINDOWTEXT) is not changed by us nor by this plugin.
I'm specifically referring to this:
Notice how the Normal text is rendered with the same colour as the labels (as is the text with background highlights). Is it possible for Inno's themes to do the same thing?
Is that actually possible? For example, what shades or red, green and blue have a proper contrast ratio on both black and white?
For red, #eb0000 seems to pass, for green it's #008a00 and #6161ff for blue.
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/233000887.20251116144040%40eternallybored.org.
Notice how the Normal text is rendered with the same colour as the labels (as is the text with background highlights). Is it possible for Inno's themes to do the same thing?








On Sunday, November 16, 2025, 15:37:20, 'Martijn Laan' via innosetup wrote:
Your screenshot is with a high contrast theme active, correct?
Correct.
Great! It works now. :)
Thanks for your hard work.
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/1d61e1b9-b69e-4809-b2f8-1e5541b6a807n%40googlegroups.com.
Martijn. With the latest change, when you said,
“I've actually improved the new approach by using the Rich Edit OLE interface instead of Windows messages,..”
the default text no longer changes and is not visible with the dark theme.

Everything was fine in the previous build.
Could you please check again?
Martijn. With the latest change, when you said,
“I've actually improved the new approach by using the Rich Edit OLE interface instead of Windows messages,..”
the default text no longer changes and is not visible with the dark theme.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/ad8f9498-edf9-4ace-bba4-74f9381c3268n%40googlegroups.com.


Hi. I tested the latest innosetup-6.6.1-dev.exe and this is how it renders:
To view this discussion visit https://groups.google.com/d/msgid/innosetup/b3463946-a568-40d2-978c-c37f0d429e2en%40googlegroups.com.
On Tuesday, November 18, 2025, 22:10:37, 'Martijn Laan' via innosetup wrote:
Are you sure you used the latest version? And does this happen with Example1.iss? I notice you likely have custom code since there are no radio buttons to accept or decline the license.
It's using the InfoBeforeFile page, not License (because there's no need for end-user to agree to GPL), but the newer 6.6.1-dev works fine (you might want to start adding a build number to dev versions, so there's less confusion).