Jelajahi Sumber

RadioButton样式更新

liyijie 2 tahun lalu
induk
melakukan
fa4c810690

+ 1 - 1
PDF Office/Styles/RadioButtonStyle.xaml

@@ -639,7 +639,7 @@
         <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
         <Setter Property="BorderThickness" Value="1" />
         <Setter Property="Padding" Value="8,0,0,0" />
-        <Setter Property="FontSize" Value="12" />
+        <Setter Property="FontSize" Value="14" />
         <Setter Property="FontFamily" Value="Segoe UI" />
             <Setter Property="VerticalAlignment" Value="Center" />
         <Setter Property="Template">

+ 1 - 3
PDF Office/Views/Dialog/ConverterDialogs/ConverterCSVDialog.xaml

@@ -42,7 +42,6 @@
                                 Name="ForEachPageRadioBtn"
                                
                                 Style="{StaticResource RadioButtonStyleText}"
-                                Padding="9,0,0,0"
                                 Command="{Binding RadioButtonCommand}"
                                 CommandParameter="{Binding ElementName=ForEachPageRadioBtn, Path=Name}">
                                 <TextBlock Text="Retain Flowing Text" />
@@ -51,14 +50,13 @@
                                 
                                 Name="OnlyTableRadioBtn"
                                 Margin="0,8,0,0"
-                                Padding="9,0,0,0"
                                 Style="{StaticResource RadioButtonStyleText}"
                                 Command="{Binding RadioButtonCommand}"
                                 CommandParameter="{Binding ElementName=OnlyTableRadioBtn, Path=Name}">
                                 <TextBlock Text="Retain Page Layout" />
                             </RadioButton>
                         </StackPanel>
-                        <StackPanel Margin="0,19,0,0" Orientation="Vertical">
+                        <StackPanel Margin="0,18,0,0" Orientation="Vertical">
                             <TextBlock
                                 Height="20"
                                 HorizontalAlignment="Left"

+ 4 - 4
PDF Office/Views/Dialog/ConverterDialogs/ConverterExcelDialog.xaml

@@ -31,7 +31,7 @@
                         <StackPanel Orientation="Vertical">
                             <TextBlock Text="ExcelExcel Workbook Settings" Height="20"  Style="{StaticResource PropertyHeaderLv2}"/>
                             <StackPanel Orientation="Vertical" Margin="0,10,0,0">
-                                <RadioButton Name="AnyContentRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=AnyContentRadioBtn,Path=Name}" IsChecked="True" Padding="9,0,0,0"
+                                <RadioButton Name="AnyContentRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=AnyContentRadioBtn,Path=Name}" IsChecked="True"
                                 Style="{StaticResource RadioButtonStyleText}">
                                     <TextBlock Text="All contents"/>
                                 </RadioButton>
@@ -39,7 +39,7 @@
                                     <ComboBoxItem Content="为每个页面创建工作表 "/>
                                     <ComboBoxItem Content="为文档创建单个工作表"/>
                                 </ComboBox>
-                                <RadioButton Margin="0,8,0,0" Name="OnlyTableRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTableRadioBtn,Path=Name}" Padding="9,0,0,0"
+                                <RadioButton Margin="0,8,0,0" Name="OnlyTableRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTableRadioBtn,Path=Name}" Padding="8,0,0,0"
                                 Style="{StaticResource RadioButtonStyleText}">
                                     <TextBlock Text="Only Tables"/>
                                 </RadioButton>
@@ -48,7 +48,7 @@
                                     <ComboBoxItem Content="支持按页面提取表格到单独的工作表"/>
                                     <ComboBoxItem Content="支持将所有表格提取到一个工作表"/>
                                 </ComboBox>
-                                <RadioButton Margin="0,8,0,0" Name="OnlyTextRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTextRadioBtn,Path=Name}" Padding="9,0,0,0"
+                                <RadioButton Margin="0,8,0,0" Name="OnlyTextRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTextRadioBtn,Path=Name}" Padding="8,0,0,0"
                                 Style="{StaticResource RadioButtonStyleText}">
                                     <TextBlock Text="Only Text"></TextBlock>
                                 </RadioButton>
@@ -57,7 +57,7 @@
                         <StackPanel Orientation="Vertical"  Margin="0,18,0,0">
                             <StackPanel Orientation="Vertical">
                                 <TextBlock Text="Text Recognition Settings:" HorizontalAlignment="Left"  Height="20"  Style="{StaticResource PropertyHeaderLv2}"/>
-                                <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" Padding="9,0,0,0">
+                                <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" Padding="8,0,0,0" >
                                     <TextBlock Text="Recognize text if needed"/>
                                 </CheckBox>
                                 <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}"  Margin="0,8,0,0" Width="326" Height="32" HorizontalAlignment="Left" SelectedIndex="{Binding LanguageSelectedIndex}">

+ 1 - 1
PDF Office/Views/Dialog/ConverterDialogs/ConverterHTMLDialog.xaml

@@ -30,7 +30,7 @@
                     <StackPanel Orientation="Vertical"  Margin="16,2,0,0">
                         <StackPanel Orientation="Vertical">
                             <TextBlock Text="Text Recognition Settings" HorizontalAlignment="Left"  Height="20"  Style="{StaticResource PropertyHeaderLv2}"/>
-                            <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" Padding="9,0,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}">
+                            <CheckBox Name="OCRCheckBox"  Margin="0,8,0,0" Padding="8,0,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}">
                                 <TextBlock Text="Recognize text if needed"/>
                             </CheckBox>
                             <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}"  Margin="0,8,0,0" Width="228"  Height="32" HorizontalAlignment="Left" SelectedIndex="{Binding LanguageSelectedIndex}">

+ 1 - 1
PDF Office/Views/Dialog/ConverterDialogs/ConverterPPTDialog.xaml

@@ -30,7 +30,7 @@
                     <StackPanel Orientation="Vertical"  Margin="16,2,0,0">
                         <StackPanel Orientation="Vertical">
                             <TextBlock Text="Text Recognition Settings" HorizontalAlignment="Left"  Style="{StaticResource PropertyHeaderLv2}" Height="20"/>
-                            <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" >
+                            <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" Padding="8,0,0,0">
                                 <TextBlock Text="Recognize text if needed"/>
                             </CheckBox>
                             <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}"  Margin="0,8,0,0" Width="228" Height="28.55" HorizontalAlignment="Left" SelectedIndex="{Binding LanguageSelectedIndex}">

+ 1 - 1
PDF Office/Views/Dialog/ConverterDialogs/ConverterRTFDialog.xaml

@@ -30,7 +30,7 @@
                     <StackPanel Orientation="Vertical"  Margin="16,2,0,0">
                         <StackPanel Orientation="Vertical">
                             <TextBlock Text="Text Recognition Settings" HorizontalAlignment="Left"  Style="{StaticResource PropertyHeaderLv2}" Height="20"/>
-                            <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" >
+                            <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" Padding="8,0,0,0">
                                 <TextBlock Text="Recognize text if needed"/>
                             </CheckBox>
                             <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}"  Margin="0,8,0,0" Width="228" Height="32" HorizontalAlignment="Left" SelectedIndex="{Binding LanguageSelectedIndex}">

+ 1 - 1
PDF Office/Views/Dialog/ConverterDialogs/ConverterTextDialog.xaml

@@ -30,7 +30,7 @@
                     <StackPanel Orientation="Vertical"  Margin="16,2,0,0">
                         <StackPanel Orientation="Vertical">
                             <TextBlock Text="Text Recognition Settings" HorizontalAlignment="Left"  Style="{StaticResource PropertyHeaderLv2}" Height="20"/>
-                            <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}">
+                            <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" Padding="8,0,0,0" >
                                 <TextBlock Text="Recognize text if needed"/>
                             </CheckBox>
                             <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}" Margin="0,8,0,0" Width="228" Height="32" HorizontalAlignment="Left" SelectedIndex="{Binding LanguageSelectedIndex}">

+ 7 - 7
PDF Office/Views/Dialog/ConverterDialogs/ConverterWordDialog.xaml

@@ -30,21 +30,21 @@
                     <StackPanel Orientation="Vertical" Margin="16,2,0,0">
                         <StackPanel Orientation="Vertical" HorizontalAlignment="Left">
                             <TextBlock Text="Layout Settings"  Style="{StaticResource PropertyHeaderLv2}" Height="20" HorizontalAlignment="Left"/>
-                            <StackPanel Orientation="Vertical" Margin="0,10,0,0">
+                            <StackPanel Orientation="Vertical" Margin="0,8,0,0">
                                 <RadioButton Name="FlowingTextRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=FlowingTextRadioBtn,Path=Name}" IsEnabled="False"  Style="{StaticResource RadioButtonStyleText}"
-                                Padding="9,0,0,0">
+                                Padding="8,0,0,0">
                                     <TextBlock Text="Retain Flowing Text"/>
                                 </RadioButton>
                                 <RadioButton  Margin="0,8,0,0" Name="PageLayoutRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=PageLayoutRadioBtn,Path=Name}" IsChecked="True"  Style="{StaticResource RadioButtonStyleText}"
-                                Padding="9,0,0,0">
+                                Padding="8,0,0,0">
                                     <TextBlock Text="Retain Page Layout"/>
                                 </RadioButton>
                             </StackPanel>
                         </StackPanel>
-                        <StackPanel Orientation="Vertical"  Margin="0,18,0,0">
+                        <StackPanel Orientation="Vertical"  Margin="0,16,0,0">
                             <StackPanel Orientation="Vertical">
                                 <TextBlock Text="Text Recognition Settings" HorizontalAlignment="Left"  Style="{StaticResource PropertyHeaderLv2}" Height="20"/>
-                                <CheckBox Name="OCRCheckBox"  Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}">
+                                <CheckBox Name="OCRCheckBox"  Margin="0,8,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" Padding="8,0,0,0">
                                     <TextBlock Text="Recognize text if needed"/>
                                 </CheckBox>
                                 <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}"  Margin="0,8,0,0" Width="228" Height="32" HorizontalAlignment="Left" SelectedIndex="{Binding LanguageSelectedIndex}">
@@ -55,9 +55,9 @@
                                     <ComboBoxItem Content="Korean"/>
                                 </ComboBox>
                             </StackPanel>
-                            <StackPanel Orientation="Vertical" Margin="0,18,0,0">
+                            <StackPanel Orientation="Vertical" Margin="0,16,0,0">
                                 <TextBlock Text="Page Range" Height="20"  Style="{StaticResource PropertyHeaderLv2}" HorizontalAlignment="Left"/>
-                                <cus:WritableComboBox x:Name="PageRangeComboBox" Margin="0,10,0,0" Width="228" Height="32" HorizontalAlignment="Left" IsCurrentPage="True" Text="{Binding PageRangeText, Mode=TwoWay}" MaxPageRange="{Binding MaxPageRange}"  SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}" Loaded="PageRangeComboBox_Loaded">
+                                <cus:WritableComboBox x:Name="PageRangeComboBox" Margin="0,8,0,0" Width="228" Height="32" HorizontalAlignment="Left" IsCurrentPage="True" Text="{Binding PageRangeText, Mode=TwoWay}" MaxPageRange="{Binding MaxPageRange}"  SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}" Loaded="PageRangeComboBox_Loaded">
                                     <i:Interaction.Triggers>
                                         <i:EventTrigger EventName="SelectionChanged">
                                             <i:InvokeCommandAction Command="{Binding CmbPageSelectionChanged}" CommandParameter="{Binding ElementName=ConverterPreview}" />

+ 5 - 5
PDF Office/Views/Dialog/ToolsDialogs/CompressDialogs/CompressDialog.xaml

@@ -14,17 +14,17 @@
         <cus:DialogContent.Content>
             <Grid Grid.Row="1" Width="436" Height="112">
                 <StackPanel>
-                    <RadioButton   Margin="0,0,0,16"  Command="{Binding LargeQualityCommand}" Style="{StaticResource RadioButtonStyleText}">
-                        <TextBlock Text="Large Fill Size" ></TextBlock>
+                    <RadioButton   Margin="0,0,0,8"  Command="{Binding LargeQualityCommand}" Style="{StaticResource RadioButtonStyleText}" FontSize="14" Height="22" >
+                        <TextBlock Text="Large Fill Size"  ></TextBlock>
                     </RadioButton>
 
-                    <RadioButton  Margin="0,0,0,16"  Command="{Binding StandardQualityCommand}" Style="{StaticResource RadioButtonStyleText}">
+                    <RadioButton  Margin="0,0,0,8"  Command="{Binding StandardQualityCommand}" Style="{StaticResource RadioButtonStyleText}" FontSize="14" Height="22">
                         <TextBlock Text="Standard File Size" ></TextBlock>
                     </RadioButton>
-                    <RadioButton  Margin="0,0,0,16"  Command="{Binding LittleQualityCommand}"  IsChecked="True" Style="{StaticResource RadioButtonStyleText}">
+                    <RadioButton  Margin="0,0,0,8"  Command="{Binding LittleQualityCommand}"  IsChecked="True" Style="{StaticResource RadioButtonStyleText}" FontSize="14" Height="22">
                         <TextBlock Text="Small File Size" ></TextBlock>
                     </RadioButton>
-                    <RadioButton  Margin="0,0,0,0"  Command="{Binding MicroQualityCommand}" Style="{StaticResource RadioButtonStyleText}">
+                    <RadioButton  Margin="0,0,0,0"  Command="{Binding MicroQualityCommand}" Style="{StaticResource RadioButtonStyleText}" FontSize="14" Height="22">
                         <TextBlock Text="Minimum File Size" ></TextBlock>
                     </RadioButton>
                 </StackPanel>