Skip to content

Commit

Permalink
Feature: Updated the design of the home page headers (files-community…
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5bfa authored Aug 10, 2023
1 parent f02c4a0 commit 89e3d03
Show file tree
Hide file tree
Showing 7 changed files with 356 additions and 103 deletions.
2 changes: 1 addition & 1 deletion src/Files.App/UserControls/AddressToolbar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -631,4 +631,4 @@
</VisualStateManager.VisualStateGroups>
</Grid>

</UserControl>
</UserControl>
2 changes: 1 addition & 1 deletion src/Files.App/UserControls/Widgets/DrivesWidget.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
<!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
<local:HomePageWidget
x:Class="Files.App.UserControls.Widgets.DrivesWidget"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/UserControls/Widgets/FileTagsWidget.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:helpers="using:Files.App.Helpers"
xmlns:local="using:Files.App.UserControls.Widgets"
xmlns:localcontrols="using:Files.App.UserControls"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:Files.App.ViewModels.Widgets"
d:DesignHeight="300"
Expand Down
2 changes: 0 additions & 2 deletions src/Files.App/UserControls/Widgets/QuickAccessWidget.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:helpers="using:Files.App.Helpers"
xmlns:local="using:Files.App.UserControls.Widgets"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid>
<ItemsRepeater
x:Name="CardsList"
Grid.Row="0"
HorizontalAlignment="Stretch"
ItemsSource="{x:Bind ItemsAdded, Mode=OneWay}">

Expand Down
4 changes: 2 additions & 2 deletions src/Files.App/UserControls/Widgets/RecentFilesWidget.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
<!-- Copyright (c) 2023 Files Community. Licensed under the MIT License. See the LICENSE. -->
<local:HomePageWidget
x:Class="Files.App.UserControls.Widgets.RecentFilesWidget"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Expand Down Expand Up @@ -121,4 +121,4 @@
</ListView>

</StackPanel>
</local:HomePageWidget>
</local:HomePageWidget>
436 changes: 349 additions & 87 deletions src/Files.App/UserControls/Widgets/WidgetsListControl.xaml

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions src/Files.App/UserControls/Widgets/WidgetsListControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,22 @@
using Microsoft.UI.Xaml.Controls;
using System;

// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236

namespace Files.App.UserControls.Widgets
{
public sealed partial class WidgetsListControl : UserControl, IDisposable
{
public WidgetsListControlViewModel ViewModel
{
get => (WidgetsListControlViewModel)DataContext;
set => DataContext = value;
}
public WidgetsListControlViewModel ViewModel { get; set; }

public WidgetsListControl()
{
InitializeComponent();

ViewModel = new WidgetsListControlViewModel();
ViewModel = new();
}

public void Dispose()
{
ViewModel?.Dispose();
}
}
}
}

0 comments on commit 89e3d03

Please sign in to comment.