@@ -35,35 +35,87 @@ - (void)viewDidLoad {
35
35
UINavigationController *newsNavigationController = ({
36
36
MRCNewsViewController *newsViewController = [[MRCNewsViewController alloc ] initWithViewModel: self .viewModel.newsViewModel];
37
37
38
- UIImage *newsImage = [UIImage octicon_imageWithIdentifier: @" Rss" size: CGSizeMake (25 , 25 )];
39
- newsViewController.tabBarItem = [[UITabBarItem alloc ] initWithTitle: @" News" image: newsImage tag: 1 ];
38
+ UIImage *newsImage = [UIImage octicon_imageWithIcon: @" Rss"
39
+ backgroundColor: [UIColor clearColor ]
40
+ iconColor: [UIColor lightGrayColor ]
41
+ iconScale: 1
42
+ andSize: CGSizeMake (25 , 25 )];
43
+ UIImage *newsHLImage = [UIImage octicon_imageWithIcon: @" Rss"
44
+ backgroundColor: [UIColor clearColor ]
45
+ iconColor: HexRGB (colorI3)
46
+ iconScale: 1
47
+ andSize: CGSizeMake (25 , 25 )];
48
+
49
+ newsImage = [newsImage imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal];
50
+ newsHLImage = [newsHLImage imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal];
51
+
52
+ newsViewController.tabBarItem = [[UITabBarItem alloc ] initWithTitle: @" News" image: newsImage selectedImage: newsHLImage];
40
53
41
54
[[MRCNavigationController alloc ] initWithRootViewController: newsViewController];
42
55
});
43
56
44
57
UINavigationController *reposNavigationController = ({
45
58
MRCReposViewController *reposViewController = [[MRCReposViewController alloc ] initWithViewModel: self .viewModel.reposViewModel];
46
-
47
- UIImage *reposImage = [UIImage octicon_imageWithIdentifier: @" Repo" size: CGSizeMake (25 , 25 )];
48
- reposViewController.tabBarItem = [[UITabBarItem alloc ] initWithTitle: @" Repositories" image: reposImage tag: 2 ];
59
+
60
+ UIImage *reposImage = [UIImage octicon_imageWithIcon: @" Repo"
61
+ backgroundColor: [UIColor clearColor ]
62
+ iconColor: [UIColor lightGrayColor ]
63
+ iconScale: 1
64
+ andSize: CGSizeMake (25 , 25 )];
65
+ UIImage *reposHLImage = [UIImage octicon_imageWithIcon: @" Repo"
66
+ backgroundColor: [UIColor clearColor ]
67
+ iconColor: HexRGB (colorI3)
68
+ iconScale: 1
69
+ andSize: CGSizeMake (25 , 25 )];
70
+
71
+ reposImage = [reposImage imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal];
72
+ reposHLImage = [reposHLImage imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal];
73
+
74
+ reposViewController.tabBarItem = [[UITabBarItem alloc ] initWithTitle: @" Repositories" image: reposImage selectedImage: reposHLImage];
49
75
50
76
[[MRCNavigationController alloc ] initWithRootViewController: reposViewController];
51
77
});
52
78
53
79
UINavigationController *searchNavigationController = ({
54
80
MRCSearchViewController *searchViewController = [[MRCSearchViewController alloc ] initWithViewModel: self .viewModel.searchViewModel];
55
81
56
- UIImage *searchImage = [UIImage octicon_imageWithIdentifier: @" Search" size: CGSizeMake (25 , 25 )];
57
- searchViewController.tabBarItem = [[UITabBarItem alloc ] initWithTitle: @" Discover" image: searchImage tag: 3 ];
82
+ UIImage *searchImage = [UIImage octicon_imageWithIcon: @" Search"
83
+ backgroundColor: [UIColor clearColor ]
84
+ iconColor: [UIColor lightGrayColor ]
85
+ iconScale: 1
86
+ andSize: CGSizeMake (25 , 25 )];
87
+ UIImage *searchHLImage = [UIImage octicon_imageWithIcon: @" Search"
88
+ backgroundColor: [UIColor clearColor ]
89
+ iconColor: HexRGB (colorI3)
90
+ iconScale: 1
91
+ andSize: CGSizeMake (25 , 25 )];
92
+
93
+ searchImage = [searchImage imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal];
94
+ searchHLImage = [searchHLImage imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal];
95
+
96
+ searchViewController.tabBarItem = [[UITabBarItem alloc ] initWithTitle: @" Discover" image: searchImage selectedImage: searchHLImage];
58
97
59
98
[[MRCNavigationController alloc ] initWithRootViewController: searchViewController];
60
99
});
61
100
62
101
UINavigationController *profileNavigationController = ({
63
102
MRCProfileViewController *profileViewController = [[MRCProfileViewController alloc ] initWithViewModel: self .viewModel.profileViewModel];
64
103
65
- UIImage *profileImage = [UIImage octicon_imageWithIdentifier: @" Person" size: CGSizeMake (25 , 25 )];
66
- profileViewController.tabBarItem = [[UITabBarItem alloc ] initWithTitle: @" Profile" image: profileImage tag: 4 ];
104
+ UIImage *profileImage = [UIImage octicon_imageWithIcon: @" Person"
105
+ backgroundColor: [UIColor clearColor ]
106
+ iconColor: [UIColor lightGrayColor ]
107
+ iconScale: 1
108
+ andSize: CGSizeMake (25 , 25 )];
109
+ UIImage *profileHLImage = [UIImage octicon_imageWithIcon: @" Person"
110
+ backgroundColor: [UIColor clearColor ]
111
+ iconColor: HexRGB (colorI3)
112
+ iconScale: 1
113
+ andSize: CGSizeMake (25 , 25 )];
114
+
115
+ profileImage = [profileImage imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal];
116
+ profileHLImage = [profileHLImage imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal];
117
+
118
+ profileViewController.tabBarItem = [[UITabBarItem alloc ] initWithTitle: @" Profile" image: profileImage selectedImage: profileHLImage];
67
119
68
120
[[MRCNavigationController alloc ] initWithRootViewController: profileViewController];
69
121
});
0 commit comments