|
72 | 72 | <RowDefinition Height="*"/> |
73 | 73 | </Grid.RowDefinitions> |
74 | 74 |
|
75 | | - <Border Grid.Row="0" Background="{DynamicResource PanelBackground}" CornerRadius="8" Padding="15" Margin="0,0,0,15"> |
| 75 | + <Border Grid.Row="0" Background="{DynamicResource PanelBackground}" CornerRadius="8" Padding="15" Margin="0,0,0,15"> |
76 | 76 | <Grid> |
77 | 77 | <StackPanel Orientation="Horizontal" HorizontalAlignment="Left"> |
78 | 78 | <Button Content="🏠 Home" Margin="0,0,20,0" Click="HomeButton_Click" Style="{StaticResource ModernButton}"/> |
79 | 79 | <TextBlock Text="🎬 MOVIES LIBRARY" FontSize="18" FontWeight="Bold" VerticalAlignment="Center" Foreground="{DynamicResource TextSecondary}"/> |
80 | 80 | <TextBlock x:Name="StatusText" VerticalAlignment="Center" Margin="20,0,0,0" FontSize="14" FontWeight="SemiBold" Foreground="{DynamicResource StatusSuccess}"/> |
81 | 81 | </StackPanel> |
82 | 82 |
|
83 | | - <Button x:Name="ToggleFiltersButton" Content="⚙️ Filters" HorizontalAlignment="Right" Click="ToggleFilters_Click" |
84 | | - Background="{DynamicResource CardBackground}" Foreground="{DynamicResource TextPrimary}" FontSize="16" FontWeight="Bold" Padding="15,8" BorderThickness="0" Cursor="Hand"/> |
85 | | - </Grid> |
86 | | - </Border> |
87 | | - |
88 | | - <Border x:Name="FilterBar" Grid.Row="1" Background="{DynamicResource PanelBackground}" CornerRadius="12" Padding="20" Margin="0,0,0,20" Visibility="Collapsed" BorderThickness="1" BorderBrush="{DynamicResource BorderBrush}"> |
89 | | - <StackPanel> |
90 | | - <Grid> |
91 | | - <Grid.ColumnDefinitions> |
92 | | - <ColumnDefinition Width="*"/> |
93 | | - <ColumnDefinition Width="Auto"/> |
94 | | - <ColumnDefinition Width="Auto"/> |
95 | | - <ColumnDefinition Width="Auto"/> |
96 | | - </Grid.ColumnDefinitions> |
97 | | - |
98 | | - <Grid Grid.Column="0" Margin="0,0,15,0"> |
| 83 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> |
| 84 | + |
| 85 | + <Grid Margin="0,0,15,0" Width="300"> |
99 | 86 | <TextBox x:Name="SearchBox" Padding="15,12" FontSize="18" Background="{DynamicResource CardBackground}" Foreground="{DynamicResource TextPrimary}" |
100 | 87 | BorderThickness="2" BorderBrush="{DynamicResource BorderBrush}" VerticalContentAlignment="Center" TextChanged="Filter_Changed" /> |
101 | 88 | <TextBlock IsHitTestVisible="False" Text="🔍 Search Movies..." VerticalAlignment="Center" HorizontalAlignment="Left" Margin="15,0,0,0" Foreground="{DynamicResource TextSecondary}" FontSize="18"> |
|
112 | 99 | </TextBlock> |
113 | 100 | </Grid> |
114 | 101 |
|
115 | | - <ComboBox x:Name="GenreBox" Grid.Column="1" Width="180" Height="50" Margin="0,0,15,0" FontSize="18" VerticalContentAlignment="Center" SelectionChanged="Filter_Changed"/> |
116 | | - <ComboBox x:Name="WatchedBox" Grid.Column="2" Width="180" Height="50" Margin="0,0,15,0" FontSize="18" VerticalContentAlignment="Center" SelectionChanged="Filter_Changed"> |
| 102 | + <Button x:Name="ToggleFiltersButton" Content="⚙️ Filters" Click="ToggleFilters_Click" |
| 103 | + Background="{DynamicResource CardBackground}" Foreground="{DynamicResource TextPrimary}" FontSize="16" FontWeight="Bold" Padding="15,8" BorderThickness="0" Cursor="Hand"/> |
| 104 | + </StackPanel> |
| 105 | + </Grid> |
| 106 | + </Border> |
| 107 | + |
| 108 | + <Border x:Name="FilterBar" Grid.Row="1" Background="{DynamicResource PanelBackground}" CornerRadius="12" Padding="20" Margin="0,0,0,20" Visibility="Collapsed" BorderThickness="1" BorderBrush="{DynamicResource BorderBrush}"> |
| 109 | + <StackPanel> |
| 110 | + <Grid HorizontalAlignment="Right"> |
| 111 | + <Grid.ColumnDefinitions> |
| 112 | + <ColumnDefinition Width="Auto"/> |
| 113 | + <ColumnDefinition Width="Auto"/> |
| 114 | + <ColumnDefinition Width="Auto"/> |
| 115 | + </Grid.ColumnDefinitions> |
| 116 | + |
| 117 | + <ComboBox x:Name="GenreBox" Grid.Column="0" Width="200" Height="50" Margin="0,0,15,0" FontSize="18" VerticalContentAlignment="Center" SelectionChanged="Filter_Changed"/> |
| 118 | + |
| 119 | + <ComboBox x:Name="WatchedBox" Grid.Column="1" Width="180" Height="50" Margin="0,0,15,0" FontSize="18" VerticalContentAlignment="Center" SelectionChanged="Filter_Changed"> |
117 | 120 | <ComboBoxItem Content="All Statuses" IsSelected="True"/> |
118 | 121 | <ComboBoxItem Content="Unwatched Only"/> |
119 | 122 | <ComboBoxItem Content="Watched Only"/> |
120 | 123 | </ComboBox> |
121 | | - <ComboBox x:Name="SortBox" Grid.Column="3" Width="180" Height="50" FontSize="18" VerticalContentAlignment="Center" SelectionChanged="Filter_Changed"> |
| 124 | + |
| 125 | + <ComboBox x:Name="SortBox" Grid.Column="2" Width="180" Height="50" FontSize="18" VerticalContentAlignment="Center" SelectionChanged="Filter_Changed"> |
122 | 126 | <ComboBoxItem Content="A-Z (Alphabetical)" IsSelected="True"/> |
123 | 127 | <ComboBoxItem Content="Newest Added"/> |
124 | 128 | <ComboBoxItem Content="Release Year"/> |
125 | 129 | </ComboBox> |
126 | 130 | </Grid> |
| 131 | + |
127 | 132 | <Button Content="✅ Apply Filters" Click="ApplyAndClose_Click" HorizontalAlignment="Right" Margin="0,20,0,0" |
128 | 133 | Background="{DynamicResource LiveBorder}" Foreground="White" FontSize="18" FontWeight="Bold" Padding="25,12" BorderThickness="0" Cursor="Hand"/> |
129 | 134 | </StackPanel> |
130 | 135 | </Border> |
131 | | - |
132 | 136 | <ScrollViewer x:Name="MainScroller" Grid.Row="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Focusable="False"> |
133 | 137 | <ItemsControl x:Name="MoviesItemsControl" Focusable="False"> |
134 | 138 | <ItemsControl.ItemsPanel> |
|
0 commit comments