Reskin:Create [RiotDesignValues applyStyleOnSearchBar:] and use it

This commit is contained in:
manuroe
2018-11-30 15:56:10 +01:00
parent b7e8c97efc
commit 5e1ad8dc48
11 changed files with 34 additions and 18 deletions
@@ -166,11 +166,10 @@
self.recentsTableView.backgroundColor = kRiotPrimaryBgColor;
topview.backgroundColor = kRiotSecondaryBgColor;
self.view.backgroundColor = kRiotPrimaryBgColor;
tableSearchBar.barStyle = self.recentsSearchBar.barStyle = kRiotDesignSearchBarStyle;
tableSearchBar.tintColor = self.recentsSearchBar.tintColor = kRiotDesignSearchBarTintColor;
tableSearchBar.barTintColor = self.recentsSearchBar.barTintColor = kRiotDesignSearchBarBarTintColor;
[RiotDesignValues applyStyleOnSearchBar:tableSearchBar];
[RiotDesignValues applyStyleOnSearchBar:self.recentsSearchBar];
if (self.recentsTableView.dataSource)
{
// Force table refresh