misc: background color

This commit is contained in:
mrFq1
2023-05-24 00:20:14 +08:00
parent ff83020c00
commit 7fabbe2394
5 changed files with 4 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ struct ConnectionsView: View {
CollectionsTableView(data: data.conns, CollectionsTableView(data: data.conns,
filterString: searchString) filterString: searchString)
.background(.white) .background(Color(nsColor: .textBackgroundColor))
.searchable(text: $searchString) .searchable(text: $searchString)

View File

@@ -44,7 +44,6 @@ struct LogsView: View {
.width(min: 40, max: 65) .width(min: 40, max: 65)
TableColumn("", value: \.log) TableColumn("", value: \.log)
} }
.background(.white)
.searchable(text: $searchString) .searchable(text: $searchString)
} }
} }

View File

@@ -24,7 +24,7 @@ struct OverviewTopItemView: View {
} }
.frame(width: 125) .frame(width: 125)
.padding(EdgeInsets(top: 10, leading: 13, bottom: 10, trailing: 13)) .padding(EdgeInsets(top: 10, leading: 13, bottom: 10, trailing: 13))
.background(.white) .background(Color(nsColor: .textBackgroundColor))
.cornerRadius(10) .cornerRadius(10)
} }
} }

View File

@@ -70,7 +70,7 @@ struct ProviderProxiesView: View {
proxy: proxy, proxy: proxy,
selectable: false selectable: false
) )
.background(.white) .background(Color(nsColor: .textBackgroundColor))
.cornerRadius(8) .cornerRadius(8)
} }
} }

View File

@@ -100,7 +100,7 @@ struct ProxyGroupView: View {
proxy: proxy, proxy: proxy,
selectable: selectable selectable: selectable
) )
.background(proxyGroup.now == proxy.name ? Color.teal : Color.white) .background(proxyGroup.now == proxy.name ? Color.pink.opacity(0.3) : Color(nsColor: .textBackgroundColor))
.cornerRadius(8) .cornerRadius(8)
.onTapGesture { .onTapGesture {
let item = proxy let item = proxy