Removed old Win11 explorer.exe workaround, moved Dark mode settings to Theme script, added additional explorer options.

This commit is contained in:
Homes32
2024-01-09 21:18:19 -06:00
parent 5c20590205
commit bb4591ccb4
2 changed files with 65 additions and 147 deletions

View File

@@ -32,10 +32,10 @@
Title=Theme
Author=Homes32
Description=Customize the theme and window colors.
Version=1.1.0.0
Version=1.2.0.0
Selected=True
Mandatory=False
Date=2021-12-27
Date=2024-01-07
Level=4
[Variables]
@@ -59,6 +59,19 @@ Else,Halt,"INTERNAL LOGIC ERROR: [%cmb_Theme%] is not a valid theme."
Run,%ScriptFile%,ColorMeBadd
// Dark/Light Mode
If,%cmb_AppThemeMode%,Equal,"Dark",RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize","AppsUseLightTheme",0
Else,If,%cmb_AppThemeMode%,Equal,"Light",RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize","AppsUseLightTheme",1
Else,Halt,"INTERNAL LOGIC ERROR: [%cmb_AppThemeMode%] is not a valid App Theme Mode"
If,%cmb_SystemThemeMode%,Equal,"Dark",RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize","SystemUsesLightTheme",0
Else,If,%cmb_SystemThemeMode%,Equal,"Light",RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize","SystemUsesLightTheme",1
Else,Halt,"INTERNAL LOGIC ERROR: [%cmb_SystemThemeMode%] is not a valid System Theme Mode"
// Transparency Effects
If,%cb_TransparencyEffects%,Equal,True,RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize","EnableTransparency",1
Else,RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize","EnableTransparency",0
RegHiveUnLoad,Tmp_Default
RegHiveUnLoad,Tmp_Software
@@ -666,7 +679,6 @@ RegRead,HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent","Accent
If,%cmb_ColorProfile%,Equal,"Custom",Set,%Toggle%,True
Else,Set,%Toggle%,False
WriteInterface,Visible,%ScriptFile%,Interface,lbl_CustomColorProfileWarning,%Toggle%
WriteInterface,Visible,%ScriptFile%,Interface,txt_StartMenuColor,%Toggle%
WriteInterface,Visible,%ScriptFile%,Interface,txt_AccentColorMenu,%Toggle%
WriteInterface,Visible,%ScriptFile%,Interface,txt_AccentColor,%Toggle%
@@ -716,6 +728,9 @@ WriteInterface,Value,%ScriptFile%,Interface,cmb_Theme,"Default"
WriteInterface,Value,%ScriptFile%,Interface,cb_UXPatch,True
WriteInterface,Value,%ScriptFile%,Interface,fb_CustomTheme,""
WriteInterface,Value,%ScriptFile%,Interface,cmb_ColorProfile,"Auto"
WriteInterface,Value,%ScriptFile%,Interface,cmb_AppThemeMode,"Light"
WriteInterface,Value,%ScriptFile%,Interface,cmb_SystemThemeMode,"Dark"
WriteInterface,Value,%ScriptFile%,Interface,cb_TransparencyEffects,True
WriteInterface,Value,%ScriptFile%,Interface,txt_StartMenuColor,""
WriteInterface,Value,%ScriptFile%,Interface,txt_AccentColorMenu,""
WriteInterface,Value,%ScriptFile%,Interface,txt_AccentColor,""
@@ -792,18 +807,22 @@ lbl_DisableWallpaperScript="For best results disable the Tweaks > Wallpaper scri
fb_CustomTheme=,0,13,15,110,412,20,file,"Title=Select a theme file","Filter=Theme Files|*.msstyles"
lbl_SelectCustomTheme="Select the .msstyles file that contains your custom theme:",0,1,15,95,313,16,8,Normal
cb_UXPatch="Allow Unsigned themes",0,3,290,66,140,18,True,"__Patch 'themeui.dll', 'UXInit.dll' and 'uxtheme.dll' to enable Windows to load themes that are not digitally signed by Microsoft."
bvl_Colors=Colors,1,12,5,160,436,190,8,Bold
bvl_Colors=Colors,1,12,5,160,436,217,8,Bold
lbl_ColorProfile="Color Profile:",1,1,15,175,74,16,8,Normal
cmb_ColorProfile=Auto,1,4,15,190,150,21,Auto,Custom,"Host Color Profile","Yellow Gold",Gold,"Orange Bright","Orange Dark",Rust,"Pale Rust","Brick Red","Mod Red","Pale Red",Red,"Rose Bright",Rose,"Plum Light",Plum,"Orchid Light",Orchid,"Default Blue","Navy Blue","Purple Shadow","Purple Shadow Dark","Iris Pastel","Iris Spring","Violet Red Light","Violet Red","Cool Blue Bright","Cool Blue",Seafoam,"Seafoam Teal","Mint Light","Mint Dark","Turf Green","Sport Green",Gray,"Gray Brown","Steel Blue","Metal Blue","Pale Moss",Moss,"Meadow Green",Green,Overcast,Storm,"Blue Gray","Gray Dark","Liddy Green",Sage,"Camouflage Desert",Camouflage,_ToggleColorPicker_,True
lbl_CustomColorProfileWarning="Warning: Advanced Users Only!",0,1,200,182,207,19,10,Bold
txt_StartMenuColor="Start Menu Color",0,0,15,235,98,21,
txt_AccentColorMenu=AccentColorMenu,0,0,120,235,98,21,
txt_AccentColor=AccentColor,0,0,225,235,98,21,
txt_ColorizationColor=ColorizationColor,0,0,330,235,98,21,
txt_ColorizationAfterglow=ColorizationAfterglow,0,0,15,280,115,21,
txt_AccentPalette=AccentPalette,0,0,140,280,288,21,
lbl_ChooseCustomColor="Enter your custom color configuration or import your current host configuration.",0,1,15,317,219,24,8,Bold
btn_ImportHostColorProfile="Import Host Color Profile",0,8,290,315,137,25,ImportHostColorProfile,0,True,"__Import the color profile currently used by your host system."
cmb_ColorProfile=Auto,1,4,15,190,158,21,Auto,Custom,"Host Color Profile","Yellow Gold",Gold,"Orange Bright","Orange Dark",Rust,"Pale Rust","Brick Red","Mod Red","Pale Red",Red,"Rose Bright",Rose,"Plum Light",Plum,"Orchid Light",Orchid,"Default Blue","Navy Blue","Purple Shadow","Purple Shadow Dark","Iris Pastel","Iris Spring","Violet Red Light","Violet Red","Cool Blue Bright","Cool Blue",Seafoam,"Seafoam Teal","Mint Light","Mint Dark","Turf Green","Sport Green",Gray,"Gray Brown","Steel Blue","Metal Blue","Pale Moss",Moss,"Meadow Green",Green,Overcast,Storm,"Blue Gray","Gray Dark","Liddy Green",Sage,"Camouflage Desert",Camouflage,_ToggleColorPicker_,True
lbl_AppThemeMode="Default App Mode:",1,1,181,175,120,16,8,Normal
cmb_AppThemeMode=Light,1,4,181,190,120,21,Dark,Light
lbl_SystemThemeMode="Default Windows Mode:",1,1,308,175,120,16,8,Normal
cmb_SystemThemeMode=Dark,1,4,308,190,120,21,Dark,Light
txt_StartMenuColor="Start Menu Color",0,0,15,260,98,21,
txt_AccentColorMenu=AccentColorMenu,0,0,120,260,98,21,
txt_AccentColor=AccentColor,0,0,225,260,98,21,
txt_ColorizationColor=ColorizationColor,0,0,330,260,98,21,
txt_ColorizationAfterglow=ColorizationAfterglow,0,0,15,305,115,21,
txt_AccentPalette=AccentPalette,0,0,140,305,288,21,
lbl_ChooseCustomColor="Advanced Users: Enter your custom color config or import your current host configuration.",0,1,15,342,253,24,8,Bold
btn_ImportHostColorProfile="Import Host Color Profile",0,8,290,340,137,25,ImportHostColorProfile,0,True,"__Import the color profile currently used by your host system."
cb_TransparencyEffects="Transparency Effects",1,3,15,220,200,18,True
[AuthorEncoded]
ThemeManager_80.png=13270,17800