style headers and footer
This commit is contained in:
parent
87e337cbeb
commit
fa2e814559
|
@ -8,10 +8,12 @@ namespace Bit.iOS.Core.Views
|
||||||
{
|
{
|
||||||
public override void WillDisplayHeaderView(UITableView tableView, UIView headerView, nint section)
|
public override void WillDisplayHeaderView(UITableView tableView, UIView headerView, nint section)
|
||||||
{
|
{
|
||||||
if(headerView != null && headerView is UITableViewHeaderFooterView hv)
|
if(headerView != null)
|
||||||
|
{
|
||||||
|
headerView.TintColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
|
headerView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
|
if(headerView is UITableViewHeaderFooterView hv)
|
||||||
{
|
{
|
||||||
hv.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
|
||||||
hv.TintColor = ThemeHelpers.ListHeaderBackgroundColor;
|
|
||||||
if(hv.BackgroundView != null)
|
if(hv.BackgroundView != null)
|
||||||
{
|
{
|
||||||
hv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
hv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
|
@ -22,13 +24,16 @@ namespace Bit.iOS.Core.Views
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public override void WillDisplayFooterView(UITableView tableView, UIView footerView, nint section)
|
public override void WillDisplayFooterView(UITableView tableView, UIView footerView, nint section)
|
||||||
{
|
{
|
||||||
if(footerView != null && footerView is UITableViewHeaderFooterView fv)
|
if(footerView != null)
|
||||||
|
{
|
||||||
|
footerView.TintColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
|
footerView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
|
if(footerView is UITableViewHeaderFooterView fv)
|
||||||
{
|
{
|
||||||
fv.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
|
||||||
fv.TintColor = ThemeHelpers.ListHeaderBackgroundColor;
|
|
||||||
if(fv.BackgroundView != null)
|
if(fv.BackgroundView != null)
|
||||||
{
|
{
|
||||||
fv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
fv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
|
@ -41,3 +46,4 @@ namespace Bit.iOS.Core.Views
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue