Skip to content

Commit 89e3d03

Browse files
authored
Feature: Updated the design of the home page headers (#13053)
1 parent f02c4a0 commit 89e3d03

File tree

7 files changed

+356
-103
lines changed

7 files changed

+356
-103
lines changed

src/Files.App/UserControls/AddressToolbar.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,4 +631,4 @@
631631
</VisualStateManager.VisualStateGroups>
632632
</Grid>
633633

634-
</UserControl>
634+
</UserControl>

src/Files.App/UserControls/Widgets/DrivesWidget.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
1+
<!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
22
<local:HomePageWidget
33
x:Class="Files.App.UserControls.Widgets.DrivesWidget"
44
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

src/Files.App/UserControls/Widgets/FileTagsWidget.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
99
xmlns:helpers="using:Files.App.Helpers"
1010
xmlns:local="using:Files.App.UserControls.Widgets"
11-
xmlns:localcontrols="using:Files.App.UserControls"
1211
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
1312
xmlns:vm="using:Files.App.ViewModels.Widgets"
1413
d:DesignHeight="300"

src/Files.App/UserControls/Widgets/QuickAccessWidget.xaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
55
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7-
xmlns:helpers="using:Files.App.Helpers"
87
xmlns:local="using:Files.App.UserControls.Widgets"
98
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
109
mc:Ignorable="d">
1110

1211
<Grid>
1312
<ItemsRepeater
1413
x:Name="CardsList"
15-
Grid.Row="0"
1614
HorizontalAlignment="Stretch"
1715
ItemsSource="{x:Bind ItemsAdded, Mode=OneWay}">
1816

src/Files.App/UserControls/Widgets/RecentFilesWidget.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
1+
<!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
22
<local:HomePageWidget
33
x:Class="Files.App.UserControls.Widgets.RecentFilesWidget"
44
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
@@ -121,4 +121,4 @@
121121
</ListView>
122122

123123
</StackPanel>
124-
</local:HomePageWidget>
124+
</local:HomePageWidget>

src/Files.App/UserControls/Widgets/WidgetsListControl.xaml

Lines changed: 349 additions & 87 deletions
Large diffs are not rendered by default.

src/Files.App/UserControls/Widgets/WidgetsListControl.xaml.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,22 @@
55
using Microsoft.UI.Xaml.Controls;
66
using System;
77

8-
// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236
9-
108
namespace Files.App.UserControls.Widgets
119
{
1210
public sealed partial class WidgetsListControl : UserControl, IDisposable
1311
{
14-
public WidgetsListControlViewModel ViewModel
15-
{
16-
get => (WidgetsListControlViewModel)DataContext;
17-
set => DataContext = value;
18-
}
12+
public WidgetsListControlViewModel ViewModel { get; set; }
1913

2014
public WidgetsListControl()
2115
{
2216
InitializeComponent();
2317

24-
ViewModel = new WidgetsListControlViewModel();
18+
ViewModel = new();
2519
}
2620

2721
public void Dispose()
2822
{
2923
ViewModel?.Dispose();
3024
}
3125
}
32-
}
26+
}

0 commit comments

Comments
 (0)