I’m using Anki 2.1.48 from anki-bin on the AUR. I’m having a strange issue with night mode and my GTK theme. My GTK theme is Equilux.
At first, my GTK theme wasn’t applied to any parts of the interface. I looked up the issue, and installed qt5ct and set my theme to gtk2 through there. The preview shows my GTK theme applied basically perfectly. I also set
/etc/environment. The rest of my QT apps, like QPDFView, work with the GTK theme applied.
Then, I had my theme working, albeit with the issue that everything was dark / the review interface was black-on-white (a light mode). I went into Preferences, and toggled Night Mode to on. However, upon reloading, my GTK theme seems to be disabled as a QT theme, and the interface elements are different - using a blue highlight and a different font, for example. With night mode, the review interface is white-on-dark, as expected, but my GTK / QT theme doesn’t seem to be properly applied.
Here are some screenshots of the issue.
Below, with night mode enabled, and with the ‘wrong’ theme. Interface elements are light on dark as desired.
With night mode off (ignore that the Deck and New are white, I went and edited the CSS in
/usr/lib/python3.9/site-packages/aqt/data/web/css/). Interface elements are dark on dark, but correct theme applied.
Please let me know how I can fix this issue. I can live with the differing interface elements, but having a cohesive experience with my Equilux theme would be nice!