Skip to content

Commit

Permalink
feat(THEME): general fixes & legacy theme
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Sep 20, 2023
1 parent 9f85d0a commit 47b710f
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@ privilege: TrustedInstaller
actions:
# Copy files
- !cmd:
command: 'robocopy "Screen" "%windir%\Web\Screen" /E /PURGE /IM /IT /NP > nul'
exeDir: true
wait: true
- !cmd:
command: 'copy /y "Themes\atlas-light.theme" "%windir%\Resources\Themes" > nul'
exeDir: true
wait: true
- !cmd:
command: 'copy /y "Themes\atlas-dark.theme" "%windir%\Resources\Themes" > nul'
command: 'copy /y "Themes" "%windir%\Resources\Themes" > nul'
exeDir: true
wait: true

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions src/playbook/Executables/FINALIZE.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,6 @@ for %%a in ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capt
)
)

:: Set sound scheme to 'No Sounds'
:: If the "Volatile Environment" key exists, that means it is a proper user. Built in accounts/SIDs do not have this key.
for /f "usebackq tokens=2 delims=\" %%a in (`reg query HKU ^| findstr /r /x /c:"HKEY_USERS\\S-.*" /c:"HKEY_USERS\\AME_UserHive_[^_]*"`) do (
reg query "HKU\%%a" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > nul && (
echo Disabling sounds for "%%a"...
PowerShell -NoP -C "New-PSDrive HKU Registry HKEY_USERS; New-ItemProperty -Path 'HKU:\%%a\AppEvents\Schemes' -Name '(Default)' -Value '.None' -Force | Out-Null" > nul
PowerShell -NoP -C "New-PSDrive HKU Registry HKEY_USERS; Get-ChildItem -Path 'HKU:\%%a\AppEvents\Schemes\Apps' | Get-ChildItem | Get-ChildItem | Where-Object {$_.PSChildName -eq '.Current'} | Set-ItemProperty -Name '(Default)' -Value ''" > nul
)
)

:: Detect hard drive - Solid State Drive (SSD) or Hard Disk Drive (HDD)
for /f %%a in ('PowerShell -NoP -C "(Get-PhysicalDisk -SerialNumber (Get-Disk -Number (Get-Partition -DriveLetter $env:SystemDrive.Substring(0, 1)).DiskNumber).SerialNumber.TrimStart()).MediaType"') do (
set "diskDrive=%%a"
Expand Down
10 changes: 6 additions & 4 deletions src/playbook/Executables/THEME.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ taskkill /F /IM sihost.exe > nul 2>&1
exit /b

:ALLUSERS
if defined win11 reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Themes" /v "ThemeMRU" /t REG_SZ /d "%windir%\Resources\Themes\atlas-dark.theme;%windir%\resources\Themes\atlas-light.theme;" /f > nul
if defined win11 reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Themes" /v "ThemeMRU" /t REG_SZ /d "%windir%\Resources\Themes\atlas-dark.theme;%windir%\resources\Themes\atlas-light.theme;%windir%\resources\Themes\atlas-legacy.theme;" /f > nul

:: Set sound scheme to 'No Sounds'
reg add "HKU\%~1\AppEvents\Schemes" /ve /d ".None" /f > nul
PowerShell -NoP -C "New-PSDrive HKU Registry HKEY_USERS; Get-ChildItem -Path 'HKU:\%~1\AppEvents\Schemes\Apps' | Get-ChildItem | Get-ChildItem | Where-Object {$_.PSChildName -eq '.Current'} | Set-ItemProperty -Name '(Default)' -Value ''" > nul

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SystemProtectedUserData\%~1\AnyoneRead\Colors" /v "AccentColor" /t REG_DWORD /d "4290728257" /f > nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SystemProtectedUserData\%~1\AnyoneRead\Colors" /v "StartColor" /t REG_DWORD /d "4291969335" /f > nul

del /q /f "%~2\Microsoft\Windows\Themes\TranscodedWallpaper" > nul 2>&1
rmdir /q /s "%~2\Microsoft\Windows\Themes\CachedFiles" > nul 2>&1

if not "%~1"=="AME_UserHive_Default" (
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative\%~1" /v "RotatingLockScreenEnabled" /t REG_DWORD /d "0" /f > nul
)
if not "%~1"=="AME_UserHive_Default" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative\%~1" /v "RotatingLockScreenEnabled" /t REG_DWORD /d "0" /f > nul
37 changes: 9 additions & 28 deletions src/playbook/Executables/Themes/atlas-dark.theme
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
[Theme]
; Windows - IDS_THEME_DISPLAYNAME_AERO
DisplayName=Atlas Dark
ThemeId={FB5C68CD-E525-4324-9830-18BFE1746747}

; Computer - SHIDI_SERVER
[CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon]
DefaultValue=%windir%\System32\imageres.dll,-109

; UsersFiles - SHIDI_USERFILES
[CLSID\{59031A47-3F72-44A7-89C5-5595FE6B30EE}\DefaultIcon]
DefaultValue=%windir%\System32\imageres.dll,-123

; Network - SHIDI_MYNETWORK
[CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\DefaultIcon]
DefaultValue=%windir%\System32\imageres.dll,-25

; Recycle Bin - SHIDI_RECYCLERFULL SHIDI_RECYCLER
[CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon]
Full=%windir%\System32\imageres.dll,-54
Empty=%windir%\System32\imageres.dll,-55
[Control Panel\Desktop]
Wallpaper=%windir%\AtlasModules\Wallpapers\atlas-dark.png
Pattern=
MultimonBackgrounds=0
PicturePosition=4
WindowsSpotlight=0

[Control Panel\Cursors]
AppStarting=%windir%\cursors\aero_working.ani
Expand All @@ -36,11 +25,8 @@ UpArrow=%windir%\cursors\aero_up.cur
Wait=%windir%\cursors\aero_busy.ani
DefaultValue=Windows Default

[Control Panel\Desktop]
Wallpaper=%windir%\AtlasModules\Wallpapers\atlas-dark.png
Pattern=
MultimonBackgrounds=0
PicturePosition=4
[Sounds]
SchemeName=No Sounds

[VisualStyles]
Path=%windir%\resources\themes\Aero\Aero.msstyles
Expand All @@ -52,10 +38,5 @@ SystemMode=Dark
AppMode=Dark
VisualStyleVersion=10


[MasterThemeSelector]
MTSM=RJSPBS

[Sounds]
; IDS_SCHEME_DEFAULT
SchemeName=mmres.dll,-801
MTSM=RJSPBS
42 changes: 42 additions & 0 deletions src/playbook/Executables/Themes/atlas-legacy.theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[Theme]
DisplayName=Atlas Legacy
ThemeId={1545A5F7-3E0C-4670-8A21-99FDEEA37AA5}

[Control Panel\Desktop]
Wallpaper=%windir%\AtlasModules\Wallpapers\atlas-legacy.png
Pattern=
MultimonBackgrounds=0
PicturePosition=4
WindowsSpotlight=0

[Control Panel\Cursors]
AppStarting=%windir%\cursors\aero_working.ani
Arrow=%windir%\cursors\aero_arrow.cur
Hand=%windir%\cursors\aero_link.cur
Help=%windir%\cursors\aero_helpsel.cur
No=%windir%\cursors\aero_unavail.cur
NWPen=%windir%\cursors\aero_pen.cur
SizeAll=%windir%\cursors\aero_move.cur
SizeNESW=%windir%\cursors\aero_nesw.cur
SizeNS=%windir%\cursors\aero_ns.cur
SizeNWSE=%windir%\cursors\aero_nwse.cur
SizeWE=%windir%\cursors\aero_ew.cur
UpArrow=%windir%\cursors\aero_up.cur
Wait=%windir%\cursors\aero_busy.ani
DefaultValue=Windows Default

[Sounds]
SchemeName=No Sounds

[VisualStyles]
Path=%SystemRoot%\resources\themes\Aero\Aero.msstyles
ColorStyle=NormalColor
Size=NormalSize
AutoColorization=0
ColorizationColor=0XC42D7D9A
SystemMode=Dark
AppMode=Dark
VisualStyleVersion=10

[MasterThemeSelector]
MTSM=RJSPBS
38 changes: 9 additions & 29 deletions src/playbook/Executables/Themes/atlas-light.theme
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
[Theme]
; Windows - IDS_THEME_DISPLAYNAME_AERO
DisplayName=Atlas Light
ThemeId={9F1AEB0B-4DD7-44EF-8734-D4F82A341818}

; Computer - SHIDI_SERVER
[CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon]
DefaultValue=%windir%\System32\imageres.dll,-109

; UsersFiles - SHIDI_USERFILES
[CLSID\{59031A47-3F72-44A7-89C5-5595FE6B30EE}\DefaultIcon]
DefaultValue=%windir%\System32\imageres.dll,-123

; Network - SHIDI_MYNETWORK
[CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\DefaultIcon]
DefaultValue=%windir%\System32\imageres.dll,-25

; Recycle Bin - SHIDI_RECYCLERFULL SHIDI_RECYCLER
[CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon]
Full=%windir%\System32\imageres.dll,-54
Empty=%windir%\System32\imageres.dll,-55
[Control Panel\Desktop]
Wallpaper=%windir%\AtlasModules\Wallpapers\atlas-light.png
Pattern=
MultimonBackgrounds=0
PicturePosition=4
WindowsSpotlight=0

[Control Panel\Cursors]
AppStarting=%windir%\cursors\aero_working.ani
Expand All @@ -36,11 +25,8 @@ UpArrow=%windir%\cursors\aero_up.cur
Wait=%windir%\cursors\aero_busy.ani
DefaultValue=Windows Default

[Control Panel\Desktop]
Wallpaper=%windir%\AtlasModules\Wallpapers\atlas-light.png
Pattern=
MultimonBackgrounds=0
PicturePosition=4
[Sounds]
SchemeName=No Sounds

[VisualStyles]
Path=%windir%\resources\themes\Aero\Aero.msstyles
Expand All @@ -52,11 +38,5 @@ SystemMode=Dark
AppMode=Light
VisualStyleVersion=10


[MasterThemeSelector]
MTSM=RJSPBS

[Sounds]
; IDS_SCHEME_DEFAULT
SchemeName=mmres.dll,-801

MTSM=RJSPBS

0 comments on commit 47b710f

Please sign in to comment.