Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Avalonia UI the default on all platforms and move in-process #1207

Merged
merged 37 commits into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0b0ad60
gcm-ui: fix WPF device code view namespaces
mjcheetham Apr 20, 2023
a5735f9
wpf: rename DialogWindow to WpfDialogWindow
mjcheetham Apr 20, 2023
cdca8a2
wpf: explicitly target WPF Dispatcher object
mjcheetham Apr 20, 2023
a2528fd
wpf: add .Windows to WPF project namespaces
mjcheetham Apr 21, 2023
c0551fd
gcm: set up message pump in main GCM executable
mjcheetham Feb 23, 2023
1f3e99e
core: merge Core.UI.Avn and Core.UI into Core
mjcheetham Apr 20, 2023
242ac22
gcm-ui: merge GCM.UI.Avn in to Core
mjcheetham Apr 20, 2023
23473cd
bitbucket: merge .UI.Avn and .UI in to Atlassian.Bitbucket
mjcheetham Apr 20, 2023
aab6fef
github: merge .UI.Avn and .UI in to GitHub
mjcheetham Apr 20, 2023
fd3cbbf
gitlab: merge .UI.Avn and .UI in to GitLab
mjcheetham Apr 20, 2023
cb13e2b
basic: rename ByUi method to ViaHelper
mjcheetham Apr 20, 2023
20df3d7
oauth: extract Helper and TTY prompt methods
mjcheetham Apr 20, 2023
2162a98
bitbucket: extract Helper and TTY prompt methods
mjcheetham Apr 20, 2023
2441216
github: extract Helper and TTY prompt methods
mjcheetham Apr 20, 2023
c6c9cb1
gitlab: extract Helper and TTY prompt methods
mjcheetham Apr 20, 2023
73e0e86
ui: use in-proc by default with fallback option for WPF
mjcheetham Apr 20, 2023
7f6b07c
ui: default to showing GCM branding in generic prompts
mjcheetham Feb 23, 2023
4108595
ui: set default GUI window title
mjcheetham Apr 20, 2023
7794843
ui: add window parent/cancellation helpers
mjcheetham Apr 20, 2023
5756930
basic: add in-proc UI implementation
mjcheetham Apr 20, 2023
f120a12
oauth: add in-proc UI implementation
mjcheetham Apr 20, 2023
4a8d5e4
bitbucket: add in-proc UI implementation
mjcheetham Apr 20, 2023
5c8d929
github: add in-proc UI implementation
mjcheetham Apr 20, 2023
2a37974
gitlab: add in-proc UI implementation
mjcheetham Apr 20, 2023
7dec930
gitlab: simplify terminal/interaction checks
mjcheetham Apr 24, 2023
fd5fbc3
gitlab: move logos to resource files
mjcheetham Apr 19, 2023
de1bd0f
ui: only include Avn.Diagnostics in debug
mjcheetham Apr 20, 2023
2cd5d69
ui: target latest version of AvaloniaUI
mjcheetham Apr 13, 2023
fd66094
ui: support dark theme base colour resources
mjcheetham Apr 19, 2023
bd742ce
ui: use custom window chrome on Windows
mjcheetham Apr 20, 2023
99e4c69
ui: fix deadlock in Avalonia runloop start on Windows
mjcheetham Apr 20, 2023
473d951
ui: enable IDE Avalonia designer
mjcheetham Apr 19, 2023
37f6100
ui: add app version to about window
mjcheetham Apr 19, 2023
b77ea32
ui: workaround AvaloniaUI/Avalonia #10296
mjcheetham Apr 19, 2023
67092bb
ui: fix textbox layout bug in v11
mjcheetham Apr 19, 2023
6ec9124
ui: draw window border on windows
mjcheetham Apr 21, 2023
56d540f
windows: simplify Inno setup defn and reduce payload size
mjcheetham Apr 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ui: target latest version of AvaloniaUI
  • Loading branch information
mjcheetham committed Apr 24, 2023
commit 2cd5d696c0a41ebcb26abf4a190ed66a5be1ad2b
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Atlassian.Bitbucket.UI.Views
{
public class CredentialsView : UserControl, IFocusable
public partial class CredentialsView : UserControl, IFocusable
{
private TabControl _tabControl;
private Button _oauthLoginButton;
Expand Down
7 changes: 4 additions & 3 deletions src/shared/Core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
<PackageReference Include="Microsoft.Identity.Client" Version="4.52.0" />
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="2.28.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.21216.1" />
<PackageReference Include="Avalonia" Version="0.10.18" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.18" />
<PackageReference Include="Avalonia" Version="11.0.0-preview6" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! Big jump.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah they moved from 0.10 to dropping the 0. prefix with v11

<PackageReference Include="Avalonia.Desktop" Version="11.0.0-preview6" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0-preview6" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.18" />
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.0-preview6" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/shared/Core/UI/AvaloniaApp.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
x:Class="GitCredentialManager.UI.AvaloniaApp"
Name="Git Credential Manager">
<Application.Styles>
<FluentTheme Mode="Light"/>
<FluentTheme/>
<StyleInclude Source="avares://gcmcore/UI/Assets/Controls.axaml"/>
</Application.Styles>
<Application.Resources>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/Core/UI/Controls/AboutWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace GitCredentialManager.UI.Controls
{
public class AboutWindow : Window
public partial class AboutWindow : Window
{
public AboutWindow()
{
Expand Down
4 changes: 2 additions & 2 deletions src/shared/Core/UI/Controls/DialogWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace GitCredentialManager.UI.Controls
{
public class DialogWindow : Window
public partial class DialogWindow : Window
{
private readonly Control _view;
private ContentControl _contentHolder;
Expand Down Expand Up @@ -46,7 +46,7 @@ protected override void OnDataContextChanged(EventArgs e)
// Send a focus request to the child view on idle
if (_view is IFocusable focusable)
{
Avalonia.Threading.Dispatcher.UIThread.Post(() => focusable.SetFocus(), DispatcherPriority.ApplicationIdle);
Avalonia.Threading.Dispatcher.UIThread.Post(() => focusable.SetFocus(), DispatcherPriority.Normal);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/Core/UI/Views/CredentialsView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace GitCredentialManager.UI.Views
{
public class CredentialsView : UserControl, IFocusable
public partial class CredentialsView : UserControl, IFocusable
{
private TextBox _userNameTextBox;
private TextBox _passwordTextBox;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/Core/UI/Views/DeviceCodeView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace GitCredentialManager.UI.Views
{
public class DeviceCodeView : UserControl
public partial class DeviceCodeView : UserControl
{
public DeviceCodeView()
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/Core/UI/Views/OAuthView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace GitCredentialManager.UI.Views
{
public class OAuthView : UserControl
public partial class OAuthView : UserControl
{
public OAuthView()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace GitHub.UI.Controls
{
public class HorizontalShadowDivider : UserControl
public partial class HorizontalShadowDivider : UserControl
{
public HorizontalShadowDivider()
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/GitHub/UI/Controls/SixDigitInput.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace GitHub.UI.Controls
{
public class SixDigitInput : UserControl, IFocusable
public partial class SixDigitInput : UserControl, IFocusable
{
public static readonly DirectProperty<SixDigitInput, string> TextProperty =
AvaloniaProperty.RegisterDirect<SixDigitInput, string>(
Expand Down
2 changes: 1 addition & 1 deletion src/shared/GitHub/UI/Views/CredentialsView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace GitHub.UI.Views
{
public class CredentialsView : UserControl, IFocusable
public partial class CredentialsView : UserControl, IFocusable
{
private TabControl _tabControl;
private Button _browserButton;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/GitHub/UI/Views/DeviceCodeView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace GitHub.UI.Views
{
public class DeviceCodeView : UserControl
public partial class DeviceCodeView : UserControl
{
public DeviceCodeView()
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/GitHub/UI/Views/TwoFactorView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace GitHub.UI.Views
{
public class TwoFactorView : UserControl, IFocusable
public partial class TwoFactorView : UserControl, IFocusable
{
private SixDigitInput _codeInput;

Expand Down
2 changes: 1 addition & 1 deletion src/shared/GitLab/UI/Views/CredentialsView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace GitLab.UI.Views
{
public class CredentialsView : UserControl, IFocusable
public partial class CredentialsView : UserControl, IFocusable
{
private TabControl _tabControl;
private Button _browserButton;
Expand Down