Skip to content

Commit

Permalink
Fixing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Aden Earnshaw committed Jun 5, 2022
1 parent 971e840 commit f58f8e2
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 33 deletions.
1 change: 0 additions & 1 deletion samples/AppActions.Icons.MauiSample/App.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?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:AppShortcuts.Maui.Icons"
x:Class="AppActions.Icons.MauiSample.App">
<Application.Resources>
<ResourceDictionary>
Expand Down
2 changes: 1 addition & 1 deletion samples/AppActions.Icons.MauiSample/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
x:Class="AppActions.Icons.MauiSample.MainPage"
xmlns:local="using:AppActions.Icons.MauiSample"
x:DataType="local:MainPage">
<ScrollView>
<VerticalStackLayout
Spacing="25"
Expand Down
22 changes: 11 additions & 11 deletions samples/AppActions.Icons.MauiSample/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
[QueryProperty(nameof(LaunchAction), "action")]
public partial class MainPage : ContentPage
{
private string _launchAction = "None";
public string LaunchAction
private string _launchAction = "None";
public string LaunchAction
{
get => _launchAction;
set
{
get => _launchAction;
set
{
_launchAction = value;
OnPropertyChanged();
OnPropertyChanged();
}
}

public MainPage()
{
InitializeComponent();
BindingContext = this;
}
public MainPage()
{
InitializeComponent();
BindingContext = this;
}
}

40 changes: 20 additions & 20 deletions samples/AppActions.Icons.MauiSample/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ namespace AppActions.Icons.MauiSample;

public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
})
.ConfigureEssentials(essentials =>
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
essentials
.UseAppActionIcons()
.AddAppAction("home_sc", "Home", icon: AppActionIcon.Home)
.AddAppAction("record_sc", "Record", icon: new SystemSymbol("mic.circle.fill"))
.AddAppAction("pause_sc", "Pause", icon: new SystemSymbol(new PlatformString(AppActionIcon.Pause, ios: "pause.circle.fill")))
.AddAppAction("stop_sc", "Stop", icon: new PlatformString("quicklaunch_stop", android: "ic_app_action_stop", ios: "quickaction_stop"))
.OnAppAction(App.HandleAppActions);
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
})
.ConfigureEssentials(essentials =>
{
essentials
.UseAppActionIcons()
.AddAppAction("home_sc", "Home", icon: AppActionIcon.Home)
.AddAppAction("record_sc", "Record", icon: new SystemSymbol("mic.circle.fill"))
.AddAppAction("pause_sc", "Pause", icon: new SystemSymbol(new PlatformString(AppActionIcon.Pause, ios: "pause.circle.fill")))
.AddAppAction("stop_sc", "Stop", icon: new PlatformString("quicklaunch_stop", android: "ic_app_action_stop", ios: "quickaction_stop"))
.OnAppAction(App.HandleAppActions);
});

return builder.Build();
}
return builder.Build();
}
}
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.

0 comments on commit f58f8e2

Please sign in to comment.