mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
ux: use RenderOptions.BitmapInterpolationMode="HighQuality" for shell icons
This commit is contained in:
parent
3fd1e0ea19
commit
6811103cf4
2 changed files with 4 additions and 1 deletions
|
@ -225,7 +225,7 @@ namespace SourceGit.Native
|
||||||
Process.Start(start);
|
Process.Start(start);
|
||||||
}
|
}
|
||||||
|
|
||||||
// There's two version of PowerShell : pwsh.exe (preferred) and powershell.exe (system default)
|
// There are two versions of PowerShell : pwsh.exe (preferred) and powershell.exe (system default)
|
||||||
private string ChoosePowerShell()
|
private string ChoosePowerShell()
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(_powershellPath))
|
if (!string.IsNullOrEmpty(_powershellPath))
|
||||||
|
@ -332,6 +332,7 @@ namespace SourceGit.Native
|
||||||
Microsoft.Win32.RegistryHive.LocalMachine,
|
Microsoft.Win32.RegistryHive.LocalMachine,
|
||||||
Microsoft.Win32.RegistryView.Registry64);
|
Microsoft.Win32.RegistryView.Registry64);
|
||||||
|
|
||||||
|
// Sublime Text 4
|
||||||
var sublime = localMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sublime Text_is1");
|
var sublime = localMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sublime Text_is1");
|
||||||
if (sublime != null)
|
if (sublime != null)
|
||||||
{
|
{
|
||||||
|
@ -339,6 +340,7 @@ namespace SourceGit.Native
|
||||||
return Path.Combine(Path.GetDirectoryName(icon), "subl.exe");
|
return Path.Combine(Path.GetDirectoryName(icon), "subl.exe");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sublime Text 3
|
||||||
var sublime3 = localMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sublime Text 3_is1");
|
var sublime3 = localMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sublime Text 3_is1");
|
||||||
if (sublime3 != null)
|
if (sublime3 != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -266,6 +266,7 @@
|
||||||
Padding="8,0"
|
Padding="8,0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
HorizontalContentAlignment="Left"
|
HorizontalContentAlignment="Left"
|
||||||
|
RenderOptions.BitmapInterpolationMode="HighQuality"
|
||||||
FontSize="{Binding DefaultFontSize, Mode=OneWay}"
|
FontSize="{Binding DefaultFontSize, Mode=OneWay}"
|
||||||
SelectedIndex="{Binding GitShell, Mode=TwoWay}"
|
SelectedIndex="{Binding GitShell, Mode=TwoWay}"
|
||||||
IsVisible="{OnPlatform False, Windows=True}">
|
IsVisible="{OnPlatform False, Windows=True}">
|
||||||
|
|
Loading…
Reference in a new issue