mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-08 17:03:47 +00:00
Update styling for Android
This commit is contained in:
@@ -15,13 +15,13 @@
|
||||
<item name="colorPrimaryDark">#1976D2</item>
|
||||
<!-- colorAccent is used as the default value for colorControlActivated
|
||||
which is used to tint widgets -->
|
||||
<item name="colorAccent">#FF4081</item>
|
||||
<item name="colorAccent">#71AEFF</item>
|
||||
<!-- You can also set colorControlNormal, colorControlActivated
|
||||
colorControlHighlight and colorSwitchThumbNormal. -->
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
|
||||
</style>
|
||||
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
|
||||
<item name="colorAccent">#FF4081</item>
|
||||
<item name="colorAccent">#71AEFF</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace qController.UI
|
||||
{
|
||||
public class QNavBar : Grid
|
||||
{
|
||||
public Button menuButton;
|
||||
public Label menuButton;
|
||||
public Label instanceName;
|
||||
|
||||
public QNavBar()
|
||||
@@ -23,15 +23,17 @@ namespace qController.UI
|
||||
new ColumnDefinition {Width = new GridLength(4,GridUnitType.Star)},
|
||||
};
|
||||
|
||||
menuButton = new Button
|
||||
menuButton = new Label
|
||||
{
|
||||
FontFamily = App.QFont,
|
||||
HorizontalOptions = LayoutOptions.StartAndExpand,
|
||||
VerticalOptions = LayoutOptions.FillAndExpand,
|
||||
HorizontalTextAlignment = TextAlignment.Start,
|
||||
VerticalTextAlignment = TextAlignment.Center,
|
||||
Padding = 0,
|
||||
Margin = new Thickness(10,0,0,0),
|
||||
Text = QIcon.MENU,
|
||||
CornerRadius = 0,
|
||||
BackgroundColor = Color.Transparent,
|
||||
//BackgroundColor = Color.Red
|
||||
};
|
||||
|
||||
@@ -53,7 +55,9 @@ namespace qController.UI
|
||||
instanceName.SetDynamicResource(Label.TextColorProperty, "PrimaryTextColor");
|
||||
|
||||
|
||||
menuButton.Clicked += App.ShowMenu;
|
||||
var menuButtonGesture = new TapGestureRecognizer();
|
||||
menuButtonGesture.Tapped += App.ShowMenu;
|
||||
menuButton.GestureRecognizers.Add(menuButtonGesture);
|
||||
|
||||
switch (Device.RuntimePlatform)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user