mirror of
https://github.com/jwetzell/qController.git
synced 2026-09-08 15:59:22 +00:00
Resize topBar/menuButton on Android
This commit is contained in:
@@ -74,7 +74,6 @@ namespace qController
|
|||||||
NavigationPage.SetHasNavigationBar(this, false);
|
NavigationPage.SetHasNavigationBar(this, false);
|
||||||
|
|
||||||
topBar.BackgroundColor = Color.FromHex("71AEFF");
|
topBar.BackgroundColor = Color.FromHex("71AEFF");
|
||||||
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
|
|
||||||
|
|
||||||
|
|
||||||
BackgroundColor = Color.FromHex("4A4A4A");
|
BackgroundColor = Color.FromHex("4A4A4A");
|
||||||
@@ -83,12 +82,14 @@ namespace qController
|
|||||||
switch (Device.RuntimePlatform)
|
switch (Device.RuntimePlatform)
|
||||||
{
|
{
|
||||||
case Device.iOS:
|
case Device.iOS:
|
||||||
|
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
|
||||||
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
||||||
menuButton.FontSize = App.Height * .04;
|
menuButton.FontSize = App.Height * .04;
|
||||||
break;
|
break;
|
||||||
case Device.Android:
|
case Device.Android:
|
||||||
|
topBar.HeightRequest = App.Height * .08;
|
||||||
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
||||||
menuButton.FontSize = App.Height * .04;
|
menuButton.FontSize = App.Height * .05;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
var menuButtonGesture = new TapGestureRecognizer();
|
var menuButtonGesture = new TapGestureRecognizer();
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ namespace qController
|
|||||||
private void InitGUI()
|
private void InitGUI()
|
||||||
{
|
{
|
||||||
NavigationPage.SetHasNavigationBar(this, false);
|
NavigationPage.SetHasNavigationBar(this, false);
|
||||||
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
|
|
||||||
lstView.ItemsSource = QStorage.qInstances;
|
lstView.ItemsSource = QStorage.qInstances;
|
||||||
|
|
||||||
lstView.ItemTemplate = new DataTemplate(typeof(QInstanceCell));
|
lstView.ItemTemplate = new DataTemplate(typeof(QInstanceCell));
|
||||||
@@ -54,13 +53,14 @@ namespace qController
|
|||||||
switch (Device.RuntimePlatform)
|
switch (Device.RuntimePlatform)
|
||||||
{
|
{
|
||||||
case Device.iOS:
|
case Device.iOS:
|
||||||
|
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
|
||||||
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
||||||
menuButton.FontSize = App.Height * .04;
|
menuButton.FontSize = App.Height * .04;
|
||||||
break;
|
break;
|
||||||
case Device.Android:
|
case Device.Android:
|
||||||
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
|
topBar.HeightRequest = App.Height * .08;
|
||||||
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
||||||
menuButton.FontSize = App.Height * .04;
|
menuButton.FontSize = App.Height * .05;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user