diff --git a/qController.Standard/App.xaml b/qController.Standard/App.xaml new file mode 100644 index 0000000..f40917b --- /dev/null +++ b/qController.Standard/App.xaml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/qController.Standard/Classes/UI/QNavBar.cs b/qController.Standard/Classes/UI/QNavBar.cs new file mode 100644 index 0000000..666f4c8 --- /dev/null +++ b/qController.Standard/Classes/UI/QNavBar.cs @@ -0,0 +1,74 @@ +using Xamarin.Forms; + +namespace qController.UI +{ + public class QNavBar : Grid + { + public Button menuButton; + public Label instanceName; + + public QNavBar() + { + RowSpacing = 0; + ColumnSpacing = 0; + Padding = 0; + Margin = 0; + this.SetDynamicResource(Grid.BackgroundColorProperty, "NavigationBarColor"); + RowDefinitions = new RowDefinitionCollection { + new RowDefinition { Height = GridLength.Star } + }; + ColumnDefinitions = new ColumnDefinitionCollection + { + new ColumnDefinition {Width = GridLength.Star}, + new ColumnDefinition {Width = new GridLength(4,GridUnitType.Star)}, + }; + + menuButton = new Button + { + FontFamily = App.QFont, + HorizontalOptions = LayoutOptions.StartAndExpand, + VerticalOptions = LayoutOptions.FillAndExpand, + Padding = 0, + Margin = new Thickness(10,0,0,0), + Text = QIcon.MENU, + CornerRadius = 0, + //BackgroundColor = Color.Red + }; + + menuButton.SetDynamicResource(Label.TextColorProperty, "IconTextColor"); + + + instanceName = new Label + { + HorizontalOptions = LayoutOptions.FillAndExpand, + VerticalOptions = LayoutOptions.FillAndExpand, + HorizontalTextAlignment = TextAlignment.End, + VerticalTextAlignment = TextAlignment.Center, + Margin = new Thickness(0,0,10,0), + Padding = 0, + FontSize = App.HeightUnit * 3, + //BackgroundColor = Color.Blue + }; + + instanceName.SetDynamicResource(Label.TextColorProperty, "PrimaryTextColor"); + + + menuButton.Clicked += App.ShowMenu; + + switch (Device.RuntimePlatform) + { + case Device.iOS: + HeightRequest = App.HeightUnit * 6; + menuButton.FontSize = App.Height * .04; + break; + case Device.Android: + HeightRequest = App.HeightUnit * 6; + menuButton.FontSize = App.Height * .04; + break; + } + + this.Children.Add(menuButton, 0, 0); + this.Children.Add(instanceName, 1, 0); + } + } +} diff --git a/qController.Standard/Views/ControlPage.xaml b/qController.Standard/Views/ControlPage.xaml new file mode 100644 index 0000000..682c4d4 --- /dev/null +++ b/qController.Standard/Views/ControlPage.xaml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/qController.Standard/Views/HomePage.xaml b/qController.Standard/Views/HomePage.xaml new file mode 100644 index 0000000..61c14a2 --- /dev/null +++ b/qController.Standard/Views/HomePage.xaml @@ -0,0 +1,5 @@ + + + + + diff --git a/qController.Standard/Views/MenuPage.xaml b/qController.Standard/Views/MenuPage.xaml new file mode 100644 index 0000000..4fa85fa --- /dev/null +++ b/qController.Standard/Views/MenuPage.xaml @@ -0,0 +1,10 @@ + + + + + + + diff --git a/qController.Standard/Views/QBrowserPage.xaml b/qController.Standard/Views/QBrowserPage.xaml new file mode 100644 index 0000000..334cf91 --- /dev/null +++ b/qController.Standard/Views/QBrowserPage.xaml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/qController.Standard/Views/RootPage.xaml b/qController.Standard/Views/RootPage.xaml new file mode 100644 index 0000000..d75321b --- /dev/null +++ b/qController.Standard/Views/RootPage.xaml @@ -0,0 +1,4 @@ + + + + diff --git a/qController.Standard/Views/RootPageDetail.xaml b/qController.Standard/Views/RootPageDetail.xaml new file mode 100644 index 0000000..787eb70 --- /dev/null +++ b/qController.Standard/Views/RootPageDetail.xaml @@ -0,0 +1,6 @@ + + + + + diff --git a/qController.Standard/Views/RootPageMaster.xaml b/qController.Standard/Views/RootPageMaster.xaml new file mode 100644 index 0000000..d52a380 --- /dev/null +++ b/qController.Standard/Views/RootPageMaster.xaml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/qController.Standard/Views/WorkspacePage.xaml b/qController.Standard/Views/WorkspacePage.xaml new file mode 100644 index 0000000..04ef26c --- /dev/null +++ b/qController.Standard/Views/WorkspacePage.xaml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/qController.Standard/Views/qConnectionPage.xaml b/qController.Standard/Views/qConnectionPage.xaml new file mode 100644 index 0000000..850cc86 --- /dev/null +++ b/qController.Standard/Views/qConnectionPage.xaml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file