From 3e51ff46f31be102e1fa55bdfaecc4cdcad62ae2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 2 Jul 2019 23:31:52 -0400 Subject: [PATCH] forget bg colors :( --- .../Controllers/ExtendedUITableViewSource.cs | 30 ++++--------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/src/iOS.Core/Controllers/ExtendedUITableViewSource.cs b/src/iOS.Core/Controllers/ExtendedUITableViewSource.cs index ef6246abd..5f1170d9c 100644 --- a/src/iOS.Core/Controllers/ExtendedUITableViewSource.cs +++ b/src/iOS.Core/Controllers/ExtendedUITableViewSource.cs @@ -8,40 +8,22 @@ namespace Bit.iOS.Core.Views { public override void WillDisplayHeaderView(UITableView tableView, UIView headerView, nint section) { - if(headerView != null) + if(headerView != null && headerView is UITableViewHeaderFooterView hv) { - headerView.TintColor = ThemeHelpers.ListHeaderBackgroundColor; - headerView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor; - if(headerView is UITableViewHeaderFooterView hv) + if(hv.TextLabel != null) { - if(hv.BackgroundView != null) - { - hv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor; - } - if(hv.TextLabel != null) - { - hv.TextLabel.TextColor = ThemeHelpers.MutedColor; - } + hv.TextLabel.TextColor = ThemeHelpers.MutedColor; } } } public override void WillDisplayFooterView(UITableView tableView, UIView footerView, nint section) { - if(footerView != null) + if(footerView != null && footerView is UITableViewHeaderFooterView fv) { - footerView.TintColor = ThemeHelpers.ListHeaderBackgroundColor; - footerView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor; - if(footerView is UITableViewHeaderFooterView fv) + if(fv.TextLabel != null) { - if(fv.BackgroundView != null) - { - fv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor; - } - if(fv.TextLabel != null) - { - fv.TextLabel.TextColor = ThemeHelpers.MutedColor; - } + fv.TextLabel.TextColor = ThemeHelpers.MutedColor; } } }