-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic Dark/Light Mode #423
Comments
This would be possible using CSS's Currently it gets the colors from colors.ini and converts it to CSS in a :root pseudo-class: Instead, it could get colors from both the dark and light mode and use As a workaround, you could do this for now:
Now Spicetify will auto-generate the light theme :root pseudo-class, but the prefers-color-scheme media query will override that when you are using dark mode. |
Nice that worked perfectly! @echo off
setlocal enabledelayedexpansion
set light=7:00
set dark=17:30
if "%1"=="auto" goto auto
if "%1"=="toggle" goto toggle
start /B cmd /C call "spauto" auto >_spauto 2>&1
goto end
:auto
set color_scheme=0
:auto2
set t=%time:~0,5%
if %t%==%light% set color_scheme=light
if %t%==%dark% set color_scheme=dark
if not %color_scheme%==0 (
spicetify config color_scheme %color_scheme%
spicetify apply
timeout /t 60 >nul
goto auto
)
timeout /t 1 >nul
goto auto2
:toggle
spicetify config color_scheme > .tmp
set /p color_scheme=<.tmp
del .tmp
if %color_scheme%==dark spicetify config color_scheme light
if %color_scheme%==light spicetify config color_scheme dark
spicetify apply
goto end
:end Usage is |
How do I do this for macOS? |
Afaik there is no simple way to automatically switch between the dark and light version of the SpicetifyDefault theme when the system theme changes. Is there a way to automate what
does?
Pretty sure that this could be a candidate for a good feature.
The text was updated successfully, but these errors were encountered: