LionyxML / auto-dark-emacs

Auto-Dark-Emacs is an auto changer between 2 themes, dark/light, following MacOS, Linux or Windows Dark Mode settings
GNU General Public License v2.0
140 stars 34 forks source link

[Feature] Support dark-mode on Windows. #17

Closed seagle0128 closed 1 year ago

seagle0128 commented 1 year ago

Use powershell to check if dark-mode is enabled on Windows.

Close #16

LionyxML commented 1 year ago

Woooow, thanks @seagle0128!!!

I'll take a look at it, probably near the weekend :)

Meanwhile, a couple of questions:

Thanks!

seagle0128 commented 1 year ago
  • Is PowerShell installed by default nowadays? Should we add it as a a requirement?

Windows PowerShell comes installed by default in every Windows, starting with Windows 7 SP1 and Windows Server 2008 R2 SP1. See https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell?view=powershell-7.2. If powershell doesn't exist, auto-dark--is-dark-mode-powershell always returns nil.

It works with any emacs build on Windows.