-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop WPF-based UI helpers on Windows (#1417)
We've been shipping with the in-process Avalonia-based UI helpers on all platforms, including Windows, since [GCM 2.1.2](https://github.com/git-ecosystem/git-credential-manager/releases/tag/v2.1.2), and have not seen any major issues. Drop all the WPF projects and code, but retain then UI helper command infrastructure as this is useful for reference and future testing and UI mocking.
- Loading branch information
Showing
71 changed files
with
61 additions
and
3,753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Window xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" d:DesignWidth="182" d:DesignHeight="46" | ||
SizeToContent="WidthAndHeight" CanResize="False" Topmost="True" | ||
ExtendClientAreaChromeHints="NoChrome" ExtendClientAreaToDecorationsHint="True" | ||
ShowInTaskbar="False" Title="Git Credential Manager" WindowStartupLocation="CenterScreen" | ||
x:Class="GitCredentialManager.UI.Controls.ProgressWindow"> | ||
<ProgressBar Orientation="Horizontal" | ||
IsIndeterminate="True" | ||
Margin="20" | ||
Width="158" Height="23" /> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Avalonia; | ||
using Avalonia.Controls; | ||
using Avalonia.Markup.Xaml; | ||
|
||
namespace GitCredentialManager.UI.Controls; | ||
|
||
public partial class ProgressWindow : Window | ||
{ | ||
public ProgressWindow() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void InitializeComponent() | ||
{ | ||
AvaloniaXamlLoader.Load(this); | ||
} | ||
|
||
public static IntPtr ShowAndGetHandle(CancellationToken ct) | ||
{ | ||
var tsc = new TaskCompletionSource<IntPtr>(); | ||
|
||
Window CreateWindow() | ||
{ | ||
var window = new ProgressWindow(); | ||
window.Loaded += (s, e) => tsc.SetResult(window.TryGetPlatformHandle()?.Handle ?? IntPtr.Zero); | ||
return window; | ||
} | ||
|
||
Task _ = AvaloniaUi.ShowWindowAsync(CreateWindow, IntPtr.Zero, ct); | ||
|
||
return tsc.Task.GetAwaiter().GetResult(); | ||
} | ||
} |
6 changes: 0 additions & 6 deletions
6
src/windows/Atlassian.Bitbucket.UI.Windows/Assets/Styles.xaml
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-13.1 KB
src/windows/Atlassian.Bitbucket.UI.Windows/Assets/atlassian-logo.png
Binary file not shown.
25 changes: 0 additions & 25 deletions
25
src/windows/Atlassian.Bitbucket.UI.Windows/Atlassian.Bitbucket.UI.Windows.csproj
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
src/windows/Atlassian.Bitbucket.UI.Windows/Commands/CredentialsCommandImpl.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.