diff --git a/I18N Commander/UI MAUI/App.xaml b/I18N Commander/UI MAUI/App.xaml index 35a536a..1a460c9 100644 --- a/I18N Commander/UI MAUI/App.xaml +++ b/I18N Commander/UI MAUI/App.xaml @@ -1,14 +1,26 @@ - + - - - - + + #512bdf + White + + + + + - + \ No newline at end of file diff --git a/I18N Commander/UI MAUI/App.xaml.cs b/I18N Commander/UI MAUI/App.xaml.cs index 93506e7..c681902 100644 --- a/I18N Commander/UI MAUI/App.xaml.cs +++ b/I18N Commander/UI MAUI/App.xaml.cs @@ -2,9 +2,9 @@ public partial class App : Application { - public App() - { - this.InitializeComponent(); - this.MainPage = new AppShell(); - } -} \ No newline at end of file + public App() + { + this.InitializeComponent(); + this.MainPage = new MainPage(); + } +} diff --git a/I18N Commander/UI MAUI/AppShell.xaml b/I18N Commander/UI MAUI/AppShell.xaml deleted file mode 100644 index 75b58d7..0000000 --- a/I18N Commander/UI MAUI/AppShell.xaml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/I18N Commander/UI MAUI/AppShell.xaml.cs b/I18N Commander/UI MAUI/AppShell.xaml.cs deleted file mode 100644 index 11246d3..0000000 --- a/I18N Commander/UI MAUI/AppShell.xaml.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.ComponentModel; - -namespace UI_MAUI; - -public partial class AppShell : Shell, INotifyPropertyChanged -{ - private bool isOpen = DeviceInfo.Idiom == DeviceIdiom.Phone || DeviceInfo.Idiom == DeviceIdiom.Tablet; - - public double CurrentFlyoutWidth => this.isOpen ? 200 : 90; - - public string TextLoadProject => this.isOpen ? "Load Project" : string.Empty; - - public string TextSettings => this.isOpen ? "Settings" : string.Empty; - - public string TextTranslations => this.isOpen ? "Translations" : string.Empty; - - public string TextToggle => this.isOpen ? "Toggle menu" : string.Empty; - - public AppShell() - { - this.InitializeComponent(); - } - - private void MenuItemToggle_OnClicked(object sender, EventArgs e) - { - this.isOpen = !this.isOpen; - this.OnPropertyChanged(nameof(this.CurrentFlyoutWidth)); - this.OnPropertyChanged(nameof(this.TextSettings)); - this.OnPropertyChanged(nameof(this.TextTranslations)); - this.OnPropertyChanged(nameof(this.TextLoadProject)); - this.OnPropertyChanged(nameof(this.TextToggle)); - this.InvalidateMeasure(); - } -} \ No newline at end of file diff --git a/I18N Commander/UI MAUI/Main.razor b/I18N Commander/UI MAUI/Main.razor new file mode 100644 index 0000000..0d8de5c --- /dev/null +++ b/I18N Commander/UI MAUI/Main.razor @@ -0,0 +1,11 @@ + + + + + + + +

Sorry, there's nothing at this address.

+
+
+
diff --git a/I18N Commander/UI MAUI/MainPage.xaml b/I18N Commander/UI MAUI/MainPage.xaml index 9967020..5bcafea 100644 --- a/I18N Commander/UI MAUI/MainPage.xaml +++ b/I18N Commander/UI MAUI/MainPage.xaml @@ -1,41 +1,14 @@  + xmlns:local="clr-namespace:UI_MAUI" + x:Class="UI_MAUI.MainPage" + BackgroundColor="{DynamicResource PageBackgroundColor}"> - - + + + + + - - -