mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 21:33:36 +00:00
try color header bg again
This commit is contained in:
@@ -8,21 +8,35 @@ 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 && hv.TextLabel != null)
|
if(headerView != null && headerView is UITableViewHeaderFooterView hv)
|
||||||
{
|
{
|
||||||
hv.TextLabel.TextColor = ThemeHelpers.MutedColor;
|
hv.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
hv.TintColor = ThemeHelpers.ListHeaderBackgroundColor;
|
hv.TintColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
hv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
if(hv.BackgroundView != null)
|
||||||
|
{
|
||||||
|
hv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
|
}
|
||||||
|
if(hv.TextLabel != null)
|
||||||
|
{
|
||||||
|
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 && footerView is UITableViewHeaderFooterView fv && fv.TextLabel != null)
|
if(footerView != null && footerView is UITableViewHeaderFooterView fv)
|
||||||
{
|
{
|
||||||
fv.TextLabel.TextColor = ThemeHelpers.MutedColor;
|
fv.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
fv.TintColor = ThemeHelpers.ListHeaderBackgroundColor;
|
fv.TintColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
fv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
if(fv.BackgroundView != null)
|
||||||
|
{
|
||||||
|
fv.BackgroundView.BackgroundColor = ThemeHelpers.ListHeaderBackgroundColor;
|
||||||
|
}
|
||||||
|
if(fv.TextLabel != null)
|
||||||
|
{
|
||||||
|
fv.TextLabel.TextColor = ThemeHelpers.MutedColor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user