Przeglądaj źródła

Fixed Bounce Effect on Buttons and Cards
Cleaned Up MobileAccordion Background

Frank van den Bos 1 rok temu
rodzic
commit
9573649052

+ 2 - 1
InABox.Mobile/InABox.Mobile.Shared/Components/MobileAccordion/MobileAccordion.xaml

@@ -37,9 +37,10 @@
                             VerticalOptions="Fill"
                             HasShadow="False"
                             IsVisible="{Binding Visible}"
+                            IsClippedToBounds="True"
                             >
                             <ScrollView>
-                                <ContentView Content="{Binding Content}" />
+                                <ContentView Content="{Binding Content}"/>
                             </ScrollView>
                         </Frame>
                         

+ 0 - 2
InABox.Mobile/InABox.Mobile.Shared/Components/MobileButton/MobileButton.xaml.cs

@@ -203,8 +203,6 @@ namespace InABox.Mobile
         
         private async void _frame_OnClicked(object sender, EventArgs e)
         {
-            Scale = 0.5;
-            await this.ScaleTo(1, 150);
             Clicked?.Invoke(this, new MobileButtonClickEventArgs(Tag));
         }
     }

+ 4 - 3
InABox.Mobile/InABox.Mobile.Shared/Components/MobileMenuButton/MobileMenuButtonMenu.xaml

@@ -23,7 +23,7 @@
                 <Label 
                     FontSize="Small"
                     Text="(No Options)"
-                    TextColor="Silver"/>
+                    TextColor="Gray"/>
             </BindableLayout.EmptyView>
             
             <Grid.ColumnDefinitions>
@@ -47,7 +47,8 @@
                             VerticalTextAlignment="Center"
                             FontSize="Small"
                             Padding="2,5,2,2"
-                            IsVisible="False">
+                            IsVisible="False"
+                            TextColor="Black">
                             
                             <Label.GestureRecognizers>
                                 <TapGestureRecognizer Tapped="TapGestureRecognizer_OnTapped" />
@@ -65,7 +66,7 @@
                             HeightRequest="1"
                             VerticalOptions="Center"
                             HorizontalOptions="Fill"
-                            BackgroundColor="Silver"
+                            BackgroundColor="Gray"
                             Opacity="0.5"
                             Margin="2,5,2,2"
                             IsVisible="False">

+ 2 - 5
InABox.Mobile/InABox.Mobile.Shared/Components/MobileModuleList/MobileModuleList.xaml.cs

@@ -35,12 +35,9 @@ namespace InABox.Mobile
             BeforeTap?.Invoke(this,EventArgs.Empty);
             try
             {
-                if ((sender is MobileCard card) && (card.BindingContext is IModuleMenuItem module) && module.IsEnabled)
-                {
-                    card.Scale = 0.5;
-                    await card.ScaleTo(1, 150);
+                if (((sender as MobileCard)?.BindingContext is IModuleMenuItem module) && module.IsEnabled)
                     module.Tap();
-                }
+                
             }
             catch (Exception err)
             {