xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.56k stars 82 forks source link

Tri-state dark reader mode switching: on/off/auto #1561

Open tecix opened 2 months ago

tecix commented 2 months ago

It would be awesome if GoldenDict-ng could automatically switch between light and dark modes based on the system settings. Lots of us love using Dark Mode at night to save our eyes. If GoldenDict-ng could follow the system theme, it would make things super smooth and consistent with other apps.

image
shenlebantongying commented 2 months ago

Related colorSchemeChanged -> https://doc.qt.io/qt-6/qstylehints.html#colorScheme-prop

The "auto" option is only doable on Mac as of right now because

tecix commented 2 months ago

For the reference, I'm using Gnome Wayland and the UI automatically change to dark mode but not the reader.

image

xiaoyifang commented 2 months ago

as designed https://github.com/xiaoyifang/goldendict-ng/issues/271#issuecomment-1364671897 . the reader's dark mode is control seperatedly. Check Edit->Preference , check dark reader mode.