feat(ios): + 号图标替换为自定义 SVG
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
0b2aafe045
commit
cb5e49de12
1
AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/Contents.json
vendored
Normal file
1
AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/Contents.json
vendored
Normal 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}}
|
||||||
1
AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/icon-plus.svg
vendored
Normal file
1
AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-plus.imageset/icon-plus.svg
vendored
Normal 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 |
@ -18,7 +18,7 @@ struct LibraryHomeView: View {
|
|||||||
.overlay(RoundedRectangle(cornerRadius: 10).stroke(Color.zxBorder008, lineWidth: 1))
|
.overlay(RoundedRectangle(cornerRadius: 10).stroke(Color.zxBorder008, lineWidth: 1))
|
||||||
}.accessibilityLabel("搜索知识库")
|
}.accessibilityLabel("搜索知识库")
|
||||||
NavigationLink(value: Route.libraryCreate) {
|
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))
|
.frame(width: 36, height: 36).background(ZXGradient.brand).clipShape(RoundedRectangle(cornerRadius: 10))
|
||||||
}.accessibilityLabel("创建新知识库")
|
}.accessibilityLabel("创建新知识库")
|
||||||
}.padding(.horizontal, 20).padding(.top, 8).padding(.bottom, 12)
|
}.padding(.horizontal, 20).padding(.top, 8).padding(.bottom, 12)
|
||||||
|
|||||||
@ -272,7 +272,7 @@ struct LibraryDetailPage: View {
|
|||||||
}
|
}
|
||||||
ToolbarItem(placement: .topBarTrailing) {
|
ToolbarItem(placement: .topBarTrailing) {
|
||||||
NavigationLink(value: Route.addKnowledge(knowledgeBaseId: knowledgeBaseId)) {
|
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) {
|
ToolbarItem(placement: .topBarTrailing) {
|
||||||
|
|||||||
@ -33,7 +33,7 @@ struct QuizListView: View {
|
|||||||
Button {
|
Button {
|
||||||
Task { await generateQuiz() }
|
Task { await generateQuiz() }
|
||||||
} label: {
|
} 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)
|
}.disabled(isGenerating)
|
||||||
ForEach(quizzes) { q in
|
ForEach(quizzes) { q in
|
||||||
NavigationLink(value: Route.quizTake(quizId: q.id)) {
|
NavigationLink(value: Route.quizTake(quizId: q.id)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user