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

Feature: Updated the design for Dual Pane mode #15469

Merged
merged 16 commits into from
May 27, 2024
12 changes: 12 additions & 0 deletions src/Files.App/Views/Shells/BaseShellPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ public bool IsCurrentInstance
_IsCurrentInstanceTCS = new();

NotifyPropertyChanged(nameof(IsCurrentInstance));

if (!IsColumnView)
yaira2 marked this conversation as resolved.
Show resolved Hide resolved
{
if (value)
{
VisualStateManager.GoToState(this, "ShellBackgroundFocusOnState", true);
}
yaira2 marked this conversation as resolved.
Show resolved Hide resolved
else
{
VisualStateManager.GoToState(this, "ShellBackgroundFocusOffState", true);
}
}
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions src/Files.App/Views/Shells/ModernShellPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,19 @@
x:FieldModifier="public"
Navigated="ItemDisplayFrame_Navigated" />

<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="ShellBackgroundFocusState">
<VisualState x:Name="ShellBackgroundFocusOnState">
<VisualState.Setters>
<Setter Target="RootGrid.Background" Value="{ThemeResource App.Theme.FileArea.BackgroundBrush}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="ShellBackgroundFocusOffState">
<VisualState.Setters>
<Setter Target="RootGrid.Background" Value="{ThemeResource App.Theme.FileArea.SecondaryBackgroundBrush}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Grid>
</local:BaseShellPage>
Loading