VectorDesignValues: Load Vector colors at the app load time for the life of the app

This commit is contained in:
manuroe
2016-02-05 15:21:00 +01:00
parent 314f9547d1
commit 485f79b51e
29 changed files with 132 additions and 93 deletions
@@ -734,7 +734,7 @@
}];
leaveAction.backgroundColor = [MXKTools convertImageToPatternColor:@"remove_icon" backgroundColor:VECTOR_LIGHT_GRAY_COLOR patternSize:CGSizeMake(74, 74) resourceSize:CGSizeMake(30, 30)];
leaveAction.backgroundColor = [MXKTools convertImageToPatternColor:@"remove_icon" backgroundColor:kVectorColorLightGrey patternSize:CGSizeMake(74, 74) resourceSize:CGSizeMake(30, 30)];
[actions insertObject:leaveAction atIndex:0];
}
@@ -876,17 +876,17 @@
- (void)refreshSearchBarItemsColor:(UISearchBar *)searchBar
{
// caret color
searchBar.barTintColor = searchBar.tintColor = VECTOR_GREEN_COLOR;
searchBar.tintColor = VECTOR_GREEN_COLOR;
searchBar.barTintColor = searchBar.tintColor = kVectorColorGreen;
searchBar.tintColor = kVectorColorGreen;
// text color
UITextField *searchBarTextField = [searchBar valueForKey:@"_searchField"];
searchBarTextField.textColor = VECTOR_TEXT_GRAY_COLOR;
searchBarTextField.textColor = kVectorTextColorGray;
// Magnifying glass icon.
UIImageView *leftImageView = (UIImageView *)searchBarTextField.leftView;
leftImageView.image = [leftImageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
leftImageView.tintColor = VECTOR_GREEN_COLOR;
leftImageView.tintColor = kVectorColorGreen;
// remove the gray background color
UIView *effectBackgroundTop = [searchBarTextField valueForKey:@"_effectBackgroundTop"];
@@ -898,7 +898,7 @@
if (!searchBarSeparator)
{
searchBarSeparator = [[UIView alloc] init];
searchBarSeparator.backgroundColor = VECTOR_GREEN_COLOR;
searchBarSeparator.backgroundColor = kVectorColorGreen;
[searchBarTextField addSubview:searchBarSeparator];
@@ -942,7 +942,7 @@
// place holder
[searchBarTextField setValue:VECTOR_TEXT_GRAY_COLOR forKeyPath:@"_placeholderLabel.textColor"];
[searchBarTextField setValue:kVectorTextColorGray forKeyPath:@"_placeholderLabel.textColor"];
}
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText