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

Unified Diff: chrome/browser/ui/views/screen_capture_notification_ui_views.cc

Issue 208643004: UI adjustments for the HIDE button in the screen share notification window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/screen_capture_notification_ui_views.cc
diff --git a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
index 94819e3a4402d30ed542b0fac69216c62b0d540d..995546ab87944c0b81130c887f4599e747ccce57 100644
--- a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
+++ b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
@@ -29,8 +29,9 @@ namespace {
const int kMinimumWidth = 460;
const int kMaximumWidth = 1000;
const int kHorizontalMargin = 10;
-const int kPadding = 5;
-const int kPaddingLeft = 10;
+const int kPaddingVertical = 5;
+const int kPaddingHorizontal = 10;
+const SkColor kHideLinkColor = SkColorSetRGB(0x55, 0x95, 0xFE);
msw 2014/03/25 00:01:58 It's wrong to use a hard-coded color over a themed
namespace {
@@ -150,6 +151,8 @@ ScreenCaptureNotificationUIViews::ScreenCaptureNotificationUIViews(
hide_link_ = new views::Link(
l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_HIDE_BUTTON));
hide_link_->set_listener(this);
+ hide_link_->SetUnderline(false);
+ hide_link_->SetEnabledColor(kHideLinkColor);
AddChildView(hide_link_);
}
@@ -268,7 +271,10 @@ views::NonClientFrameView*
ScreenCaptureNotificationUIViews::CreateNonClientFrameView(
views::Widget* widget) {
views::BubbleFrameView* frame = new views::BubbleFrameView(
- gfx::Insets(kPadding, kPaddingLeft, kPadding, kPadding));
+ gfx::Insets(kPaddingVertical,
+ kPaddingHorizontal,
+ kPaddingVertical,
+ kPaddingHorizontal));
SkColor color = widget->GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_DialogBackground);
frame->SetBubbleBorder(scoped_ptr<views::BubbleBorder>(
« no previous file with comments | « chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698