Skip to content

Commit

Permalink
Fixes!
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Apr 4, 2024
1 parent fcf3cd8 commit a5267c9
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 34 deletions.
8 changes: 6 additions & 2 deletions 8.0/Apps/PointOfSale/src/PointOfSale/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public static MauiApp CreateMauiApp()
fonts.AddFont("opensans_semibold.ttf", "OpenSansSemiBold");
fonts.AddFont("fa_solid.ttf", "FontAwesome");
fonts.AddFont("fabmdl2.ttf", "Fabric");
})
.ConfigureMauiHandlers(handlers =>
{
ModifyEntry();
});

builder.Services.AddMauiBlazorWebView();

Check warning on line 45 in 8.0/Apps/PointOfSale/src/PointOfSale/MauiProgram.cs

View workflow job for this annotation

GitHub Actions / build (macos-13)

This call site is reachable on: 'Android' 21.0 and later. 'BlazorWebViewServiceCollectionExtensions.AddMauiBlazorWebView(IServiceCollection)' is only supported on: 'android' 23.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 45 in 8.0/Apps/PointOfSale/src/PointOfSale/MauiProgram.cs

View workflow job for this annotation

GitHub Actions / build (macos-13)

This call site is reachable on: 'Android' 21.0 and later. 'BlazorWebViewServiceCollectionExtensions.AddMauiBlazorWebView(IServiceCollection)' is only supported on: 'android' 23.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Expand All @@ -62,8 +66,6 @@ public static MauiApp CreateMauiApp()
});
#endif

ModifyEntry();

Barrel.ApplicationId = "com.simplyprofound.pointofsale";

return builder.Build();
Expand All @@ -78,7 +80,9 @@ public static void ModifyEntry()
#elif IOS || MACCATALYST
handler.PlatformView.BorderStyle = UIKit.UITextBorderStyle.None;
#elif WINDOWS
// how can I remove the bottom border of the Entry?
handler.PlatformView.FontWeight = Microsoft.UI.Text.FontWeights.Thin;
handler.PlatformView.BorderThickness = new Microsoft.UI.Xaml.Thickness(0);
#endif
});
}
Expand Down
18 changes: 10 additions & 8 deletions 8.0/Apps/PointOfSale/src/PointOfSale/Pages/HomePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
xmlns:system="clr-namespace:System;assembly=System.Runtime"
x:DataType="pages:HomeViewModel"
x:Class="PointOfSale.Pages.HomePage"
Shell.NavBarIsVisible="False"
Title="HomePage">
Shell.NavBarIsVisible="{OnPlatform False, WinUI=True}"
Title="">

<ContentPage.BindingContext>
<pages:HomeViewModel/>
Expand Down Expand Up @@ -43,9 +43,10 @@
</ContentPage.MenuBarItems>


<Grid RowDefinitions="100,70,*"
ColumnDefinitions="*,400"
Margin="24,24,0,0"
<Grid RowDefinitions="100,Auto,*"
RowSpacing="10"
ColumnDefinitions="{OnPlatform '*,400', WinUI='*,440'}"
Margin="24,0,0,0"
x:Name="PageGrid">

<ScrollView Grid.Row="2">
Expand Down Expand Up @@ -166,12 +167,13 @@
<!-- Tab Control -->
<Grid Grid.Row="1">
<BoxView Style="{StaticResource HRule}"
Margin="0,31,0,0"
VerticalOptions="Start"
Margin="0,0,0,0"
VerticalOptions="End"
/>
<HorizontalStackLayout Spacing="20"
RadioButtonGroup.GroupName="MenuCategories"
RadioButtonGroup.SelectedValue="{Binding Category}">
RadioButtonGroup.SelectedValue="{Binding Category}"
VerticalOptions="End">
<BindableLayout.ItemsSource>
<x:Array Type="{x:Type x:String}">
<x:String>Noodles</x:String>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
<HorizontalStackLayout.Resources>
<Style TargetType="RadioButton">
<Setter Property="ControlTemplate" Value="{StaticResource ButtonRadioTemplate}"/>
<Setter Property="HorizontalOptions" Value="Start"/>
<Setter Property="WidthRequest" Value="50"/>
</Style>
</HorizontalStackLayout.Resources>
<RadioButton Content="Dine In" IsChecked="True"/>
Expand Down Expand Up @@ -106,8 +108,9 @@

<Border
Grid.Column="1"
HorizontalOptions="Start"
HeightRequest="44"
WidthRequest="44"
WidthRequest="46"
Background="{StaticResource DarkBg1Brush}"
Stroke="{StaticResource SecondaryBrush}"
StrokeThickness="1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
IgnorableNamespaces="uap rescap">

<Identity
Name="8D1C6CD3-CA27-4254-B76F-15B91335C418"
Publisher="CN=User Name"
Version="1.0.0.0" />
Version="1.0.0.0" Name="a045a695-05e1-4353-a3d0-5cd58ec52a45"/>

<Properties>
<DisplayName>PointOfSale</DisplayName>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Uncomment the Entitlements for the full functionality to work. However, this will require you to have a matching provisioning profile in your Apple Developer Account. -->
<!-- <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.microsoft.adalcache</string>
</array>
</dict>
</plist>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.microsoft.adalcache</string>
</array>
</dict>
</plist> -->
16 changes: 2 additions & 14 deletions 8.0/Apps/PointOfSale/src/PointOfSale/PointOfSale.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<ImplicitUsings>enable</ImplicitUsings>

<!-- Display name -->
<ApplicationTitle>Food</ApplicationTitle>
<ApplicationTitle>Point of Sale</ApplicationTitle>

<!-- App Identifier -->
<ApplicationId>net.dot.pointofsale</ApplicationId>
<ApplicationId>com.simplyprofound.pointofsale</ApplicationId>

<!-- Versions -->
<ApplicationVersion>1</ApplicationVersion>
Expand All @@ -39,18 +39,6 @@
<AssemblyName>Food</AssemblyName>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
<CodesignProvision>dPOSDev</CodesignProvision>
<CodesignKey>Apple Development: Created via API (2NJFZDD9ZM)</CodesignKey>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios|AnyCPU'">
<CodesignProvision>Automatic</CodesignProvision>
<CodesignKey>iPhone Developer</CodesignKey>
</PropertyGroup>

<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#252836" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
</VisualStateManager.VisualStateGroups>
<Label Text="{TemplateBinding Content}"
Margin="12,7"
HorizontalTextAlignment="{OnPlatform Start, WinUI=Center}"
x:Name="TextLabel" />
</Border>

Expand Down

0 comments on commit a5267c9

Please sign in to comment.