vstinner / hachoir

Hachoir is a Python library to view and edit a binary stream field by field
http://hachoir.readthedocs.io/
GNU General Public License v2.0
604 stars 70 forks source link

Support "Dark mode" in hachoir-wx #64

Closed simoncozens closed 3 years ago

simoncozens commented 3 years ago

hachoir-wx doesn't currently work well on OSes with dark mode enabled because it sets an explicit background colour on the hex editor:

Screenshot 2021-05-21 at 15 53 19

This PR changes the background colour based on the output of the darkdetect Python module:

Screenshot 2021-05-21 at 15 54 12
vstinner commented 3 years ago

Thank you, I merged your PR ;-)