mirror of
https://github.com/bitwarden/android.git
synced 2026-05-24 07:01:26 -05:00
ios app extension theming
This commit is contained in:
25
src/iOS.Core/Controllers/ExtendedUITableViewSource.cs
Normal file
25
src/iOS.Core/Controllers/ExtendedUITableViewSource.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user