Skip to content

Commit

Permalink
updated links and xaml
Browse files Browse the repository at this point in the history
  • Loading branch information
OlaYZen committed Nov 5, 2022
1 parent 3cff5c9 commit 0036b15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions EnhanceWindows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ powershell.exe -WindowStyle Hidden -file > $null


#$inputXML="C:\Users\olai.boe\Documents\GitHub\PSXAML\MainWindow.xaml"
$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/OlaYZen/PSXAML/main/MainWindow.xaml") #uncomment for Production
$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/OlaYZen/Enhance-Windows/Newest/MainWindow.xaml") #uncomment for Production

$inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^<Win.*', '<Window'
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
Expand Down Expand Up @@ -408,6 +408,17 @@ else
}
}

function CompactView(){
if ($WPFCompactView.IsChecked)
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "UseCompactMode" -Value 1
}
else
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "UseCompactMode" -Value 0
}
}


$WPFUnpin_Search.Add_Checked{RemSearchwin10}
$WPFUnpin_Search.Add_UnChecked{RemSearchwin10}
Expand Down Expand Up @@ -620,7 +631,7 @@ else {


$WPFCompactView.Add_Checked({CompactView})
$WPFCompactView.Add_UnChecked({HiddenFiles})
$WPFCompactView.Add_UnChecked({CompactView})
$value30 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "UseCompactMode"
if($value30.UseCompactMode -eq 1)
{
Expand Down
4 changes: 2 additions & 2 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<CheckBox x:Name="Unpin_All_Above" Content="Unpin All Above" HorizontalAlignment="Left" Margin="10,185,0,0" VerticalAlignment="Top" IsChecked="False"/>
<Label x:Name="ExplainingLabel" Content="Windows Explorer might open after checking the boxes. Just close it" HorizontalAlignment="Left" Margin="10,469,0,0" VerticalAlignment="Top"/>
<Label x:Name="label_22h2" Content="Start Menu 22H2" HorizontalAlignment="Left" Margin="10,185,0,0" VerticalAlignment="Top" FontSize="30" FontWeight="Bold"/>
<Grid x:Name="GridGroupBox" VerticalAlignment="Top" Height="87" M|n="10,240,207,0">
<Grid x:Name="GridGroupBox" VerticalAlignment="Top" Height="87" Margin="10,240,207,0">
<RadioButton x:Name="RadioButton1" Content="Default" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/>
<RadioButton x:Name="RadioButton2" Content="More Pins" HorizontalAlignment="Left" Margin="10,30,0,0" VerticalAlignment="Top"/>
<RadioButton x:Name="RadioButton3" Content="More Recommendations" HorizontalAlignment="Left" Margin="10,50,0,0" VerticalAlignment="Top"/>
Expand Down Expand Up @@ -69,4 +69,4 @@
</TabItem>
</TabControl>
</Grid>
</Window>
</Window>

0 comments on commit 0036b15

Please sign in to comment.