SourceCodeSyntaxHighlight icon indicating copy to clipboard operation
SourceCodeSyntaxHighlight copied to clipboard

Wrong colors with RTF engine

Open setanarut opened this issue 4 years ago • 5 comments

Wrong colors with RTF engine, Colors look more pastel (brighter) in RTF mode.

RTF Engine

Ekran Resmi 2021-11-24 15 57 40

HTML Engine (Looks normal)

Ekran Resmi 2021-11-24 15 58 15

setanarut avatar Nov 24 '21 13:11 setanarut

It is probably due to a different management / conversion of the color space during the display phase. The color value is exported correctly in both rtf and html output file. In the visualization phase then something happens that I cannot control.

The background color difference in rtf mode between the preview in the application and in the quicklook view is due to a different management of the code. However, it is not possible to use the application code for the quicklook preview on Monterey (and in any case this difference only affects the background color).

sbarex avatar Nov 24 '21 15:11 sbarex

The problem can be overcome by making the background color darker. If it is impossible to fix, it should be added to the documentation as "known bugs".

setanarut avatar Nov 24 '21 16:11 setanarut

The problem in not only in the background but in all colors. The right appearance is with the html engine.

I could not understand what conversion is done in the rtf display.

I will add a note in the known bugs.

sbarex avatar Nov 24 '21 16:11 sbarex

I am using Monterey 12.2.1 . In dark mode, the background of RTF engine isn't even dark anymore. It shows full white. The color of the code is still from the dark theme, but the background becomes white.

Here is RTF (dark color scheme syntax, white background) Screen Shot 2022-02-15 at 1 37 04 PM

Here is HTML engine (normal) Screen Shot 2022-02-15 at 1 37 20 PM

ph0ngp avatar Feb 15 '22 06:02 ph0ngp

Sorry, must be fixed on release 2.1.8 (56).

sbarex avatar Feb 15 '22 07:02 sbarex