CPDFDrawModeUI.xaml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <UserControl x:Class="compdfkit_tools.PDFControlUI.CPDFDrawModeUI"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. mc:Ignorable="d"
  7. d:DesignHeight="30" d:DesignWidth="210">
  8. <UserControl.Resources>
  9. <ResourceDictionary>
  10. <ResourceDictionary.MergedDictionaries>
  11. <ResourceDictionary Source="../../../Asset/Style/RadioButtonStyle.xaml"></ResourceDictionary>
  12. <ResourceDictionary Source="pack://application:,,,/compdfkit-assets;component/Styles/ButtonStyle.xaml"></ResourceDictionary>
  13. <ResourceDictionary Source="pack://application:,,,/compdfkit-assets;component/Styles/ToggleButtonStyle.xaml"></ResourceDictionary>
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="auto"></RowDefinition>
  20. <RowDefinition Height="auto"></RowDefinition>
  21. </Grid.RowDefinitions>
  22. <TextBlock Foreground="#43474D" FontSize="14" LineHeight="16" Margin="0,0,0,18">Themes</TextBlock>
  23. <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" Visibility="Collapsed">
  24. <RadioButton GroupName="DrawMode" Tag="Normal" IsChecked="True" Click="DrawMode_Click">
  25. <TextBlock Text="白"></TextBlock>
  26. </RadioButton>
  27. <RadioButton GroupName="DrawMode" Tag="Dark" Click="DrawMode_Click">
  28. <TextBlock Text="夜"></TextBlock>
  29. </RadioButton>
  30. <RadioButton GroupName="DrawMode" Tag="Soft" Click="DrawMode_Click">
  31. <TextBlock Text="阅读"></TextBlock>
  32. </RadioButton>
  33. <RadioButton GroupName="DrawMode" Tag="Green" Click="DrawMode_Click">
  34. <TextBlock Text="护眼"></TextBlock>
  35. </RadioButton>
  36. <RadioButton GroupName="DrawMode" Tag="Custom" x:Name="Custom" Click="DrawMode_Click">
  37. <TextBlock Text="自定义"></TextBlock>
  38. </RadioButton>
  39. </StackPanel>
  40. <StackPanel Grid.Row="1" Orientation="Horizontal">
  41. <Button BorderThickness="0" Background="Transparent" Style="{StaticResource RoundButtonStyle}" Click="DrawModeNormal_Click">
  42. <Button.Content>
  43. <Ellipse Name="NormalTheme" Fill="White" Width="24" Height="24" StrokeThickness="2"></Ellipse>
  44. </Button.Content>
  45. </Button>
  46. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeSoft_Click">
  47. <Button.Content>
  48. <Ellipse Name="SoftTheme" Fill="#EEE8D8" Width="24" Height="24" StrokeThickness="2"></Ellipse>
  49. </Button.Content>
  50. </Button>
  51. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeDark_Click">
  52. <Button.Content>
  53. <Ellipse Name="DarkTheme" Fill="Black" Width="24" Height="24" StrokeThickness="2"></Ellipse>
  54. </Button.Content>
  55. </Button>
  56. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeGreen_Click">
  57. <Button.Content>
  58. <Ellipse Name="GreenTheme" Fill="#99CFA1" Width="24" Height="24" StrokeThickness="2"></Ellipse>
  59. </Button.Content>
  60. </Button>
  61. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeOrange_Click">
  62. <Button.Content>
  63. <Ellipse Name="OrangeTheme" Fill="#FFE390" Width="24" Height="24" StrokeThickness="2"></Ellipse>
  64. </Button.Content>
  65. </Button>
  66. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeLightBlue_Click">
  67. <Button.Content>
  68. <Ellipse Name="LightBlueTheme" Fill="#C1E6FF" Width="24" Height="24" StrokeThickness="2"></Ellipse>
  69. </Button.Content>
  70. </Button>
  71. </StackPanel>
  72. </Grid>
  73. </UserControl>