Skip to content

Commit 2cd5d69

Browse files
committed
ui: target latest version of AvaloniaUI
1 parent de1bd0f commit 2cd5d69

14 files changed

+18
-17
lines changed

src/shared/Atlassian.Bitbucket/UI/Views/CredentialsView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Atlassian.Bitbucket.UI.Views
77
{
8-
public class CredentialsView : UserControl, IFocusable
8+
public partial class CredentialsView : UserControl, IFocusable
99
{
1010
private TabControl _tabControl;
1111
private Button _oauthLoginButton;

src/shared/Core/Core.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
<PackageReference Include="Microsoft.Identity.Client" Version="4.52.0" />
2222
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="2.28.0" />
2323
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.21216.1" />
24-
<PackageReference Include="Avalonia" Version="0.10.18" />
25-
<PackageReference Include="Avalonia.Desktop" Version="0.10.18" />
24+
<PackageReference Include="Avalonia" Version="11.0.0-preview6" />
25+
<PackageReference Include="Avalonia.Desktop" Version="11.0.0-preview6" />
26+
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0-preview6" />
2627
</ItemGroup>
2728

2829
<ItemGroup Condition="'$(Configuration)' == 'Debug'">
29-
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.18" />
30+
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.0-preview6" />
3031
</ItemGroup>
3132

3233
</Project>

src/shared/Core/UI/AvaloniaApp.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
x:Class="GitCredentialManager.UI.AvaloniaApp"
44
Name="Git Credential Manager">
55
<Application.Styles>
6-
<FluentTheme Mode="Light"/>
6+
<FluentTheme/>
77
<StyleInclude Source="avares://gcmcore/UI/Assets/Controls.axaml"/>
88
</Application.Styles>
99
<Application.Resources>

src/shared/Core/UI/Controls/AboutWindow.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace GitCredentialManager.UI.Controls
88
{
9-
public class AboutWindow : Window
9+
public partial class AboutWindow : Window
1010
{
1111
public AboutWindow()
1212
{

src/shared/Core/UI/Controls/DialogWindow.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace GitCredentialManager.UI.Controls
1111
{
12-
public class DialogWindow : Window
12+
public partial class DialogWindow : Window
1313
{
1414
private readonly Control _view;
1515
private ContentControl _contentHolder;
@@ -46,7 +46,7 @@ protected override void OnDataContextChanged(EventArgs e)
4646
// Send a focus request to the child view on idle
4747
if (_view is IFocusable focusable)
4848
{
49-
Avalonia.Threading.Dispatcher.UIThread.Post(() => focusable.SetFocus(), DispatcherPriority.ApplicationIdle);
49+
Avalonia.Threading.Dispatcher.UIThread.Post(() => focusable.SetFocus(), DispatcherPriority.Normal);
5050
}
5151
}
5252
}

src/shared/Core/UI/Views/CredentialsView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace GitCredentialManager.UI.Views
77
{
8-
public class CredentialsView : UserControl, IFocusable
8+
public partial class CredentialsView : UserControl, IFocusable
99
{
1010
private TextBox _userNameTextBox;
1111
private TextBox _passwordTextBox;

src/shared/Core/UI/Views/DeviceCodeView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace GitCredentialManager.UI.Views
55
{
6-
public class DeviceCodeView : UserControl
6+
public partial class DeviceCodeView : UserControl
77
{
88
public DeviceCodeView()
99
{

src/shared/Core/UI/Views/OAuthView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace GitCredentialManager.UI.Views
55
{
6-
public class OAuthView : UserControl
6+
public partial class OAuthView : UserControl
77
{
88
public OAuthView()
99
{

src/shared/GitHub/UI/Controls/HorizontalShadowDivider.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace GitHub.UI.Controls
55
{
6-
public class HorizontalShadowDivider : UserControl
6+
public partial class HorizontalShadowDivider : UserControl
77
{
88
public HorizontalShadowDivider()
99
{

src/shared/GitHub/UI/Controls/SixDigitInput.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace GitHub.UI.Controls
1414
{
15-
public class SixDigitInput : UserControl, IFocusable
15+
public partial class SixDigitInput : UserControl, IFocusable
1616
{
1717
public static readonly DirectProperty<SixDigitInput, string> TextProperty =
1818
AvaloniaProperty.RegisterDirect<SixDigitInput, string>(

0 commit comments

Comments
 (0)