From 34cb578cf7f7f207a913db8d6e9db1fd58048912 Mon Sep 17 00:00:00 2001 From: phlpsong Date: Fri, 19 Jan 2024 10:37:03 +0800 Subject: [PATCH] fix: remove list row bg color --- Easydict/NewApp/View/SettingView/Tabs/DisabledAppTab.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Easydict/NewApp/View/SettingView/Tabs/DisabledAppTab.swift b/Easydict/NewApp/View/SettingView/Tabs/DisabledAppTab.swift index 3ba038389..5893730ef 100644 --- a/Easydict/NewApp/View/SettingView/Tabs/DisabledAppTab.swift +++ b/Easydict/NewApp/View/SettingView/Tabs/DisabledAppTab.swift @@ -167,12 +167,6 @@ struct BlockAppItemView: View { @EnvironmentObject var disabledAppViewModel: DisabledAppViewModel - private var listRowBgColor: Color { - disabledAppViewModel.selectedAppModels.contains { - $0.appBundleID == appFetcher.appModel.appBundleID - } ? Color("service_cell_highlight") : .clear - } - init(with appModel: EZAppModel) { _appFetcher = StateObject(wrappedValue: AppFetcher(appModel: appModel)) } @@ -190,7 +184,6 @@ struct BlockAppItemView: View { } .frame(maxWidth: .infinity) .contentShape(Rectangle()) - .listRowBackground(listRowBgColor) .padding(.vertical, 4) .padding(.leading, 6) .task {