feat(ios): + 号图标替换为自定义 SVG

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-05-30 09:29:25 +08:00
parent 0b2aafe045
commit cb5e49de12
5 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1 @@
{"images":[{"filename":"icon-plus.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"template-rendering-intent":"template","preserves-vector-representation":true}}

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12 5.25C12.4142 5.25 12.75 5.58579 12.75 6L12.75 18C12.75 18.4142 12.4142 18.75 12 18.75C11.5858 18.75 11.25 18.4142 11.25 18L11.25 6C11.25 5.58579 11.5858 5.25 12 5.25Z" fill-rule="evenodd" fill="#AEAEAE"></path><path d="M5.25 12C5.25 11.5858 5.58579 11.25 6 11.25L18 11.25C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75L6 12.75C5.58579 12.75 5.25 12.4142 5.25 12Z" fill-rule="evenodd" fill="#000000"></path></svg>

After

Width:  |  Height:  |  Size: 591 B

View File

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

View File

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

View File

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