Skip to content

Commit

Permalink
fix: Add default back button icon for NavBar
Browse files Browse the repository at this point in the history
  • Loading branch information
silviuo committed Jun 19, 2023
1 parent f04c15f commit d5641ce
Show file tree
Hide file tree
Showing 23 changed files with 767 additions and 744 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private Shell BuildShell()
AddNavigationItems(nv);

// landing navigation
ShellNavigateTo<RuntimeTestRunner>(
ShellNavigateTo<NavigationBarSamplePage>(
#if WINDOWS_UWP
// note: on uwp, NavigationView.SelectedItem MUST be set on launch to avoid entering compact-mode
trySynchronizeCurrentItem: true
Expand Down
Binary file added src/Uno.Toolkit.UI/Assets/BackIcon.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Uno.Toolkit.UI/Assets/BackIcon.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Uno.Toolkit.UI/Assets/BackIcon.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Uno.Toolkit.UI/Assets/BackIcon.scale-300.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Uno.Toolkit.UI/Assets/BackIcon.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
738 changes: 367 additions & 371 deletions src/Uno.Toolkit.UI/Controls/NavigationBar/NavigationBar.xaml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/Uno.Toolkit.UI/Resources/AssetCatalog.UWP.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:String x:Key="BackButtonUriSource">ms-appx:///Uno.Toolkit.UI/Assets/BackIcon.png</x:String>
</ResourceDictionary>
4 changes: 4 additions & 0 deletions src/Uno.Toolkit.UI/Resources/AssetCatalog.WinUI.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:String x:Key="BackButtonUriSource">ms-appx:///Uno.Toolkit.WinUI/Assets/BackIcon.png</x:String>
</ResourceDictionary>
3 changes: 2 additions & 1 deletion src/Uno.Toolkit.UI/Uno.Toolkit.UI.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="MSBuild.Sdk.Extras/3.0.38">
<!--
Adding project references to this project requires some manual adjustments.
Expand Down Expand Up @@ -48,6 +48,7 @@

<ItemGroup>
<UpToDateCheckInput Include="**\*.xaml" Exclude="bin\**\*.xaml;obj\**\*.xaml" />
<Content Include="Assets\**\*.png" />
</ItemGroup>

<Import Project="xamlmerge-toolkit.props" />
Expand Down
1 change: 1 addition & 0 deletions src/Uno.Toolkit.UI/Uno.Toolkit.WinUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

<ItemGroup>
<UpToDateCheckInput Include="**\*.xaml" Exclude="bin\**\*.xaml;obj\**\*.xaml" />
<Content Include="Assets\**\*.png" />
</ItemGroup>

<Import Project="..\winappsdk-workaround.targets" />
Expand Down
1 change: 1 addition & 0 deletions src/Uno.Toolkit.UI/xamlmerge-toolkit.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ItemGroup>
<XamlMergeInput Include="Controls\**\*.xaml" />
<XamlMergeInput Include="Behaviors\**\*.xaml" />
<XamlMergeInput Include="Resources\AssetCatalog.$(FrameworkLineage).xaml" />
</ItemGroup>

<Import Project="..\xamlmerge.props" />
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:String x:Key="MaterialBackButtonUriSource">ms-appx:///Uno.Toolkit.UI.Material/Assets/MaterialBackIcon.png</x:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:String x:Key="MaterialBackButtonUriSource">ms-appx:///Uno.Toolkit.WinUI.Material/Assets/MaterialBackIcon.png</x:String>
</ResourceDictionary>
741 changes: 372 additions & 369 deletions src/library/Uno.Toolkit.Material/Styles/Controls/v2/NavigationBar.xaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

<UnoXamlResourcesTrimming Condition="'$(OS)'=='Windows_NT' or '$(MSBuildRuntimeType)'=='Core'">true</UnoXamlResourcesTrimming>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Uno.Material" />
<PackageReference Include="Uno.UI" />
Expand All @@ -31,6 +30,7 @@

<ItemGroup>
<UpToDateCheckInput Include="**\*.xaml" Exclude="bin\**\*.xaml;obj\**\*.xaml" />
<Content Include="Assets\**\*.png" />
</ItemGroup>

<ItemGroup Condition="$(IsXamarinIOS) or $(IsMonoAndroid) or $(IsXamarinMac)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
<FrameworkLineage>WinUI</FrameworkLineage>
<UnoXamlResourcesTrimming Condition="'$(OS)'=='Windows_NT' or '$(MSBuildRuntimeType)'=='Core'">true</UnoXamlResourcesTrimming>
</PropertyGroup>

<ItemGroup>
<ExcludeXamlNamespaces Include="uwp_navbar" />
<IncludeXamlNamespaces Include="winui_navbar" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Uno.Material.WinUI" />
<PackageReference Include="Uno.WinUI" />
Expand All @@ -40,6 +43,7 @@

<ItemGroup>
<UpToDateCheckInput Include="**\*.xaml" Exclude="bin\**\*.xaml;obj\**\*.xaml" />
<Content Include="Assets\**\*.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Uno.Toolkit.UI\Uno.Toolkit.WinUI.csproj" />
Expand Down
1 change: 1 addition & 0 deletions src/library/Uno.Toolkit.Material/xamlmerge-material.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<XamlMergeInput Include="Styles\Controls\v1\**\*.xaml" MergeFile="mergedpages.$(FrameworkLineage).v1.xaml" />
<XamlMergeInput Include="Styles\Controls\v2\**\*.xaml" MergeFile="mergedpages.$(FrameworkLineage).v2.xaml" />
<XamlMergeInput Include="Resources\AssetCatalog.$(FrameworkLineage).xaml" MergeFile="mergedpages.$(FrameworkLineage).v2.xaml" />
</ItemGroup>
<Import Project="..\..\xamlmerge.props" />
</Project>

0 comments on commit d5641ce

Please sign in to comment.