搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

I want to make a dynamic theme that changes when switching macOS between Light and Dark modes. Any way to examine System theme's code?

  • 無回覆
  • 1 有這個問題
  • 6 次檢視
more options

Is there any way I can get ahold of the code for System theme - for example, is it stored somewhere on my computer? I'm reading up on dynamic themes, but the example code is for automatic theme changing based on time of day. I'm hoping that, if I can get the code for triggering a theme change by switching between Light and Dark modes, whether from System theme or from another source, I can save myself a lot of time.

Is there any way I can get ahold of the code for System theme - for example, is it stored somewhere on my computer? I'm reading up on dynamic themes, but the example code is for automatic theme changing based on time of day. I'm hoping that, if I can get the code for triggering a theme change by switching between Light and Dark modes, whether from System theme or from another source, I can save myself a lot of time.