@Piotr: there is still a difference. 1st, there is the fatter headers in Edit mode:
Then there is the “fattening” disabled, as per your last code snippet:
And this is what the same header looks like in Preview:
I checked the colours in Edit and Preview, they have the same rgb
values. But the headers in Preview are thinner.
Can that be fixed?