mirror of
https://github.com/bitwarden/android.git
synced 2026-05-22 14:11:47 -05:00
26 lines
835 B
C#
26 lines
835 B
C#
using Bit.iOS.Core.Utilities;
|
|
using System;
|
|
using UIKit;
|
|
|
|
namespace Bit.iOS.Core.Views
|
|
{
|
|
public abstract class ExtendedUITableViewSource : UITableViewSource
|
|
{
|
|
public override void WillDisplayHeaderView(UITableView tableView, UIView headerView, nint section)
|
|
{
|
|
if(headerView != null && headerView is UITableViewHeaderFooterView hv && hv.TextLabel != null)
|
|
{
|
|
hv.TextLabel.TextColor = ThemeHelpers.MutedColor;
|
|
}
|
|
}
|
|
|
|
public override void WillDisplayFooterView(UITableView tableView, UIView footerView, nint section)
|
|
{
|
|
if(footerView != null && footerView is UITableViewHeaderFooterView fv && fv.TextLabel != null)
|
|
{
|
|
fv.TextLabel.TextColor = ThemeHelpers.MutedColor;
|
|
}
|
|
}
|
|
}
|
|
}
|