Skip to content

Commit

Permalink
perf: adjust custom color name
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Jan 19, 2024
1 parent 2187752 commit d7dbab7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Easydict/NewApp/View/SettingView/Tabs/DisabledAppTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct DisabledAppTab: View {
.clipShape(RoundedRectangle(cornerRadius: 8))
.overlay(content: {
RoundedRectangle(cornerRadius: 8)
.stroke(Color("setting_list_border"), lineWidth: 0.5)
.stroke(Color("list_border_color"), lineWidth: 0.5)
})
.padding(.bottom)
.padding(.horizontal, 35)
Expand Down Expand Up @@ -148,7 +148,7 @@ private struct ListToolbar: View {
.padding(2)
}
.frame(height: 28)
.background(Color("setting_add_minus_bg"))
.background(Color("add_minus_bg_color"))
}
}

Expand All @@ -164,9 +164,11 @@ private struct ListButton: View {
Image(systemName: imageName)
.resizable()
.scaledToFit()
.frame(width: 12, height: 12)
.frame(width: 10, height: 10)
.padding(6)
.contentShape(Rectangle())
.foregroundStyle(Color(.secondaryLabelColor))
.font(.system(size: 14, weight: .semibold))
}
.buttonStyle(BorderlessButtonStyle())
}
Expand Down
2 changes: 1 addition & 1 deletion Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private struct ServiceItemView: View {
.listRowSeparator(.hidden)
.listRowInsets(.init())
.padding(10)
.listRowBackground(viewModel.selectedService == service ? Color("service_cell_highlight") : tableColor)
.listRowBackground(viewModel.selectedService == service ? Color("service_cell_highlight_color") : tableColor)
.overlay {
TapHandler {
viewModel.selectedService = service
Expand Down

0 comments on commit d7dbab7

Please sign in to comment.