-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from egvijayanand/working
Blazor Interop project updated to .NET MAUI RC1 release with App Theming support
- Loading branch information
Showing
20 changed files
with
675 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:MauiBlazorApp" | ||
x:Class="MauiBlazorApp.App"> | ||
<Application | ||
x:Class="MauiBlazorApp.App" | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:MauiBlazorApp"> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary Source="Resources/Styles.xaml"> | ||
<!-- Additional Styles --> | ||
<Thickness x:Key="ApplePadding">30,60,30,30</Thickness> | ||
<Thickness x:Key="DefaultPadding">30</Thickness> | ||
|
||
<x:Double x:Key="ItemSpacing">10</x:Double> | ||
|
||
<Color x:Key="PrimaryColor">#512BDF</Color> | ||
<Color x:Key="SecondaryColor">White</Color> | ||
<Style ApplyToDerivedTypes="True" TargetType="StackBase"> | ||
<Setter Property="Spacing" Value="{StaticResource ItemSpacing}" /> | ||
</Style> | ||
|
||
<Style TargetType="StackBase" | ||
ApplyToDerivedTypes="True"> | ||
<Setter Property="Spacing" | ||
Value="{StaticResource ItemSpacing}" /> | ||
<Style x:Key="ContentArea" TargetType="Grid"> | ||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Dark={StaticResource BackgroundDark}, Light={StaticResource BackgroundLight}}" /> | ||
</Style> | ||
|
||
<Style TargetType="Label" | ||
ApplyToDerivedTypes="True"> | ||
<Setter Property="TextColor" | ||
Value="{DynamicResource PrimaryColor}" /> | ||
<Setter Property="FontFamily" | ||
Value="OpenSansRegular" /> | ||
<Style x:Key="MauiLabel" TargetType="Label"> | ||
<Setter Property="TextColor" Value="{AppThemeBinding Dark={StaticResource White}, Light={StaticResource Primary}}" /> | ||
</Style> | ||
|
||
<Style TargetType="Button" | ||
ApplyToDerivedTypes="True"> | ||
<Setter Property="TextColor" | ||
Value="{DynamicResource SecondaryColor}" /> | ||
<Setter Property="FontFamily" | ||
Value="OpenSansRegular" /> | ||
<Setter Property="BackgroundColor" | ||
Value="{DynamicResource PrimaryColor}" /> | ||
<Setter Property="Padding" | ||
Value="14,10" /> | ||
<Style x:Key="Action" TargetType="Button"> | ||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Dark={StaticResource BackgroundDark}, Light={StaticResource BackgroundLight}}" /> | ||
<Setter Property="TextColor" Value="{AppThemeBinding Dark={StaticResource TextDark}, Light={StaticResource TextLight}}" /> | ||
<Setter Property="FontFamily" Value="{StaticResource AppFont}" /> | ||
<Setter Property="FontSize" Value="{StaticResource AppFontSize}" /> | ||
<Setter Property="Padding" Value="14,10" /> | ||
</Style> | ||
|
||
<Style | ||
x:Key="PrimaryAction" | ||
BasedOn="{StaticResource Action}" | ||
TargetType="Button"> | ||
<Setter Property="BackgroundColor" Value="{StaticResource Primary}" /> | ||
<Setter Property="FontAttributes" Value="Bold" /> | ||
<Setter Property="TextColor" Value="{StaticResource White}" /> | ||
</Style> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
global using CommunityToolkit.Maui.Markup; | ||
|
||
global using static CommunityToolkit.Maui.Markup.GridRowsColumns; | ||
global using static CommunityToolkit.Maui.Markup.GridRowsColumns; | ||
|
||
global using static VijayAnand.MauiToolkit.Markup.Utility; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<maui:MauiWinUIApplication xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:maui="using:Microsoft.Maui" | ||
xmlns:local="using:MauiBlazorApp.WinUI" | ||
x:Class="MauiBlazorApp.WinUI.App"> | ||
<maui:MauiWinUIApplication | ||
x:Class="MauiBlazorApp.WinUI.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:MauiBlazorApp.WinUI" | ||
xmlns:maui="using:Microsoft.Maui"> | ||
|
||
</maui:MauiWinUIApplication> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+94.7 KB
...orApp/Resources/Fonts/OpenSansRegular.ttf → ...rApp/Resources/Fonts/OpenSans-Regular.ttf
Binary file not shown.
Binary file not shown.
Oops, something went wrong.