From 9a6b56e42dc239191bee8bc7bcf581ebe4062349 Mon Sep 17 00:00:00 2001 From: AlexXiong Date: Fri, 15 Mar 2024 08:25:07 +0800 Subject: [PATCH] feat: [JIRA: HCPSDKFIORIUIKIT-2508] [New Color System] Sort & Filter Form (#663) --- .../Views/SortFilter/SortFilterView+View.swift | 2 ++ .../Views/SortFilter/_SortFilterCFGItemContainer.swift | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/FioriSwiftUICore/Views/SortFilter/SortFilterView+View.swift b/Sources/FioriSwiftUICore/Views/SortFilter/SortFilterView+View.swift index 7d87c90e5..b679d42de 100644 --- a/Sources/FioriSwiftUICore/Views/SortFilter/SortFilterView+View.swift +++ b/Sources/FioriSwiftUICore/Views/SortFilter/SortFilterView+View.swift @@ -1,3 +1,4 @@ +import FioriThemeManager import SwiftUI extension Fiori { @@ -75,6 +76,7 @@ extension SortFilterView: View { _items .environmentObject(context) } + .background(Color.preferredColor(.chromeSecondary)) } } diff --git a/Sources/FioriSwiftUICore/Views/SortFilter/_SortFilterCFGItemContainer.swift b/Sources/FioriSwiftUICore/Views/SortFilter/_SortFilterCFGItemContainer.swift index 3b7d7c74e..b56a20a22 100644 --- a/Sources/FioriSwiftUICore/Views/SortFilter/_SortFilterCFGItemContainer.swift +++ b/Sources/FioriSwiftUICore/Views/SortFilter/_SortFilterCFGItemContainer.swift @@ -47,8 +47,9 @@ extension _SortFilterCFGItemContainer: View { .background(Color.preferredColor(.secondaryGroupedBackground)) } } - .background(Color.preferredColor(.secondaryBackground)) + .background(Color.preferredColor(.primaryGroupedBackground)) } + .background(Color.preferredColor(.primaryGroupedBackground)) .onChange(of: self._items) { _ in self.checkUpdateButtonState() }