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)) {