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

Side by Side Diff: ios/chrome/browser/ui/ntp/recent_tabs/views/show_full_history_view.mm

Issue 2638953002: [ios] Put back clock open for recently closed image. (Closed)
Patch Set: Add back 1x image Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ios/chrome/browser/ui/ntp/recent_tabs/views/show_full_history_view.h" 5 #include "ios/chrome/browser/ui/ntp/recent_tabs/views/show_full_history_view.h"
6 6
7 #include "components/strings/grit/components_strings.h" 7 #include "components/strings/grit/components_strings.h"
8 #import "ios/chrome/browser/ui/ntp/recent_tabs/views/views_utils.h" 8 #import "ios/chrome/browser/ui/ntp/recent_tabs/views/views_utils.h"
9 #include "ios/chrome/browser/ui/rtl_geometry.h" 9 #include "ios/chrome/browser/ui/rtl_geometry.h"
10 #import "ios/chrome/browser/ui/uikit_ui_util.h" 10 #import "ios/chrome/browser/ui/uikit_ui_util.h"
(...skipping 11 matching lines...) Expand all
22 22
23 } // namespace 23 } // namespace
24 24
25 @implementation ShowFullHistoryView 25 @implementation ShowFullHistoryView
26 26
27 - (instancetype)initWithFrame:(CGRect)aRect { 27 - (instancetype)initWithFrame:(CGRect)aRect {
28 self = [super initWithFrame:aRect]; 28 self = [super initWithFrame:aRect];
29 if (self) { 29 if (self) {
30 UIImageView* icon = [[UIImageView alloc] initWithImage:nil]; 30 UIImageView* icon = [[UIImageView alloc] initWithImage:nil];
31 [icon setTranslatesAutoresizingMaskIntoConstraints:NO]; 31 [icon setTranslatesAutoresizingMaskIntoConstraints:NO];
32 [icon setImage:[UIImage imageNamed:@"ntp_opentabs"]]; 32 [icon setImage:[UIImage imageNamed:@"ntp_opentabs_clock"]];
33 33
34 UILabel* label = [[UILabel alloc] initWithFrame:CGRectZero]; 34 UILabel* label = [[UILabel alloc] initWithFrame:CGRectZero];
35 [label setTranslatesAutoresizingMaskIntoConstraints:NO]; 35 [label setTranslatesAutoresizingMaskIntoConstraints:NO];
36 [label setFont:[[MDFRobotoFontLoader sharedInstance] regularFontOfSize:16]]; 36 [label setFont:[[MDFRobotoFontLoader sharedInstance] regularFontOfSize:16]];
37 [label setTextAlignment:NSTextAlignmentNatural]; 37 [label setTextAlignment:NSTextAlignmentNatural];
38 [label setTextColor:recent_tabs::GetTextColorGray()]; 38 [label setTextColor:recent_tabs::GetTextColorGray()];
39 [label setText:l10n_util::GetNSString(IDS_HISTORY_SHOWFULLHISTORY_LINK)]; 39 [label setText:l10n_util::GetNSString(IDS_HISTORY_SHOWFULLHISTORY_LINK)];
40 [label setBackgroundColor:[UIColor whiteColor]]; 40 [label setBackgroundColor:[UIColor whiteColor]];
41 41
42 [self addSubview:icon]; 42 [self addSubview:icon];
(...skipping 29 matching lines...) Expand all
72 constant:0]]; 72 constant:0]];
73 } 73 }
74 return self; 74 return self;
75 } 75 }
76 76
77 + (CGFloat)desiredHeightInUITableViewCell { 77 + (CGFloat)desiredHeightInUITableViewCell {
78 return kDesiredHeight; 78 return kDesiredHeight;
79 } 79 }
80 80
81 @end 81 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/ntp/BUILD.gn ('k') | ios/chrome/browser/ui/ntp/resources/ntp_opentabs_clock.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698