Skip to content

Commit

Permalink
Re-added styles from a previous branch
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnious committed Oct 15, 2024
1 parent bbf67d1 commit 33720e1
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<panels:FlexPanel x:Name="Body">


<Border x:Name="HeaderBorderBackground">
<Border x:Name="HeaderBorder">
<panels:FlexPanel x:Name="Header">

Expand Down Expand Up @@ -104,6 +104,7 @@
</Border>
</panels:FlexPanel>
</Border>
</Border>

<Border x:Name="ListHeaderRowBorder">
<panels:FlexPanel x:Name="ListHeaderRow">
Expand All @@ -114,26 +115,33 @@
</panels:FlexPanel>
</Border>

<TabControl>
<TabItem>
<TabItem.Header>
<panels:FlexPanel x:Name="RequiredModsFlexPanel">
<TextBlock>Required</TextBlock>
<Border>
<TextBlock x:Name="RequiredModsCount" />
</Border>
</panels:FlexPanel>
</TabItem.Header>
<!-- TreeDataGrid -->
<TextBlock>TODO: Required mods will appear here</TextBlock>
</TabItem>
<TabItem>
<TabItem.Header>
<panels:FlexPanel x:Name="OptionalModsFlexPanel">
<TextBlock>Optional</TextBlock>
<Border>
<TextBlock x:Name="OptionalModsCount" />
</Border>
</panels:FlexPanel>
</TabItem.Header>
<!-- TreeDataGrid -->
<TextBlock>TODO: Optional mods will appear here</TextBlock>
</TabItem>
</TabControl>

<!-- not touching these for now -->
<Expander>
<Expander.Header>
<panels:FlexPanel>
<TextBlock>Required</TextBlock>
<TextBlock x:Name="RequiredModsCount" />
</panels:FlexPanel>
</Expander.Header>
<TextBlock>TODO: Grid of mods will appear here</TextBlock>
</Expander>
<Expander>
<Expander.Header>
<panels:FlexPanel>
<TextBlock>Optional</TextBlock>
<TextBlock x:Name="OptionalModsCount" />
</panels:FlexPanel>
</Expander.Header>
<TextBlock>TODO: Grid of mods will appear here</TextBlock>
</Expander>
</panels:FlexPanel>

</reactiveUi:ReactiveUserControl>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public CollectionDownloadView()
// Uncomment this to enable the background image
this.WhenAnyValue(view => view.ViewModel!.BackgroundImage)
.WhereNotNull()
.SubscribeWithErrorLogging(image => Body.Background = new ImageBrush { Source = image, Stretch = Stretch.UniformToFill})
.SubscribeWithErrorLogging(image => HeaderBorderBackground.Background = new ImageBrush { Source = image, Stretch = Stretch.UniformToFill, AlignmentY = AlignmentY.Top})
.DisposeWith(d);

this.WhenAnyValue(view => view.ViewModel!.TileImage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:panels="clr-namespace:Avalonia.Labs.Panels;assembly=Avalonia.Labs.Panels"
xmlns:icons="clr-namespace:NexusMods.Icons;assembly=NexusMods.Icons"
xmlns:element="clr-namespace:NexusMods.App.UI.Controls.Spinner;assembly=NexusMods.App.UI"
xmlns:collections="clr-namespace:NexusMods.App.UI.Pages.LibraryPage.Collections;assembly=NexusMods.App.UI">

<Design.PreviewWith>
Expand Down Expand Up @@ -55,6 +54,7 @@
<Style Selector="^ Image#TileImage">
<Setter Property="Width" Value="144" />
<Setter Property="Height" Value="180" />
<Setter Property="Stretch" Value="UniformToFill" />
</Style>
</Style>

Expand Down
Loading

0 comments on commit 33720e1

Please sign in to comment.