|
120 | 120 | </ObjectDataProvider.MethodParameters> |
121 | 121 | </ObjectDataProvider> |
122 | 122 |
|
| 123 | + <ObjectDataProvider x:Key="LogLevelEnum" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
| 124 | + <ObjectDataProvider.MethodParameters> |
| 125 | + <x:Type TypeName="fl:LogLevel"/> |
| 126 | + </ObjectDataProvider.MethodParameters> |
| 127 | + </ObjectDataProvider> |
| 128 | + |
| 129 | + <ObjectDataProvider x:Key="FFmpegLogLevelEnum" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
| 130 | + <ObjectDataProvider.MethodParameters> |
| 131 | + <x:Type TypeName="fl:FFmpegLogLevel"/> |
| 132 | + </ObjectDataProvider.MethodParameters> |
| 133 | + </ObjectDataProvider> |
| 134 | + |
123 | 135 | </ResourceDictionary> |
124 | 136 | </UserControl.Resources> |
125 | 137 |
|
|
164 | 176 | </StackPanel> |
165 | 177 | </materialDesign:DialogHost.DialogContent> |
166 | 178 |
|
167 | | - <dragablz:TabablzControl Width="525" Height="390" x:Name="tabRoot" FixedHeaderCount="10" Style="{StaticResource mdTabControl}" ItemContainerStyle="{StaticResource NormalTabItemStyle}"> |
| 179 | + <dragablz:TabablzControl Width="504" Height="390" x:Name="tabRoot" FixedHeaderCount="10" Style="{StaticResource mdTabControl}" ItemContainerStyle="{StaticResource NormalTabItemStyle}"> |
168 | 180 | <TabControl.Resources> |
169 | 181 | <Style TargetType="TabItem"> |
170 | 182 | <Setter Property="TextElement.Foreground" Value="{DynamicResource MaterialDesignBody}"/> |
171 | 183 | </Style> |
172 | 184 | </TabControl.Resources> |
| 185 | + <TabItem> |
| 186 | + <TabItem.Header> |
| 187 | + <StackPanel Orientation="Horizontal" Background="{DynamicResource MaterialDesignPaper}"> |
| 188 | + <materialDesign:PackIcon Kind="PlayBoxMultipleOutline" Margin="0 6 4 6"/> |
| 189 | + <TextBlock Text="Player" VerticalAlignment="Center" Foreground="{DynamicResource PrimaryHueMidBrush}" Padding="0 0 8 0"/> |
| 190 | + </StackPanel> |
| 191 | + </TabItem.Header> |
| 192 | + <Grid> |
| 193 | + <Grid Margin="20" VerticalAlignment="Top"> |
| 194 | + <Grid.ColumnDefinitions> |
| 195 | + <ColumnDefinition Width="200"/> |
| 196 | + <ColumnDefinition Width="100"/> |
| 197 | + <ColumnDefinition Width="*"/> |
| 198 | + </Grid.ColumnDefinitions> |
| 199 | + <Grid.RowDefinitions> |
| 200 | + <RowDefinition Height="30"/> |
| 201 | + <RowDefinition Height="30"/> |
| 202 | + <RowDefinition Height="30"/> |
| 203 | + <RowDefinition Height="30"/> |
| 204 | + <RowDefinition Height="30"/> |
| 205 | + <RowDefinition Height="30"/> |
| 206 | + <RowDefinition Height="30"/> |
| 207 | + <RowDefinition Height="30"/> |
| 208 | + <RowDefinition Height="30"/> |
| 209 | + </Grid.RowDefinitions> |
| 210 | + |
| 211 | + <TextBlock Grid.Row="0" Text="Read Timeout (ms)" VerticalAlignment="Center"/> |
| 212 | + <TextBox Grid.Row="0" Grid.Column="1" Style="{StaticResource FLTextboxNP}" Text="{Binding Config.Demuxer.ReadTimeout, UpdateSourceTrigger=Explicit, Converter={StaticResource TicksToMilliSeconds}}"/> |
| 213 | + |
| 214 | + <TextBlock Grid.Row="1" Text="Buffer Duration Min. (ms)" VerticalAlignment="Center"/> |
| 215 | + <TextBox Grid.Row="1" Grid.Column="1" Style="{StaticResource FLTextboxNP}" Text="{Binding Config.Player.MinBufferDuration, UpdateSourceTrigger=Explicit, Converter={StaticResource TicksToMilliSeconds}}"/> |
| 216 | + |
| 217 | + <TextBlock Grid.Row="2" Text="Buffer Duration Max. (ms)" VerticalAlignment="Center"/> |
| 218 | + <TextBox Grid.Row="2" Grid.Column="1" Style="{StaticResource FLTextboxNP}" Text="{Binding Config.Demuxer.BufferDuration, UpdateSourceTrigger=Explicit, Converter={StaticResource TicksToMilliSeconds}}"/> |
| 219 | + |
| 220 | + <TextBlock Grid.Row="3" Text="Audio Frames Max." VerticalAlignment="Center"/> |
| 221 | + <TextBox Grid.Row="3" Grid.Column="1" Style="{StaticResource FLTextboxNP}" Text="{Binding Config.Decoder.MaxAudioFrames, UpdateSourceTrigger=Explicit}"/> |
| 222 | + |
| 223 | + <TextBlock Grid.Row="4" Text="Video Frames Max." VerticalAlignment="Center"/> |
| 224 | + <TextBox Grid.Row="4" Grid.Column="1" Style="{StaticResource FLTextboxNP}" Text="{Binding Config.Decoder.MaxVideoFrames, UpdateSourceTrigger=Explicit}"/> |
| 225 | + |
| 226 | + <Separator Grid.Row="5" Grid.ColumnSpan="3"/> |
| 227 | + |
| 228 | + <TextBlock Grid.Row="6" Text="Log File" VerticalAlignment="Center"/> |
| 229 | + <TextBox Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" Width="260" TextAlignment="Left" Style="{StaticResource FLTextbox}" Text="{Binding ConfigEngine.LogOutput, UpdateSourceTrigger=Explicit}"/> |
| 230 | + |
| 231 | + <TextBlock Grid.Row="7" Text="Log Level" VerticalAlignment="Center"/> |
| 232 | + <ComboBox Grid.Row="7" Grid.Column="1" ItemsSource="{Binding Source={StaticResource LogLevelEnum}}" SelectedItem="{Binding ConfigEngine.LogLevel}"/> |
| 233 | + |
| 234 | + <TextBlock Grid.Row="8" Text="Log Level (FFmpeg)" VerticalAlignment="Center"/> |
| 235 | + <ComboBox Grid.Row="8" Grid.Column="1" ItemsSource="{Binding Source={StaticResource FFmpegLogLevelEnum}}" SelectedItem="{Binding ConfigEngine.FFmpegLogLevel}"/> |
| 236 | + </Grid> |
| 237 | + <StackPanel Margin="0, 0, 0, 10" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom"> |
| 238 | + <Button Style="{StaticResource SaveButton}"/> |
| 239 | + <Button Content="Apply" FontWeight="ExtraBold" Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" CommandParameter="apply"/> |
| 240 | + <Button Margin="10 0" Content="Cancel" Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" CommandParameter="cancel" /> |
| 241 | + </StackPanel> |
| 242 | + </Grid> |
| 243 | + </TabItem> |
173 | 244 | <TabItem> |
174 | 245 | <TabItem.Header> |
175 | 246 | <StackPanel Orientation="Horizontal" Background="{DynamicResource MaterialDesignPaper}"> |
|
198 | 269 | <TextBox Grid.Row="1" Grid.Column="1" Style="{StaticResource FLTextboxN}" Text="{Binding Config.Audio.Delay, UpdateSourceTrigger=Explicit, Converter={StaticResource TicksToMilliSeconds}}"/> |
199 | 270 |
|
200 | 271 | <TextBlock Grid.Row="2" Text="Device" VerticalAlignment="Center"/> |
201 | | - <ComboBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" x:Name="cmbAudioDevice" Tag="_save" ItemsSource="{Binding AudioMaster.Devices}" SelectedItem="{Binding Player.Audio.Device, UpdateSourceTrigger=Explicit}" /> |
| 272 | + <ComboBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" x:Name="cmbAudioDevice" Tag="_save" ItemsSource="{Binding AudioEngine.Devices}" SelectedItem="{Binding Player.Audio.Device, UpdateSourceTrigger=Explicit}" /> |
202 | 273 | </Grid> |
203 | 274 | <StackPanel Margin="0, 0, 0, 10" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom"> |
204 | 275 | <Button Style="{StaticResource SaveButton}"/> |
|
313 | 384 |
|
314 | 385 | <TextBlock Grid.Row="2" Text="Deinterlace" VerticalAlignment="Center"/> |
315 | 386 | <ToggleButton Grid.Row="2" Grid.Column="1" Tag="_save" IsChecked="{Binding Config.Video.Deinterlace, UpdateSourceTrigger=Explicit}" HorizontalAlignment="Left" Style="{StaticResource MaterialDesignSwitchDarkToggleButton}"/> |
316 | | - |
| 387 | + |
317 | 388 | <TextBlock Grid.Row="3" Text="V. Sync" VerticalAlignment="Center"/> |
318 | 389 | <ToggleButton Grid.Row="3" Grid.Column="1" Tag="_save" IsChecked="{Binding Config.Video.VSync, UpdateSourceTrigger=Explicit}" HorizontalAlignment="Left" Style="{StaticResource MaterialDesignSwitchDarkToggleButton}"/> |
319 | 390 |
|
|
334 | 405 |
|
335 | 406 | <TextBlock Grid.Row="9" Text="HDR to SDR Tone" VerticalAlignment="Center"/> |
336 | 407 | <TextBox Grid.Row="9" Grid.Column="1" Style="{StaticResource FLTextbox}" Text="{Binding Config.Video.HDRtoSDRTone, UpdateSourceTrigger=LostFocus}"/> |
337 | | - |
| 408 | + |
338 | 409 | <StackPanel Orientation="Vertical" Grid.Row="10" Grid.ColumnSpan="3" Margin="0 10 0 0"> |
339 | 410 | <ItemsControl ItemsSource="{Binding Config.Video.Filters.Values}"> |
340 | 411 | <ItemsControl.ItemTemplate> |
|
357 | 428 | </StackPanel> |
358 | 429 | </Grid> |
359 | 430 | </TabItem> |
360 | | - <TabItem> |
361 | | - <TabItem.Header> |
362 | | - <StackPanel Orientation="Horizontal" Background="{DynamicResource MaterialDesignPaper}"> |
363 | | - <materialDesign:PackIcon Kind="ProgressDownload" Margin="4 6 4 6"/> |
364 | | - <TextBlock Text="Buffering" VerticalAlignment="Center" Foreground="{DynamicResource PrimaryHueMidBrush}" Padding="0 0 8 0"/> |
365 | | - </StackPanel> |
366 | | - </TabItem.Header> |
367 | | - <Grid> |
368 | | - <Grid Margin="20" VerticalAlignment="Top"> |
369 | | - <Grid.ColumnDefinitions> |
370 | | - <ColumnDefinition Width="200"/> |
371 | | - <ColumnDefinition Width="auto"/> |
372 | | - <ColumnDefinition Width="*"/> |
373 | | - </Grid.ColumnDefinitions> |
374 | | - <Grid.RowDefinitions> |
375 | | - <RowDefinition Height="30"/> |
376 | | - <RowDefinition Height="30"/> |
377 | | - <RowDefinition Height="30"/> |
378 | | - <RowDefinition Height="30"/> |
379 | | - </Grid.RowDefinitions> |
380 | | - |
381 | | - <TextBlock Grid.Row="0" Text="Buffer Duration Min. (ms)" VerticalAlignment="Center"/> |
382 | | - <TextBox Grid.Row="0" Grid.Column="1" Style="{StaticResource FLTextboxNP}" Text="{Binding Config.Player.MinBufferDuration, UpdateSourceTrigger=Explicit, Converter={StaticResource TicksToMilliSeconds}}"/> |
383 | | - |
384 | | - <TextBlock Grid.Row="1" Text="Buffer Duration Max. (ms)" VerticalAlignment="Center"/> |
385 | | - <TextBox Grid.Row="1" Grid.Column="1" Style="{StaticResource FLTextboxNP}" Text="{Binding Config.Demuxer.BufferDuration, UpdateSourceTrigger=Explicit, Converter={StaticResource TicksToMilliSeconds}}"/> |
386 | | - |
387 | | - <TextBlock Grid.Row="2" Text="Audio Frames Max." VerticalAlignment="Center"/> |
388 | | - <TextBox Grid.Row="2" Grid.Column="1" Style="{StaticResource FLTextboxNP}" Text="{Binding Config.Decoder.MaxAudioFrames, UpdateSourceTrigger=Explicit}"/> |
389 | | - |
390 | | - <TextBlock Grid.Row="3" Text="Video Frames Max." VerticalAlignment="Center"/> |
391 | | - <TextBox Grid.Row="3" Grid.Column="1" Style="{StaticResource FLTextboxNP}" Text="{Binding Config.Decoder.MaxVideoFrames, UpdateSourceTrigger=Explicit}"/> |
392 | | - </Grid> |
393 | | - <StackPanel Margin="0, 0, 0, 10" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom"> |
394 | | - <Button Style="{StaticResource SaveButton}"/> |
395 | | - <Button Content="Apply" FontWeight="ExtraBold" Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" CommandParameter="apply"/> |
396 | | - <Button Margin="10 0" Content="Cancel" Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" CommandParameter="cancel" /> |
397 | | - </StackPanel> |
398 | | - </Grid> |
399 | | - </TabItem> |
400 | 431 | <TabItem> |
401 | 432 | <TabItem.Header> |
402 | 433 | <StackPanel Orientation="Horizontal" Background="{DynamicResource MaterialDesignPaper}"> |
|
504 | 535 | <TabItem> |
505 | 536 | <TabItem.Header> |
506 | 537 | <StackPanel Orientation="Horizontal" Background="{DynamicResource MaterialDesignPaper}"> |
507 | | - <materialDesign:PackIcon Kind="PluginOutline" Margin="4 6 4 6"/> |
| 538 | + <materialDesign:PackIcon Kind="PluginOutline" Margin="0 6 4 6"/> |
508 | 539 | <TextBlock Text="Plugins" VerticalAlignment="Center" Foreground="{DynamicResource PrimaryHueMidBrush}" Padding="0 0 4 0"/> |
509 | 540 | </StackPanel> |
510 | 541 | </TabItem.Header> |
|
534 | 565 | <DataTemplate> |
535 | 566 | <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> |
536 | 567 | <TextBlock Text="{Binding Key, Mode=OneWay}" VerticalAlignment="Center" Width="150"/> |
537 | | - <TextBox Text="{Binding Value, Mode=OneWay}" VerticalAlignment="Center" Width="320" LostFocus="PluginValueChanged"/> |
| 568 | + <TextBox Text="{Binding Value, Mode=OneWay}" VerticalAlignment="Center" Width="310" LostFocus="PluginValueChanged"/> |
538 | 569 | </StackPanel> |
539 | 570 | </DataTemplate> |
540 | 571 | </ItemsControl.ItemTemplate> |
|
0 commit comments