Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ff40a56

Browse files
committedMay 22, 2025·
POC
1 parent ed86a2b commit ff40a56

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed
 

‎src/Files.App/UserControls/NavigationToolbar.xaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@
485485
HorizontalAlignment="Center"
486486
VerticalAlignment="Center"
487487
IsIndeterminate="False"
488-
Visibility="{x:Bind OngoingTasksViewModel.ShowStatusCenterProgressRing, Mode=OneWay}"
488+
Visibility="{x:Bind OngoingTasksViewModel.ShowProgressRing, Mode=OneWay}"
489489
Value="{x:Bind OngoingTasksViewModel.AverageOperationProgressValue, Mode=OneWay}" />
490490

491491
<InfoBadge
@@ -648,7 +648,9 @@
648648
To="2" />
649649
</VisualState.StateTriggers>
650650
<VisualState.Setters>
651-
<Setter Target="MedianOperationProgressRing.Background" Value="{ThemeResource SystemFillColorCriticalBrush}" />
651+
<Setter Target="MedianOperationProgressRing.Foreground" Value="{ThemeResource SystemFillColorAttentionBrush}" />
652+
<Setter Target="MedianOperationProgressRing.Background" Value="{ThemeResource SubtleFillColorSecondaryBrush}" />
653+
<Setter Target="StatusCenterIcon.Visibility" Value="Collapsed" />
652654
</VisualState.Setters>
653655
</VisualState>
654656
<VisualState x:Name="TasksCompletionWithFailure">

‎src/Files.App/ViewModels/UserControls/StatusCenterViewModel.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public bool HasAnyItemInProgress
3535
get
3636
{
3737
if (InProgressItemCount > 0)
38-
ShowStatusCenterProgressRing = true;
38+
ShowProgressRing = true;
3939

4040
return InProgressItemCount > 0;
4141
}
@@ -45,11 +45,11 @@ public bool HasAnyItem
4545
=> StatusCenterItems.Any();
4646

4747

48-
private bool _ShowStatusCenterProgressRing = false;
49-
public bool ShowStatusCenterProgressRing
48+
private bool _ShowProgressRing = false;
49+
public bool ShowProgressRing
5050
{
51-
get => _ShowStatusCenterProgressRing;
52-
private set => SetProperty(ref _ShowStatusCenterProgressRing, value);
51+
get => _ShowProgressRing;
52+
private set => SetProperty(ref _ShowProgressRing, value);
5353

5454
}
5555

@@ -83,7 +83,7 @@ public StatusCenterViewModel()
8383

8484
public void OnStatusCenterFlyoutOpened()
8585
{
86-
ShowStatusCenterProgressRing = HasAnyItemInProgress;
86+
ShowProgressRing = HasAnyItemInProgress;
8787
}
8888

8989
public StatusCenterItem AddItem(

0 commit comments

Comments
 (0)
Please sign in to comment.