Calibre unexpected dark theme

It can be very annoying an undesired dark theme in Calibre (both viewer and editor): reading could become difficult, or almost impossible.
This happens (probably) if you have a flatpack release of Calibre: try to remove the flatpack one, and install a release of Calibre from their website.

Flatpack is convenient (automatic updates), but have some problems….

Thunderbird appearance problem

It can happen that your TB theme (unintentionally and therefore inadvertently) changes and as a result it doesn’t match with your custom css (in chrome folder). You can see below an example of this:
a screenshot

As you can see, you get not only a very ugly appearance, but using TB becomes almost impossible.

To fix this problem you have to check (in edit -> settings -> add-ons and themes) what theme you are using, and if necessary, re-set the correct one, that suits to your css.