Bladeren bron

主页-UI间距优化

liyijie 1 jaar geleden
bovenliggende
commit
39c0354c09

+ 26 - 0
PDF Office/ViewModels/HomePanel/ChatGPTAI/ChatGPTAITranslationContentViewModel.cs

@@ -10,6 +10,7 @@ using System.Collections.Generic;
 using System.IO;
 using System.Linq;
 using System.Threading.Tasks;
+using System.Windows;
 
 namespace PDF_Master.ViewModels.HomePanel.ChatGPTAI
 {
@@ -44,6 +45,31 @@ namespace PDF_Master.ViewModels.HomePanel.ChatGPTAI
             }
         }
 
+        private Visibility errorTipVisible=Visibility.Collapsed;
+        public Visibility ErrorTipVisible
+        {
+            get
+            {
+                return errorTipVisible;
+            }
+            set
+            {
+                SetProperty(ref errorTipVisible, value);
+            }
+        }
+
+        private string errorTipText = "The uploaded file cannot exceed 10MB";
+        public string ErrorTipText
+        {
+            get
+            {
+                return errorTipText;
+            }
+            set
+            {
+                SetProperty(ref errorTipText, value);
+            }
+        }
         public static List<string> FromlanguageFamily { set; get; } = new List<string>();
         private void GetFromlanguageOrigin()
         {

+ 1 - 1
PDF Office/Views/HomePanel/ChatGPTAI/ChatGPTAIErrorCorrectionContent.xaml

@@ -27,7 +27,7 @@
         <StackPanel Grid.Row="0">
             <Grid  >
                 <StackPanel HorizontalAlignment="Left">
-                    <TextBlock Text="AI Error Correction" FontFamily="Segoe UI"
+                    <TextBlock Text="AI Error Correction" FontFamily="Segoe UI" Margin="0,16,0,0"
             FontSize="20"
             FontWeight="Bold"
             Foreground="{StaticResource color.sys.text.neutral.lv1}" Height="28" HorizontalAlignment="Left"></TextBlock>

+ 1 - 1
PDF Office/Views/HomePanel/ChatGPTAI/ChatGPTAIRewritingContent.xaml

@@ -27,7 +27,7 @@
         <StackPanel Grid.Row="0">
             <Grid  >
                 <StackPanel HorizontalAlignment="Left">
-                    <TextBlock Text="AI Rewriting" FontFamily="Segoe UI"
+                    <TextBlock Text="AI Rewriting" FontFamily="Segoe UI" Margin="0,16,0,0"
             FontSize="20"
             FontWeight="Bold"
             Foreground="{StaticResource color.sys.text.neutral.lv1}" Height="28" HorizontalAlignment="Left"></TextBlock>

File diff suppressed because it is too large
+ 35 - 24
PDF Office/Views/HomePanel/ChatGPTAI/ChatGPTAITranslationContent.xaml


+ 2 - 2
PDF Office/Views/HomePanel/PDFTools/HomeFilesContent.xaml

@@ -20,7 +20,7 @@
             <ColumnDefinition Width="328*"/>
         </Grid.ColumnDefinitions>
         <StackPanel Grid.Column="0">
-            <TextBlock Text="Open PDF Files" FontFamily="Segoe UI"
+            <TextBlock Text="Open PDF Files" FontFamily="Segoe UI" Margin="0,16,0,0"
             FontSize="20"
             FontWeight="Bold"
             Foreground="{StaticResource color.sys.text.neutral.lv1}" Height="28"></TextBlock>
@@ -61,7 +61,7 @@ Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, P
             </Border>
         </StackPanel>
         <StackPanel Grid.Column="2">
-            <TextBlock Text="Open PDF Files" FontFamily="Creat PDF"
+            <TextBlock Text="Open PDF Files" FontFamily="Creat PDF" Margin="0,16,0,0"
             FontSize="20"
             FontWeight="Bold"
             Foreground="{StaticResource color.sys.text.neutral.lv1}" Height="28"></TextBlock>