Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: ios/clean/chrome/browser/ui/toolbar/toolbar_button+factory.mm

Issue 2894243003: [ios clean] ToolbarButton tint color changes. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/clean/chrome/browser/ui/toolbar/toolbar_button+factory.mm
diff --git a/ios/clean/chrome/browser/ui/toolbar/toolbar_button+factory.mm b/ios/clean/chrome/browser/ui/toolbar/toolbar_button+factory.mm
index 4676ee6307cd0db42dbc61c3029726b50ef64bb2..adfc4ce4f3f39ccbd538b296ffbfed5f6cdbce7b 100644
--- a/ios/clean/chrome/browser/ui/toolbar/toolbar_button+factory.mm
+++ b/ios/clean/chrome/browser/ui/toolbar/toolbar_button+factory.mm
@@ -44,11 +44,13 @@
}
+ (instancetype)tabSwitcherStripToolbarButton {
- ToolbarButton* tabSwitcherStripButton =
- [self toolbarButtonWithImageForNormalState:
- [UIImage imageNamed:@"tabswitcher_open_tabs"]
- imageForHighlightedState:nil
- imageForDisabledState:nil];
+ ToolbarButton* tabSwitcherStripButton = [self
+ toolbarButtonWithImageForNormalState:NativeImage(
+ IDR_IOS_TOOLBAR_LIGHT_OVERVIEW)
+ imageForHighlightedState:
+ NativeImage(IDR_IOS_TOOLBAR_LIGHT_OVERVIEW_PRESSED)
+ imageForDisabledState:
+ NativeImage(IDR_IOS_TOOLBAR_LIGHT_OVERVIEW_DISABLED)];
return tabSwitcherStripButton;
}
@@ -63,9 +65,10 @@
+ (instancetype)toolsMenuToolbarButton {
ToolbarButton* toolsMenuButton = [self
- toolbarButtonWithImageForNormalState:[UIImage
- imageNamed:@"tabswitcher_menu"]
- imageForHighlightedState:nil
+ toolbarButtonWithImageForNormalState:NativeImage(
+ IDR_IOS_TOOLBAR_LIGHT_TOOLS)
+ imageForHighlightedState:
+ NativeImage(IDR_IOS_TOOLBAR_LIGHT_TOOLS_PRESSED)
imageForDisabledState:nil];
[toolsMenuButton setImageEdgeInsets:UIEdgeInsetsMakeDirected(0, -3, 0, 0)];
return toolsMenuButton;
@@ -107,4 +110,14 @@
return stopButton;
}
++ (instancetype)starToolbarButton {
+ ToolbarButton* starButton =
+ [self toolbarButtonWithImageForNormalState:NativeImage(
+ IDR_IOS_TOOLBAR_LIGHT_STAR)
+ imageForHighlightedState:
+ NativeImage(IDR_IOS_TOOLBAR_LIGHT_STAR_PRESSED)
+ imageForDisabledState:nil];
+ return starButton;
+}
+
@end
« no previous file with comments | « ios/clean/chrome/browser/ui/toolbar/toolbar_button.mm ('k') | ios/clean/chrome/browser/ui/toolbar/toolbar_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698