From cb5e49de123d0e922c294e5c25c38e4146cd0adf Mon Sep 17 00:00:00 2001 From: wangdl Date: Sat, 30 May 2026 09:29:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(ios):=20+=20=E5=8F=B7=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E4=B8=BA=E8=87=AA=E5=AE=9A=E4=B9=89=20SVG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .../Assets.xcassets/Icons/icon-plus.imageset/Contents.json | 1 + .../Assets.xcassets/Icons/icon-plus.imageset/icon-plus.svg | 1 + AIStudyApp/AIStudyApp/Features/Library/LibraryHomeView.swift | 2 +- AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift | 2 +- AIStudyApp/AIStudyApp/Features/Quiz/QuizViews.swift | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/Contents.json create mode 100644 AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/icon-plus.svg diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/Contents.json b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/Contents.json new file mode 100644 index 0000000..a9ad7a7 --- /dev/null +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/Contents.json @@ -0,0 +1 @@ +{"images":[{"filename":"icon-plus.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"template-rendering-intent":"template","preserves-vector-representation":true}} diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/icon-plus.svg b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/icon-plus.svg new file mode 100644 index 0000000..a7096a7 --- /dev/null +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/icon-plus.svg @@ -0,0 +1 @@ + diff --git a/AIStudyApp/AIStudyApp/Features/Library/LibraryHomeView.swift b/AIStudyApp/AIStudyApp/Features/Library/LibraryHomeView.swift index cd98a0b..ae5fc9c 100644 --- a/AIStudyApp/AIStudyApp/Features/Library/LibraryHomeView.swift +++ b/AIStudyApp/AIStudyApp/Features/Library/LibraryHomeView.swift @@ -18,7 +18,7 @@ struct LibraryHomeView: View { .overlay(RoundedRectangle(cornerRadius: 10).stroke(Color.zxBorder008, lineWidth: 1)) }.accessibilityLabel("搜索知识库") NavigationLink(value: Route.libraryCreate) { - Image(systemName: "plus").font(.system(size: 18)).foregroundColor(.white) + Image("icon-plus").resizable().scaledToFit().frame(width: 14, height: 14).foregroundColor(.white) .frame(width: 36, height: 36).background(ZXGradient.brand).clipShape(RoundedRectangle(cornerRadius: 10)) }.accessibilityLabel("创建新知识库") }.padding(.horizontal, 20).padding(.top, 8).padding(.bottom, 12) diff --git a/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift b/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift index eca540c..20bdcd5 100644 --- a/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift +++ b/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift @@ -272,7 +272,7 @@ struct LibraryDetailPage: View { } ToolbarItem(placement: .topBarTrailing) { NavigationLink(value: Route.addKnowledge(knowledgeBaseId: knowledgeBaseId)) { - Image(systemName: "plus").font(.system(size: 16, weight: .semibold)).foregroundColor(Color.zxPrimary) + Image("icon-plus").resizable().scaledToFit().frame(width: 14, height: 14).foregroundColor(Color.zxPrimary) } } ToolbarItem(placement: .topBarTrailing) { diff --git a/AIStudyApp/AIStudyApp/Features/Quiz/QuizViews.swift b/AIStudyApp/AIStudyApp/Features/Quiz/QuizViews.swift index f1b066e..d7a463c 100644 --- a/AIStudyApp/AIStudyApp/Features/Quiz/QuizViews.swift +++ b/AIStudyApp/AIStudyApp/Features/Quiz/QuizViews.swift @@ -33,7 +33,7 @@ struct QuizListView: View { Button { Task { await generateQuiz() } } label: { - HStack { Image(systemName: "plus"); Text("生成新测验") }.font(.system(size: 14, weight: .medium)).foregroundColor(Color.zxPrimary).frame(maxWidth: .infinity).frame(height: 44).background(Color.zxPrimarySoft).clipShape(RoundedRectangle(cornerRadius: 12)) + HStack { Image("icon-plus").resizable().scaledToFit().frame(width: 14, height: 14); Text("生成新测验") }.font(.system(size: 14, weight: .medium)).foregroundColor(Color.zxPrimary).frame(maxWidth: .infinity).frame(height: 44).background(Color.zxPrimarySoft).clipShape(RoundedRectangle(cornerRadius: 12)) }.disabled(isGenerating) ForEach(quizzes) { q in NavigationLink(value: Route.quizTake(quizId: q.id)) {