@@ -597,27 +597,27 @@ function global:menuitemclick ($menu) {
597597 }
598598 }
599599 else {
600- if ($ (ask " Screen Scale must be 100%. Would you like to launch another session in a compatible mode?" ) -eq " Yes" ){
601- switch ((get-host ).version.major){
602- " 7" {
603- if ($ (ext $FastTab.SelectedTab.Text )) {
604- start-process - filepath pwsh.exe - argumentlist ' -ep bypass' , ' -windowstyle hidden' , ' -sta' , " -file $ ( chr 34 ) $ ( curdir) \vds-ide-noscale.ps1$ ( chr 34 ) $ ( chr 34 ) $ ( path $FastTab.SelectedTab.Text ) \$ ( name $FastTab.SelectedTab.Text ) .$ ( ext $FastTab.SelectedTab.Text ) $ ( chr 34 ) "
605- }
606- else {
607- start-process - filepath pwsh.exe - argumentlist ' -ep bypass' , ' -windowstyle hidden' , ' -sta' , " -file $ ( chr 34 ) $ ( curdir) \vds-ide-noscale.ps1$ ( chr 34 ) "
608- }
609- }
610600
611- default {
612- if ($ (ext $FastTab.SelectedTab.Text )) {
613- start-process - filepath powershell.exe - argumentlist ' -ep bypass' , ' -windowstyle hidden' , ' -sta' , " -file $ ( chr 34 ) $ ( curdir) \vds-ide-noscale.ps1$ ( chr 34 ) $ ( chr 34 ) $ ( path $FastTab.SelectedTab.Text ) \$ ( name $FastTab.SelectedTab.Text ) .$ ( ext $FastTab.SelectedTab.Text ) $ ( chr 34 ) "
614- }
615- else {
616- start-process - filepath powershell.exe - argumentlist ' -ep bypass' , ' -windowstyle hidden' , ' -sta' , " -file $ ( chr 34 ) $ ( curdir) \vds-ide-noscale.ps1$ ( chr 34 ) "
617- }
601+ switch ((get-host ).version.major){
602+ " 7" {
603+ if ($ (ext $FastTab.SelectedTab.Text )) {
604+ start-process - filepath pwsh.exe - argumentlist ' -ep bypass' , ' -windowstyle hidden' , ' -sta' , " -file $ ( chr 34 ) $ ( curdir) \designer.ps1$ ( chr 34 ) "
605+ }
606+ else {
607+ start-process - filepath pwsh.exe - argumentlist ' -ep bypass' , ' -windowstyle hidden' , ' -sta' , " -file $ ( chr 34 ) $ ( curdir) \designer.ps1$ ( chr 34 ) "
608+ }
609+ }
610+
611+ default {
612+ if ($ (ext $FastTab.SelectedTab.Text )) {
613+ start-process - filepath powershell.exe - argumentlist ' -ep bypass' , ' -windowstyle hidden' , ' -sta' , " -file $ ( chr 34 ) $ ( curdir) \designer.ps1$ ( chr 34 ) "
614+ }
615+ else {
616+ start-process - filepath powershell.exe - argumentlist ' -ep bypass' , ' -windowstyle hidden' , ' -sta' , " -file $ ( chr 34 ) $ ( curdir) \designer.ps1$ ( chr 34 ) "
618617 }
619618 }
620619 }
620+
621621 }
622622 }
623623 " $localecompile " {
@@ -1636,23 +1636,13 @@ function ExportForm {
16361636 if ($scaleCheck.Checked -eq $True )
16371637 {
16381638
1639- $scaleString += ' info $null 2>$null
1640- $vscreen = [System.Windows.Forms.SystemInformation]::VirtualScreen.height
1641- if ((get-host).version.major -eq 5) {
1642- [xml]$xml = @"
1643- <Window
1644- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
1645- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
1646- </Window>
1647- "@
1648- $dum = (New-Object System.Xml.XmlNodeReader $xml)
1649- $win = [Windows.Markup.XamlReader]::Load($dum)
1650- }
1651-
1652- $screen = [System.Windows.Forms.SystemInformation]::VirtualScreen.height
1653-
1654- $global:ctscale = ($screen/$vscreen)
1655-
1639+ $scaleString += ' DPIAware
1640+ '
1641+ }
1642+ if ($visualCheck.Checked -eq $True )
1643+ {
1644+
1645+ $scaleString += ' VisualStyle
16561646'
16571647 }
16581648 $mFooterString = ' '
@@ -1895,7 +1885,8 @@ $mAddButton.Add_Click({AddElement})
18951885
18961886# $mForm.Controls.Add($mAddButton)
18971887
1898- $scaleCheck = dialog add $mform CheckBox 35 445 200 20 " Fix Scaling for HDR"
1888+ $scaleCheck = dialog add $mform CheckBox 35 445 200 20 " DPIAware"
1889+ $visualCheck = dialog add $mform CheckBox 35 545 100 20 " VisualStyle"
18991890
19001891$mFormLabel = dialog add $mform label 5 5 30 25 ' Title:'
19011892$mFormLabel.TextAlign = ' MiddleRight'
0 commit comments