Skip to content

Instantly share code, notes, and snippets.

@vhanla
Last active October 24, 2023 06:47
Show Gist options
  • Save vhanla/635d3b8551793fc59850462a374cc158 to your computer and use it in GitHub Desktop.
Save vhanla/635d3b8551793fc59850462a374cc158 to your computer and use it in GitHub Desktop.
Change Windows 10 Acrylic Taskbar Opacity
@echo off
cls
:OPTIONS
echo.
echo TaskbarOpacity v1.1 EN
echo Description: Adjusts Windows 10 taskbar transparency level.
echo Requirements: Windows 10 version 1803 or above, activated.
echo Author: vhanla
echo.
echo Input valur from 0 to 255 transparency level:
echo.
set /P opa=">
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v TaskbarAcrylicOpacity /t REG_DWORD /d %opa% /f
rem The following registry values must be updated too
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize /v ColorPrevalence /t REG_DWORD /d 0 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize /v EnableTransparency /t REG_DWORD /d 1 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize /v SystemUsesLightTheme /t REG_DWORD /d 0 /f
echo Stopping explorer.exe process (taskbar parent):
tasklist /FI "IMAGENAME eq explorer.exe" /FO table
echo.
rem csv
taskkill /f /im explorer.exe && start explorer.exe
echo.
echo Explorer should have restarted, otherwise...
set res=
set /P res=Restart Explorer again [y/n]?
if "%res%"=="y" (
echo Starting explorer...
start explorer.exe
)
@bobthehuman
Copy link

no matter what i set it to it always has the same transparency level

@vhanla
Copy link
Author

vhanla commented Oct 4, 2020

As this is a non official method, some Windows 10 versions seem to have issues, I don't really know why, but I figured it out that transparency effects must be enabled and other features disabled too in order to make it work, I updated the script. Incase it still fails, your system must be the exception.
imagen

I tested that versions working are from Windows 10 version 1803 and above, version 2004 included.

Notice: it won't work if theme is set to white, only dark theme accepts this trick.

Just incase you didn't know yet, there are third party tools that modify the taskbar's drawing to make it translucent as well.
I even wrote my own version here: https://github.com/vhanla/TaskbarDock

@notexactlynikhil
Copy link

How do I revert back to default taskbar opacity?

@vhanla
Copy link
Author

vhanla commented Sep 8, 2021

@sudo-nikhil you have to delete TaskbarAcrylicOpacity added and restart explorer.exe

@notexactlynikhil
Copy link

notexactlynikhil commented Sep 10, 2021

Thank you, that worked.

@andrenascentes
Copy link

It works! Thanks. Do think it is possible to extend it to the start menu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment