Skip to content

Commit dd2f0ad

Browse files
v1.0.33
Corrected a problem with Taskbar colorization Improved variables in config file
1 parent c552b54 commit dd2f0ad

4 files changed

Lines changed: 15 additions & 191 deletions

File tree

AutoTheme.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@
2020
https://github.com/unalignedcoder/auto-theme/
2121
2222
.NOTES
23-
Added T-Clock to extra apps and Fixed theme switching issues with it.
24-
Changed function names to appease PS standards. Sigh.
25-
Several minor improvements and fixes.
23+
Corrected a problem with Taskbar colorization
24+
Improved variables in config file
2625
#>
2726

2827
# ============= Script Version ==============
2928

3029
# This is automatically updated via pre-commit hook
31-
$scriptVersion = "1.0.32"
30+
$scriptVersion = "1.0.33"
3231

3332
# ============= Config file ==============
3433

@@ -900,9 +899,6 @@
900899
[string]$ThemePath
901900
)
902901

903-
# Turn off the accent color in taskbar usage. Debug feature. See config for more.
904-
if ($turnOffAccentColor) { Disable-TaskbarAccent -State "Off" } else { Disable-TaskbarAccent -State "On" }
905-
906902
# Check if the theme file exists
907903
if (Test-Path $ThemePath) {
908904

@@ -913,6 +909,9 @@
913909

914910
# Wait a bit for the theme to apply and the Settings window to appear
915911
Start-Sleep -Seconds 4
912+
913+
# Turn off or on the accent color in taskbar usage. Debug feature.
914+
if ($turnOffAccentColor) { Disable-TaskbarAccent -State "Off" } else { Disable-TaskbarAccent -State "On" }
916915

917916
Write-Log "Closing the Settings window" -verboseMessage $true
918917

@@ -1380,3 +1379,4 @@
13801379
}
13811380

13821381

1382+

Config.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
it may cause the taskbar to crash or flicker. Better avoid it. #>
8080
$tClockPath = "C:\Path\to\T-Clock\Clock64.exe"
8181
$updateTClockColor = $false
82-
# ============= Advanced variables ==============
82+
83+
# ============= Developer variables ==============
8384

8485
$log = $true
8586
$logFromTerminal = $false
@@ -90,6 +91,7 @@
9091
$checkLastRun = $true
9192
$maxLogEntries = "20"
9293

94+
# Turn this off if you have surge issues when switching theme or wallpaper
9395
$turnOffAccentColor = $false
9496

9597
$restartThemeService = $false

myDark.theme

Lines changed: 3 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<<<<<<< HEAD
2-
; Copyright � Microsoft Corp.
1+
; Copyright � Microsoft Corp.
32

43
[Theme]
54
; Windows - IDS_THEME_DISPLAYNAME_AERO
@@ -55,7 +54,7 @@ Path=%SystemRoot%\resources\themes\Aero\Aero.msstyles
5554
ColorStyle=NormalColor
5655
Size=NormalSize
5756
; This tells Windows "Pick accent color from wallpaper"
58-
AutoColorization=1
57+
AutoColorization=0
5958
; This sets the color
6059
ColorizationColor=0XC456371F
6160
SystemMode=Dark
@@ -65,12 +64,11 @@ VisualStyleVersion=10
6564
[boot]
6665
SCRNSAVE.EXE=
6766

68-
;
6967
[MasterThemeSelector]
7068
MTSM=RJSPBS
7169

7270
[Sounds]
73-
; Typically "Windows Default"
71+
; IDS_SCHEME_DEFAULT
7472
SchemeName=No Sounds
7573

7674
[Slideshow]
@@ -85,92 +83,4 @@ ImagesRootPath=B:\wallpapers\art\scur
8583
; This is a Base64 binary string that Windows uses internally to identify folders.
8684
; It can track folders even if they are special system directories (like Libraries) that don't have standard paths.
8785
; Windows prioritizes this entry; if this exists, it ignores the text path.
88-
=======
89-
; Copyright � Microsoft Corp.
90-
91-
[Theme]
92-
; Windows - IDS_THEME_DISPLAYNAME_AERO
93-
DisplayName=myDark
94-
ThemeId={56770D7D-0E5B-405C-A634-A377685ABE78}
95-
SetLogonBackground=1
96-
97-
; Computer - SHIDI_SERVER
98-
[CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon]
99-
DefaultValue=%SystemRoot%\System32\imageres.dll,-109
100-
101-
; UsersFiles - SHIDI_USERFILES
102-
[CLSID\{59031A47-3F72-44A7-89C5-5595FE6B30EE}\DefaultIcon]
103-
DefaultValue=%SystemRoot%\System32\imageres.dll,-123
104-
105-
; Network - SHIDI_MYNETWORK
106-
[CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\DefaultIcon]
107-
DefaultValue=%SystemRoot%\System32\imageres.dll,-25
108-
109-
; Recycle Bin - SHIDI_RECYCLERFULL SHIDI_RECYCLER
110-
[CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon]
111-
Full=%SystemRoot%\System32\imageres.dll,-54
112-
Empty=%SystemRoot%\System32\imageres.dll,-55
113-
114-
[Control Panel\Cursors]
115-
AppStarting=%SystemRoot%\cursors\aero_working.ani
116-
Arrow=%SystemRoot%\cursors\aero_arrow.cur
117-
Crosshair=
118-
Hand=%SystemRoot%\cursors\aero_link.cur
119-
Help=%SystemRoot%\cursors\aero_helpsel.cur
120-
IBeam=
121-
No=%SystemRoot%\cursors\aero_unavail.cur
122-
NWPen=%SystemRoot%\cursors\aero_pen.cur
123-
SizeAll=%SystemRoot%\cursors\aero_move.cur
124-
SizeNESW=%SystemRoot%\cursors\aero_nesw.cur
125-
SizeNS=%SystemRoot%\cursors\aero_ns.cur
126-
SizeNWSE=%SystemRoot%\cursors\aero_nwse.cur
127-
SizeWE=%SystemRoot%\cursors\aero_ew.cur
128-
UpArrow=%SystemRoot%\cursors\aero_up.cur
129-
Wait=%SystemRoot%\cursors\aero_busy.ani
130-
DefaultValue=Windows Default
131-
132-
[Control Panel\Desktop]
133-
Wallpaper=
134-
Pattern=
135-
MultimonBackgrounds=0
136-
PicturePosition=4
137-
Wallpaper1=
138-
WindowsSpotlight=0
139-
140-
[VisualStyles]
141-
Path=%SystemRoot%\resources\themes\Aero\Aero.msstyles
142-
ColorStyle=NormalColor
143-
Size=NormalSize
144-
; This tells Windows "Pick accent color from wallpaper"
145-
AutoColorization=1
146-
; This sets the color
147-
ColorizationColor=0XC456371F
148-
SystemMode=Dark
149-
AppMode=Dark
150-
VisualStyleVersion=10
151-
152-
[boot]
153-
SCRNSAVE.EXE=
154-
155-
;
156-
[MasterThemeSelector]
157-
MTSM=RJSPBS
158-
159-
[Sounds]
160-
; Typically "Windows Default"
161-
SchemeName=No Sounds
162-
163-
[Slideshow]
164-
165-
; Windows usually only accepts the following specific values in the Interval field:
166-
; 60000 (1 Minute) 600000 (10 Minutes) 1800000 (30 Minutes) 3600000 (1 Hour) 21600000 (6 Hours) 86400000 (1 Day)
167-
; anything else will be rounded to these values.
168-
Interval=3600000
169-
Shuffle=1
170-
ImagesRootPath=B:\wallpapers\art\scur
171-
172-
; This is a Base64 binary string that Windows uses internally to identify folders.
173-
; It can track folders even if they are special system directories (like Libraries) that don't have standard paths.
174-
; Windows prioritizes this entry; if this exists, it ignores the text path.
175-
>>>>>>> 35b60f399b3bba5a272784e8a16f9e4e77b5d2a2
17686
ImagesRootPIDL=4GAFA8BUg/E0gouOpBhoYjAArADMdmBAvIkOcBAAAAAAAAAAAAAAAAAAAAAAAAgXAEDAAAAAAIVVHzKEAcVQMxEUB5XMAAgRAkAAEAw7+OCR2vjMaValuAAAAQqYAAAAAkAAAAAAAAAAAAAAAAAAAAAUoxEA3BQYAwGAsBAcAEGAwBQZAIHAzBAAAgBAKBQMAAAAAAgSZpfcQAQYyRHA4AQCAQAAv77IEl/OyoVpV6CAAAAn5UAAAAQAAAAAAAAAAAAAAAAAAAAA6haYAEGAyBAdAAAASAQ4AEDAAAAAAIjWNTJEAM3Y1JHAAoDAJAABA8uvTWlhjIjWNTpLAAAAdpTBAAAABAAAAAAAAAAAAAAAAAAAAQceXBwcAMGA1BgcAAAAUAwkAAAAnAw7+WIAAAQMTB1U32pr/3IH/PUgMSIQ6M6ctkGAAAAZAAAAA8BAAAALAAAA3BQaA4GAkBwbAcHAzBgLAkGAtBQbAUGAyBwcAkGA2BQZAMGAvBgbAQHAyBwbAwGAwBQYA4GAlBAbA8FAjBwdAUDAuBQMAgGAyAAdAgHA5BQZAcHA5BAAAAAAAAAAAAAAUAAAAA

myLight.theme

Lines changed: 2 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<<<<<<< HEAD
2-
; Copyright � Microsoft Corp.
1+
; Copyright � Microsoft Corp.
32

43
[Theme]
54
; Windows - IDS_THEME_DISPLAYNAME_AERO
@@ -55,7 +54,7 @@ Path=%SystemRoot%\resources\themes\Aero\Aero.msstyles
5554
ColorStyle=NormalColor
5655
Size=NormalSize
5756
; This tells Windows "Pick accent color from wallpaper"
58-
AutoColorization=1
57+
AutoColorization=0
5958
; This sets the color
6059
ColorizationColor=0XC45A411B
6160
SystemMode=Light
@@ -84,91 +83,4 @@ ImagesRootPath=B:\wallpapers\art\ciar
8483
; This is a Base64 binary string that Windows uses internally to identify folders.
8584
; It can track folders even if they are special system directories (like Libraries) that don't have standard paths.
8685
; Windows prioritizes this entry; if this exists, it ignores the text path.
87-
=======
88-
; Copyright � Microsoft Corp.
89-
90-
[Theme]
91-
; Windows - IDS_THEME_DISPLAYNAME_AERO
92-
DisplayName=myLight
93-
ThemeId={7DE83D1D-6FC1-4B34-9C36-110B9CE0D11B}
94-
SetLogonBackground=1
95-
96-
; Computer - SHIDI_SERVER
97-
[CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon]
98-
DefaultValue=%SystemRoot%\System32\imageres.dll,-109
99-
100-
; UsersFiles - SHIDI_USERFILES
101-
[CLSID\{59031A47-3F72-44A7-89C5-5595FE6B30EE}\DefaultIcon]
102-
DefaultValue=%SystemRoot%\System32\imageres.dll,-123
103-
104-
; Network - SHIDI_MYNETWORK
105-
[CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\DefaultIcon]
106-
DefaultValue=%SystemRoot%\System32\imageres.dll,-25
107-
108-
; Recycle Bin - SHIDI_RECYCLERFULL SHIDI_RECYCLER
109-
[CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon]
110-
Full=%SystemRoot%\System32\imageres.dll,-54
111-
Empty=%SystemRoot%\System32\imageres.dll,-55
112-
113-
[Control Panel\Cursors]
114-
AppStarting=%SystemRoot%\cursors\aero_working.ani
115-
Arrow=%SystemRoot%\cursors\aero_arrow.cur
116-
Crosshair=
117-
Hand=%SystemRoot%\cursors\aero_link.cur
118-
Help=%SystemRoot%\cursors\aero_helpsel.cur
119-
IBeam=
120-
No=%SystemRoot%\cursors\aero_unavail.cur
121-
NWPen=%SystemRoot%\cursors\aero_pen.cur
122-
SizeAll=%SystemRoot%\cursors\aero_move.cur
123-
SizeNESW=%SystemRoot%\cursors\aero_nesw.cur
124-
SizeNS=%SystemRoot%\cursors\aero_ns.cur
125-
SizeNWSE=%SystemRoot%\cursors\aero_nwse.cur
126-
SizeWE=%SystemRoot%\cursors\aero_ew.cur
127-
UpArrow=%SystemRoot%\cursors\aero_up.cur
128-
Wait=%SystemRoot%\cursors\aero_busy.ani
129-
DefaultValue=Windows Default
130-
131-
[Control Panel\Desktop]
132-
Wallpaper=
133-
Pattern=
134-
MultimonBackgrounds=0
135-
PicturePosition=4
136-
Wallpaper1=
137-
WindowsSpotlight=0
138-
139-
[VisualStyles]
140-
Path=%SystemRoot%\resources\themes\Aero\Aero.msstyles
141-
ColorStyle=NormalColor
142-
Size=NormalSize
143-
; This tells Windows "Pick accent color from wallpaper"
144-
AutoColorization=1
145-
; This sets the color
146-
ColorizationColor=0XC45A411B
147-
SystemMode=Light
148-
AppMode=Light
149-
VisualStyleVersion=10
150-
151-
[boot]
152-
SCRNSAVE.EXE=
153-
154-
[MasterThemeSelector]
155-
MTSM=RJSPBS
156-
157-
[Sounds]
158-
; IDS_SCHEME_DEFAULT
159-
SchemeName=No Sounds
160-
161-
[Slideshow]
162-
163-
; Windows usually only accepts the following specific values in the Interval field:
164-
; 60000 (1 Minute) 600000 (10 Minutes) 1800000 (30 Minutes) 3600000 (1 Hour) 21600000 (6 Hours) 86400000 (1 Day)
165-
; anything else will be rounded to these values.
166-
Interval=3600000
167-
Shuffle=1
168-
ImagesRootPath=B:\wallpapers\art\ciar
169-
170-
; This is a Base64 binary string that Windows uses internally to identify folders.
171-
; It can track folders even if they are special system directories (like Libraries) that don't have standard paths.
172-
; Windows prioritizes this entry; if this exists, it ignores the text path.
173-
>>>>>>> 35b60f399b3bba5a272784e8a16f9e4e77b5d2a2
17486
ImagesRootPIDL=4GAFA8BUg/E0gouOpBhoYjAArADMdmBAvIkOcBAAAAAAAAAAAAAAAAAAAAAAAAgXAEDAAAAAAIVVHzKEAcVQMxEUB5XMAAgRAkAAEAw7+OCR2vjMaValuAAAAQqYAAAAAkAAAAAAAAAAAAAAAAAAAAAUoxEA3BQYAwGAsBAcAEGAwBQZAIHAzBAAAgBAKBQMAAAAAAgSZpfcQAQYyRHA4AQCAQAAv77IEl/OyoVpV6CAAAAn5UAAAAQAAAAAAAAAAAAAAAAAAAAA6haYAEGAyBAdAAAASAQ4AEDAAAAAAIjWYSJEAMWahJHAAoDAJAABA8uvTWVjjIjWYSpLAAAAemTBAAAABAAAAAAAAAAAAAAAAAAAAUNUEDwYAkGAhBgcAAAAUAwkAAAAnAw7+WIAAAQMTB1U32pr/3IH/PUgMSIQ6M6ctkGAAAAZAAAAA8BAAAALAAAA3BQaA4GAkBwbAcHAzBgLAkGAtBQbAUGAyBwcAkGA2BQZAMGAvBgbAQHAyBwbAwGAwBQYA4GAlBAbA8FAjBwdAUDAuBQMAgGAyAAdAgHA5BQZAcHA5BAAAAAAAAAAAAAAUAAAAA

0 commit comments

Comments
 (0)