AI界面优化
authorluozheng <1732036298@qq.com>
Wed, 25 Jun 2025 01:51:54 +0000 (09:51 +0800)
committerluozheng <1732036298@qq.com>
Wed, 25 Jun 2025 01:51:54 +0000 (09:51 +0800)
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceBluetoothFailedStartView.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceView.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceConnectTimeoutView.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceMobileDataFailedStartView.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceReturnResultTextView.cpp

index 42f9829..d0a36eb 100644 (file)
@@ -90,9 +90,9 @@ namespace OHOS
         label->SetStyle(STYLE_TEXT_FONT, labelconfig.fontSize);
         label->SetStyle(STYLE_LINE_HEIGHT, labelconfig.lineHeigh);
         //TOOD: 待优化
-        if(labelconfig.textId == STR_DEEPSEEK) {
-            label->SetText("DeepSeek");
-        } else
+        // if(labelconfig.textId == STR_DEEPSEEK) {
+        //     label->SetText("DeepSeek");
+        // } else
             label->SetTextId(labelconfig.textId);
         label->SetLineBreakMode(labelconfig.lineBreakMode);
         label->SetRollSpeed(23);
@@ -278,15 +278,15 @@ namespace OHOS
     {
         if (title)
         {
-            if(textId == STR_DEEPSEEK) 
-            {
-                title->SetText("DeepSeek");
-            } 
-            else 
-            {
+            // if(textId == STR_DEEPSEEK) 
+            // {
+            //     title->SetText("DeepSeek");
+            // } 
+            // else 
+            // {
             title->SetTextId(textId);
             title->ForceResetText();
-            }
+            // }
         }
     }
 
index f7aa2a0..7792bcc 100644 (file)
@@ -168,12 +168,12 @@ namespace OHOS
         label->SetPosition(labelconfig.left, labelconfig.top, labelconfig.width, labelconfig.height);
         label->SetStyle(STYLE_TEXT_FONT, labelconfig.fontSize);
         label->SetStyle(STYLE_LINE_HEIGHT, labelconfig.lineHeigh);
-        // TOOD: 待优化
-        if (labelconfig.textId == STR_DEEPSEEK)
-        {
-            label->SetText("DeepSeek");
-        }
-        else
+        // // TOOD: 待优化
+        // if (labelconfig.textId == STR_DEEPSEEK)
+        // {
+        //     label->SetText("DeepSeek");
+        // }
+        // else
             label->SetTextId(labelconfig.textId);
         label->SetLineBreakMode(labelconfig.lineBreakMode);
         label->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
@@ -1029,15 +1029,15 @@ namespace OHOS
         int textId = AiVoiceModel::GetInstance().GetAiModelTextId();
         if (title)
         {
-            if (textId == STR_DEEPSEEK)
-            {
-                title->SetText("DeepSeek");
-            }
-            else
-            {
+            // if (textId == STR_DEEPSEEK)
+            // {
+            //     title->SetText("DeepSeek");
+            // }
+            // else
+            // {
                 title->SetTextId(textId);
                 title->ForceResetText();
-            }
+            // }
         }
         if (aiModelImage)
         {
index babb779..f831ec6 100644 (file)
@@ -82,9 +82,9 @@ namespace OHOS
         label->SetStyle(STYLE_TEXT_FONT, labelconfig.fontSize);
         label->SetStyle(STYLE_LINE_HEIGHT, labelconfig.lineHeigh);
         //TOOD: 待优化
-        if(labelconfig.textId == STR_DEEPSEEK) {
-            label->SetText("DeepSeek");
-        } else
+        // if(labelconfig.textId == STR_DEEPSEEK) {
+        //     label->SetText("DeepSeek");
+        // } else
             label->SetTextId(labelconfig.textId);
         label->SetLineBreakMode(labelconfig.lineBreakMode);
         label->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
@@ -269,15 +269,15 @@ namespace OHOS
     {
         if (title)
         {
-            if(textId == STR_DEEPSEEK) 
-            {
-                title->SetText("DeepSeek");
-            } 
-            else 
-            {
+            // if(textId == STR_DEEPSEEK) 
+            // {
+            //     title->SetText("DeepSeek");
+            // } 
+            // else 
+            // {
             title->SetTextId(textId);
             title->ForceResetText();
-            }
+            // }
         }
     }
 
index 554cab8..100c7f7 100644 (file)
@@ -90,9 +90,9 @@ namespace OHOS
         label->SetStyle(STYLE_TEXT_FONT, labelconfig.fontSize);
         label->SetStyle(STYLE_LINE_HEIGHT, labelconfig.lineHeigh);
         //TOOD: 待优化
-        if(labelconfig.textId == STR_DEEPSEEK) {
-            label->SetText("DeepSeek");
-        } else
+        // if(labelconfig.textId == STR_DEEPSEEK) {
+        //     label->SetText("DeepSeek");
+        // } else
             label->SetTextId(labelconfig.textId);
         label->SetLineBreakMode(labelconfig.lineBreakMode);
         label->SetRollSpeed(23);
@@ -279,15 +279,15 @@ namespace OHOS
     {
         if (title)
         {
-            if(textId == STR_DEEPSEEK) 
-            {
-                title->SetText("DeepSeek");
-            } 
-            else 
-            {
+            // if(textId == STR_DEEPSEEK) 
+            // {
+            //     title->SetText("DeepSeek");
+            // } 
+            // else 
+            // {
             title->SetTextId(textId);
             title->ForceResetText();
-            }
+            // }
         }
     }
 }
\ No newline at end of file
index 0d5611b..6f01410 100644 (file)
@@ -127,9 +127,9 @@ namespace OHOS
         label->SetStyle(STYLE_TEXT_FONT, labelconfig.fontSize);
         label->SetStyle(STYLE_LINE_HEIGHT, labelconfig.lineHeight);
         //TOOD: 待优化
-        if(labelconfig.textId == STR_DEEPSEEK) {
-            label->SetText("DeepSeek");
-        } else
+        // if(labelconfig.textId == STR_DEEPSEEK) {
+        //     label->SetText("DeepSeek");
+        // } else
             label->SetTextId(labelconfig.textId);
         label->SetLineBreakMode(labelconfig.lineBreakMode);
         label->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
@@ -353,15 +353,15 @@ namespace OHOS
     {
         if (title)
         {
-            if(textId == STR_DEEPSEEK) 
-            {
-                title->SetText("DeepSeek");
-            } 
-            else 
-            {
+            // if(textId == STR_DEEPSEEK)
+            // {
+            //     title->SetText("DeepSeek");
+            // } 
+            // else 
+            // {
             title->SetTextId(textId);
             title->ForceResetText();
-            }
+            // }
         }
     }