More styling
This commit is contained in:
		| @@ -4,3 +4,8 @@ | ||||
|     vertical-align: middle; | ||||
|     word-wrap: break-word; | ||||
| } | ||||
|  | ||||
| HeaderLaberStyle { | ||||
|     text-align: left; | ||||
|     color: red; | ||||
| } | ||||
|   | ||||
| @@ -14,10 +14,17 @@ | ||||
|              SelectionEnabled="True" | ||||
|              RowHeight="30" | ||||
|              BorderColor="#3a3a3a" | ||||
|              HeaderFontSize="14" | ||||
|              HeaderHeight="45" | ||||
|              HeaderTextColor="White" | ||||
|              BorderThickness="0" | ||||
|              HeaderHeight="40" | ||||
|              HeaderBackground="#222222"> | ||||
|             <dg:DataGrid.HeaderLabelStyle> | ||||
|                 <Style TargetType="Label"> | ||||
|                     <Setter Property="HorizontalOptions" Value="Start"/> | ||||
|                     <Setter Property="FontSize" Value="14"/> | ||||
|                     <Setter Property="TextColor" Value="White"/> | ||||
|                 </Style> | ||||
|             </dg:DataGrid.HeaderLabelStyle> | ||||
|  | ||||
|             <dg:DataGrid.GestureRecognizers> | ||||
|                 <TapGestureRecognizer | ||||
|                      NumberOfTapsRequired="2"/> | ||||
| @@ -59,6 +66,7 @@ | ||||
|                         </DataTemplate> | ||||
|                     </dg:DataGridColumn.CellTemplate> | ||||
|                 </dg:DataGridColumn> | ||||
|  | ||||
|                 <dg:DataGridColumn | ||||
|                      Title="Artist" | ||||
|                      PropertyName="Metadata.Artist" | ||||
|   | ||||
							
								
								
									
										10
									
								
								Aurora/Design/Components/MediaPlayer/Player.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Aurora/Design/Components/MediaPlayer/Player.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| Label { | ||||
|     color: darkgray; | ||||
|     text-align: left; | ||||
|     vertical-align: middle; | ||||
|     word-wrap: break-word; | ||||
| } | ||||
|  | ||||
| #MediaInfoLayout label { | ||||
|     margin-left: 20; | ||||
| } | ||||
| @@ -3,6 +3,10 @@ | ||||
|      xmlns="http://xamarin.com/schemas/2014/forms" | ||||
|      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||||
|      x:Class="Aurora.Design.Components.MediaPlayer.Player"> | ||||
|     <ContentView.Resources> | ||||
|         <StyleSheet | ||||
|              Source="Player.css"/> | ||||
|     </ContentView.Resources> | ||||
|     <ContentView.Content> | ||||
|         <Grid> | ||||
|             <Grid.ColumnDefinitions> | ||||
| @@ -10,16 +14,24 @@ | ||||
|                      Width="100"/> | ||||
|                 <ColumnDefinition | ||||
|                      Width="*"/> | ||||
|                 <ColumnDefinition | ||||
|                      Width="100"/> | ||||
|             </Grid.ColumnDefinitions> | ||||
|             <StackLayout | ||||
|                  x:Name="MediaInfoLayout" | ||||
|                  HorizontalOptions="StartAndExpand" | ||||
|                  Grid.Column="0"> | ||||
|                 <Label | ||||
|                      x:Name="SongTitleLabel"/> | ||||
|                      x:Name="SongTitleLabel" | ||||
|                      LineBreakMode="TailTruncation"/> | ||||
|                 <Label | ||||
|                      x:Name="ArtistNameLabel"/> | ||||
|                      x:Name="ArtistNameLabel" | ||||
|                      LineBreakMode="TailTruncation"/> | ||||
|             </StackLayout> | ||||
|             <StackLayout | ||||
|                  x:Name="PlayerControlLayout" | ||||
|                  Grid.Column="1" | ||||
|                  HorizontalOptions="Center" | ||||
|                  Orientation="Horizontal"> | ||||
|                 <Button | ||||
|                      Text="Previous" | ||||
|   | ||||
| @@ -2,7 +2,6 @@ | ||||
| <ContentView | ||||
|      xmlns="http://xamarin.com/schemas/2014/forms" | ||||
|      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||||
|      xmlns:behaviors="clr-namespace:Aurora.Design.Behaviors" | ||||
|      x:Class="Aurora.Design.Components.NavigationMenu.NavigationMenu"> | ||||
|     <ContentView.Resources> | ||||
|         <StyleSheet | ||||
|   | ||||
| @@ -11,16 +11,34 @@ namespace Aurora.Design.Components.NavigationMenu | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|             ListView = MenuItemsListView; | ||||
|  | ||||
|             ListView.ItemSelected += ListView_ItemSelected; | ||||
|         } | ||||
|  | ||||
|         private void ListView_ItemSelected(object sender, SelectedItemChangedEventArgs e) | ||||
|         { | ||||
|             throw new NotImplementedException(); | ||||
|             this.SelectedItem = e.SelectedItem as NavigationItem; | ||||
|         } | ||||
|  | ||||
|         public ListView ListView; | ||||
|  | ||||
|         public static readonly BindableProperty SelectedItemProperty = | ||||
|             BindableProperty.Create(propertyName: nameof(SelectedItem), | ||||
|             returnType: typeof(NavigationItem), | ||||
|             declaringType: typeof(NavigationMenu), | ||||
|             defaultBindingMode: BindingMode.OneWayToSource); | ||||
|  | ||||
|         public NavigationItem SelectedItem | ||||
|         { | ||||
|             get | ||||
|             { | ||||
|                 return (NavigationItem)GetValue(SelectedItemProperty); | ||||
|             } | ||||
|             set | ||||
|             { | ||||
|                 SetValue(SelectedItemProperty, value); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|  | ||||
|         public static readonly BindableProperty ItemsProperty = | ||||
|             BindableProperty.Create(propertyName: nameof(Items), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user