Nintendo Switch Online/Parental Controls app APIs. Show your Nintendo Switch presence in Discord, get friend notifications on desktop, and download and access SplatNet 2, NookLink, SplatNet 3 and Parental Controls data. Mirror of https://gitlab.fancy.org.uk/samuel/nxapi.git.
This PR is to fix the task tray icon when system is in dark mode (#49).
I'm not good at TypeScript and Electron (but I'm good at JS) so if you find anything I missed, please point out.
If the system is dark mode, window.matchMedia('(prefers-color-scheme: night)').matches returns true.
If you replace night to light, you'll get true if the system is light mode. This is an outline of this PR.
Please see the compare to know all of this PR.
I learned how to get the theme state of the system in this page.
This PR is to fix the task tray icon when system is in dark mode (#49). I'm not good at TypeScript and Electron (but I'm good at JS) so if you find anything I missed, please point out.
If the system is dark mode,
window.matchMedia('(prefers-color-scheme: night)').matches
returnstrue
. If you replacenight
tolight
, you'll gettrue
if the system is light mode. This is an outline of this PR. Please see the compare to know all of this PR. I learned how to get the theme state of the system in this page.