fix(ios): 加号/垃圾桶图标尺寸放大 + 加号颜色统一

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-05-30 13:32:10 +08:00
parent 92f191c294
commit 70b9ee1250
3 changed files with 6 additions and 6 deletions

View File

@ -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("icon-plus").resizable().scaledToFit().frame(width: 14, height: 14).foregroundColor(.white) Image("icon-plus").resizable().scaledToFit().frame(width: 18, height: 18).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)

View File

@ -224,7 +224,7 @@ struct LibraryDetailPage: View {
Button { Button {
Task { await deleteSource(src) } Task { await deleteSource(src) }
} label: { } label: {
Image("icon-trash").resizable().scaledToFit().frame(width: 16, height: 16).foregroundColor(Color.zxF03) Image("icon-trash").resizable().scaledToFit().frame(width: 18, height: 18).foregroundColor(Color.zxF03)
} }
} }
.padding(12).background(Color.zxFill003).clipShape(RoundedRectangle(cornerRadius: 14)) .padding(12).background(Color.zxFill003).clipShape(RoundedRectangle(cornerRadius: 14))
@ -256,14 +256,14 @@ struct LibraryDetailPage: View {
Button { Button {
showBatchDeleteConfirm = true showBatchDeleteConfirm = true
} label: { } label: {
Image("icon-trash").resizable().scaledToFit().frame(width: 16, height: 16).foregroundColor(selectedIds.isEmpty ? Color.zxF03 : Color.zxCoral) Image("icon-trash").resizable().scaledToFit().frame(width: 18, height: 18).foregroundColor(selectedIds.isEmpty ? Color.zxF03 : Color.zxCoral)
} }
.disabled(selectedIds.isEmpty) .disabled(selectedIds.isEmpty)
} }
} else { } else {
ToolbarItem(placement: .topBarLeading) { ToolbarItem(placement: .topBarLeading) {
Button { showDeleteConfirm = true } label: { Button { showDeleteConfirm = true } label: {
Image("icon-trash").resizable().scaledToFit().frame(width: 16, height: 16).foregroundColor(Color.zxF03) Image("icon-trash").resizable().scaledToFit().frame(width: 18, height: 18).foregroundColor(Color.zxF03)
} }
} }
ToolbarItem(placement: .topBarTrailing) { ToolbarItem(placement: .topBarTrailing) {
@ -273,7 +273,7 @@ struct LibraryDetailPage: View {
} }
ToolbarItem(placement: .topBarTrailing) { ToolbarItem(placement: .topBarTrailing) {
NavigationLink(value: Route.addKnowledge(knowledgeBaseId: knowledgeBaseId)) { NavigationLink(value: Route.addKnowledge(knowledgeBaseId: knowledgeBaseId)) {
Image("icon-plus").resizable().scaledToFit().frame(width: 14, height: 14).foregroundColor(Color.zxPrimary) Image("icon-plus").resizable().scaledToFit().frame(width: 18, height: 18).foregroundColor(Color.zxF05)
} }
} }
ToolbarItem(placement: .topBarTrailing) { ToolbarItem(placement: .topBarTrailing) {

View File

@ -33,7 +33,7 @@ struct QuizListView: View {
Button { Button {
Task { await generateQuiz() } Task { await generateQuiz() }
} label: { } label: {
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)) HStack { Image("icon-plus").resizable().scaledToFit().frame(width: 16, height: 16); 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)) {