First pass at some styling

This commit is contained in:
watsonb8
2019-12-01 06:53:30 -05:00
parent ee0f8afd86
commit 061adabff8
14 changed files with 151 additions and 197 deletions

View File

@ -4,21 +4,29 @@
ListView {
background-color: #232323;
margin-left: 20;
margin-top: 20;
margin-left: 15;
margin-top: 40;
}
#GroupTemplate Label {
color: white;
font-size: 14;
font-family: Courier New, Courier, monospace;
font-weight: 100;
margin-top: 500;
#GroupTemplate {
align-items: end;
}
#ItemTemplate label {
color: white;
font-size: 18;
#GroupCell Label {
color: lightgray;
background-color: #232323;
font-size: 12;
font-family: Courier New, Courier, monospace;
font-weight: 400;
font-style: italic;
padding-top: 18;
}
#ItemCell label {
color: white;
background-color: #232323;
font-size: 15;
font-family: Courier New, Courier, monospace;
font-style: normal;
text-align: left;
padding-top: 12;
}

View File

@ -14,18 +14,20 @@
SeparatorVisibility="None"
HasUnevenRows="true"
IsGroupingEnabled="true"
RowHeight="35"
CachingStrategy="RecycleElement">
<ListView.GroupHeaderTemplate>
<DataTemplate>
<ViewCell x:Name="GroupTemplate">
<ViewCell x:Name="GroupCell">
<Label
VerticalTextAlignment="Center"
Text="{Binding GroupHeading}"/>
</ViewCell>
</DataTemplate>
</ListView.GroupHeaderTemplate>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell x:Name="ItemTemplate">
<ViewCell x:Name="ItemCell">
<Label
Text="{Binding Title}"/>
</ViewCell>

View File

@ -11,10 +11,13 @@ namespace Aurora.Design.Components.NavigationMenu
{
InitializeComponent();
ListView = MenuItemsListView;
}
public ListView ListView;
public static readonly BindableProperty ItemsProperty =
BindableProperty.Create(propertyName: nameof(Items),
returnType: typeof(ObservableCollection<NavigationItem>),