Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
920 stars 207 forks source link

Automatic Dark/Light Theme Switching #1909

Open CouleeApps opened 4 years ago

CouleeApps commented 4 years ago

macOS has a feature which automatically switches light and dark themes during the day/night. It would be nice to have binja react to these events and switch to a user-specified theme.

Initial search found me QEvent::Type::PaletteChange but it seems this doesn't contain any information about which palette changed or why.

CouleeApps commented 3 years ago

Something interesting to note is, on certain themes, Qt will try to switch between light and dark palettes. None of the custom rendered binja controls switch, so it ends up looking very strange. image

Theme: refraction.bntheme.txt

0cyn commented 2 years ago

Something interesting to note is, on certain themes, Qt will try to switch between light and dark palettes. None of the custom rendered binja controls switch, so it ends up looking very strange.

Tracking this now on #3265