Skip to content

Commit 424fbd9

Browse files
committed
Fix wrong setting background in search results
1 parent c2bcc87 commit 424fbd9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/SettingSearchResult.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public struct SettingSearchResult {
2323
}
2424

2525
public struct SettingSearchResultView: View {
26-
@Environment(\.settingSecondaryBackgroundColor) var settingSecondaryBackgroundColor
26+
@Environment(\.settingBackgroundColor) var settingBackgroundColor
2727

2828
public var searchResult: SettingSearchResult
2929
public var spacing = CGFloat(20)
@@ -52,7 +52,7 @@ public struct SettingSearchResultView: View {
5252
.frame(maxWidth: .infinity, alignment: .leading)
5353
.padding(.vertical, verticalPadding)
5454
}
55-
.background(backgroundColor ?? settingSecondaryBackgroundColor)
55+
.background(backgroundColor ?? settingBackgroundColor)
5656
}
5757

5858
@ViewBuilder func content(section: SettingSearchResult.Section) -> some View {

0 commit comments

Comments
 (0)