mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 18:38:27 +03:00
forget bg colors :(
This commit is contained in:
parent
fa2e814559
commit
3e51ff46f3
1 changed files with 6 additions and 24 deletions
|
@ -8,36 +8,19 @@ 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)
|
if(headerView != null && headerView is UITableViewHeaderFooterView hv)
|
||||||
{
|
{
|
||||||
headerView.TintColor = ThemeHelpers.ListHeaderBackgroundColor;
|
|
||||||
headerView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
|
||||||
if(headerView is UITableViewHeaderFooterView hv)
|
|
||||||
{
|
|
||||||
if(hv.BackgroundView != null)
|
|
||||||
{
|
|
||||||
hv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
|
||||||
}
|
|
||||||
if(hv.TextLabel != null)
|
if(hv.TextLabel != null)
|
||||||
{
|
{
|
||||||
hv.TextLabel.TextColor = ThemeHelpers.MutedColor;
|
hv.TextLabel.TextColor = ThemeHelpers.MutedColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public override void WillDisplayFooterView(UITableView tableView, UIView footerView, nint section)
|
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.BackgroundView != null)
|
|
||||||
{
|
|
||||||
fv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
|
||||||
}
|
|
||||||
if(fv.TextLabel != null)
|
if(fv.TextLabel != null)
|
||||||
{
|
{
|
||||||
fv.TextLabel.TextColor = ThemeHelpers.MutedColor;
|
fv.TextLabel.TextColor = ThemeHelpers.MutedColor;
|
||||||
|
@ -46,4 +29,3 @@ namespace Bit.iOS.Core.Views
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue