|
| 1 | +<Styles |
| 2 | + xmlns="https://github.com/avaloniaui" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:controls="using:StabilityMatrix.Avalonia.Controls" |
| 5 | + xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia" |
| 6 | + xmlns:vmInference="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Inference" |
| 7 | + x:DataType="vmInference:TiledVAECardViewModel"> |
| 8 | + <Design.PreviewWith> |
| 9 | + <controls:TiledVAECard /> |
| 10 | + </Design.PreviewWith> |
| 11 | + |
| 12 | + <Style Selector="controls|TiledVAECard"> |
| 13 | + <!-- Set Defaults --> |
| 14 | + <Setter Property="Template"> |
| 15 | + <ControlTemplate> |
| 16 | + <controls:Card x:Name="PART_Card"> |
| 17 | + <controls:Card.Styles> |
| 18 | + <Style Selector="ui|NumberBox"> |
| 19 | + <Setter Property="Margin" Value="12,0,0,0" /> |
| 20 | + <Setter Property="MinWidth" Value="70" /> |
| 21 | + <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| 22 | + <Setter Property="ValidationMode" Value="InvalidInputOverwritten" /> |
| 23 | + <Setter Property="SmallChange" Value="32" /> |
| 24 | + <Setter Property="LargeChange" Value="128" /> |
| 25 | + <Setter Property="SpinButtonPlacementMode" Value="Inline" /> |
| 26 | + </Style> |
| 27 | + </controls:Card.Styles> |
| 28 | + <StackPanel Spacing="8"> |
| 29 | + <!-- Tile Size --> |
| 30 | + <Grid ColumnDefinitions="Auto,*"> |
| 31 | + <TextBlock |
| 32 | + Grid.Column="0" |
| 33 | + VerticalAlignment="Center" |
| 34 | + Text="Tile Size" /> |
| 35 | + <ui:NumberBox |
| 36 | + Grid.Column="1" |
| 37 | + Value="{Binding TileSize, Mode=TwoWay}" /> |
| 38 | + </Grid> |
| 39 | + |
| 40 | + <!-- Overlap --> |
| 41 | + <Grid ColumnDefinitions="Auto,*"> |
| 42 | + <TextBlock |
| 43 | + Grid.Column="0" |
| 44 | + VerticalAlignment="Center" |
| 45 | + Text="Overlap" /> |
| 46 | + <ui:NumberBox |
| 47 | + Grid.Column="1" |
| 48 | + Value="{Binding Overlap, Mode=TwoWay}" /> |
| 49 | + </Grid> |
| 50 | + |
| 51 | + <!-- Temporal Size (for Video VAEs) --> |
| 52 | + <Grid ColumnDefinitions="Auto,*"> |
| 53 | + <TextBlock |
| 54 | + Grid.Column="0" |
| 55 | + VerticalAlignment="Center" |
| 56 | + Text="Temporal Size" /> |
| 57 | + <ui:NumberBox |
| 58 | + Grid.Column="1" |
| 59 | + Value="{Binding TemporalSize, Mode=TwoWay}" /> |
| 60 | + </Grid> |
| 61 | + |
| 62 | + <!-- Temporal Overlap (for Video VAEs) --> |
| 63 | + <Grid ColumnDefinitions="Auto,*"> |
| 64 | + <TextBlock |
| 65 | + Grid.Column="0" |
| 66 | + VerticalAlignment="Center" |
| 67 | + Text="Temporal Overlap" /> |
| 68 | + <ui:NumberBox |
| 69 | + Grid.Column="1" |
| 70 | + Value="{Binding TemporalOverlap, Mode=TwoWay}" |
| 71 | + SmallChange="4" |
| 72 | + LargeChange="16" /> |
| 73 | + </Grid> |
| 74 | + </StackPanel> |
| 75 | + </controls:Card> |
| 76 | + </ControlTemplate> |
| 77 | + </Setter> |
| 78 | + </Style> |
| 79 | +</Styles> |
0 commit comments