Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public SettingsCard BuildCredentialsCard()
{
_savingIndicator = new ProgressBar
{
IsIndeterminate = true,
IsIndeterminate = false,
Opacity = 0,
Margin = new Thickness(0, -8, 0, 0),
};
Expand Down Expand Up @@ -172,6 +172,7 @@ private async Task SaveCredentialsAsync()
{
if (_usernameBox is null || _passwordBox is null || _savingIndicator is null) return;
_savingIndicator.Opacity = 1;
_savingIndicator.IsIndeterminate = true;
string u = _usernameBox.Text ?? "";
string p = _passwordBox.Text ?? "";
await Task.Delay(500);
Expand All @@ -180,6 +181,7 @@ private async Task SaveCredentialsAsync()
CoreSettings.SetProxyCredentials(u, p);
InternetViewModel.ApplyProxyToProcess();
_savingIndicator.Opacity = 0;
_savingIndicator.IsIndeterminate = false;
}

[RelayCommand]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ public SecureCheckboxCard()
};
_loading = new ProgressBar
{
IsIndeterminate = true,
IsIndeterminate = false,
IsVisible = false,
Width = 20,
Height = 20,
Margin = new Thickness(0, 0, 4, 0),
};
// Keep the indeterminate clock off while hidden so it doesn't pin the render loop.
_loading.Bind(ProgressBar.IsIndeterminateProperty, _loading.GetObservable(Visual.IsVisibleProperty));
_textblock = new TextBlock
{
VerticalAlignment = VerticalAlignment.Center,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

<Grid>
<!-- Loading indicator across the very top -->
<ProgressBar IsIndeterminate="True"
<ProgressBar IsIndeterminate="{Binding IsLoading}"
IsVisible="{Binding IsLoading}"
automation:AutomationProperties.Name="{Binding PackageName}"
VerticalAlignment="Top"
Expand Down
2 changes: 1 addition & 1 deletion src/UniGetUI.Avalonia/Views/Pages/HelpPage.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<!-- Progress bar shown while navigating -->
<ProgressBar Grid.Row="1"
x:Name="NavProgressBar"
IsIndeterminate="True"
IsIndeterminate="{Binding IsVisible, RelativeSource={RelativeSource Self}}"
IsVisible="False"
Height="2"
CornerRadius="0"
Expand Down
2 changes: 1 addition & 1 deletion src/UniGetUI.Avalonia/Views/Pages/ReleaseNotesPage.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<!-- Progress bar shown while navigating -->
<ProgressBar Grid.Row="1"
x:Name="NavProgressBar"
IsIndeterminate="True"
IsIndeterminate="{Binding IsVisible, RelativeSource={RelativeSource Self}}"
IsVisible="False"
Height="2"
CornerRadius="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
IsEnabled="{Binding !IsLoading}"
Margin="4,0,0,0"/>
</Grid>
<ProgressBar IsIndeterminate="True"
<ProgressBar IsIndeterminate="{Binding IsLoading}"
IsVisible="{Binding IsLoading}"
Height="4"/>
</StackPanel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</Grid>

<!-- Loading indicator -->
<ProgressBar IsIndeterminate="True"
<ProgressBar IsIndeterminate="{Binding IsLoading}"
IsVisible="{Binding IsLoading}"
Height="4"/>

Expand Down
6 changes: 3 additions & 3 deletions src/UniGetUI.Avalonia/Views/SidebarView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
VerticalAlignment="Center"
IsVisible="{Binding $parent[local:SidebarView].ShowLabels}"/>
</StackPanel>
<ProgressBar IsIndeterminate="True"
<ProgressBar IsIndeterminate="{Binding DiscoverIsLoading}"
IsVisible="{Binding DiscoverIsLoading}"
Height="2"
Width="32"
Expand Down Expand Up @@ -82,7 +82,7 @@
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<ProgressBar IsIndeterminate="True"
<ProgressBar IsIndeterminate="{Binding UpdatesIsLoading}"
IsVisible="{Binding UpdatesIsLoading}"
Height="2"
Width="32"
Expand All @@ -107,7 +107,7 @@
VerticalAlignment="Center"
IsVisible="{Binding $parent[local:SidebarView].ShowLabels}"/>
</StackPanel>
<ProgressBar IsIndeterminate="True"
<ProgressBar IsIndeterminate="{Binding InstalledIsLoading}"
IsVisible="{Binding InstalledIsLoading}"
Height="2"
Width="32"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@

<!-- Loading indicator -->
<ProgressBar x:Name="LoadingProgressBar"
IsIndeterminate="True"
IsIndeterminate="{Binding IsLoading}"
IsVisible="{Binding IsLoading}"
automation:AutomationProperties.Name="{t:Translate Loading}"
Height="4"
Expand Down
Loading