|
|
Created:
6 years, 9 months ago by jiayl Modified:
6 years, 9 months ago CC:
chromium-reviews, tfarina, Sergey Ulanov, somast1, jennschen Base URL:
https://chromium.googlesource.com/chromium/src.git@master Visibility:
Public. |
DescriptionUI adjustments for the HIDE button in the screen share notification window.
The link is not underlined and there is 10px padding between the link and the right edge.
BUG=354893
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260290
Patch Set 1 #
Total comments: 2
Patch Set 2 : #
Total comments: 1
Patch Set 3 : #Patch Set 4 : #Patch Set 5 : sync #
Messages
Total messages: 26 (0 generated)
P1 for M34. PTAL. Thanks!
rsesek: could you review the cocoa change? ben: could you review the views change?
https://codereview.chromium.org/208643004/diff/1/chrome/browser/ui/views/scre... File chrome/browser/ui/views/screen_capture_notification_ui_views.cc (right): https://codereview.chromium.org/208643004/diff/1/chrome/browser/ui/views/scre... chrome/browser/ui/views/screen_capture_notification_ui_views.cc:33: const int kPaddingVerticalHorizonal = 10; kPaddingHorizontal?
lgtm
https://codereview.chromium.org/208643004/diff/1/chrome/browser/ui/views/scre... File chrome/browser/ui/views/screen_capture_notification_ui_views.cc (right): https://codereview.chromium.org/208643004/diff/1/chrome/browser/ui/views/scre... chrome/browser/ui/views/screen_capture_notification_ui_views.cc:33: const int kPaddingVerticalHorizonal = 10; On 2014/03/21 18:54:10, Sergey Ulanov wrote: > kPaddingHorizontal? Oops. Done.
msw: could you review ui/views?
https://codereview.chromium.org/208643004/diff/20001/chrome/browser/ui/views/... File chrome/browser/ui/views/screen_capture_notification_ui_views.cc (right): https://codereview.chromium.org/208643004/diff/20001/chrome/browser/ui/views/... chrome/browser/ui/views/screen_capture_notification_ui_views.cc:34: const SkColor kHideLinkColor = SkColorSetRGB(0x55, 0x95, 0xFE); It's wrong to use a hard-coded color over a themed color (in this case ui::NativeTheme::kColorId_DialogBackground). What does this look like on a high-contrast-black windows theme? I'll ping the bug and ask why this color makes more sense than the conventional/themed link color.
Jenn, could you answer msw's question about the UI design? #37 <https://code.google.com/p/webrtc/issues/detail?id=2789#c37> msw@chromium.org <https://code.google.com/u/msw@chromium.org/> jennschen - why must the link color use a custom color (#5595FE), and not the conventional link color? It's bad practice to use hard-coded colors over themed colors. The views (win/cros/linux-aura) implementation uses ui::NativeTheme::kColorId_DialogBackground, which may be inverted for high-contrast-black system themes*, do you know that this color looks okay in that case? Is likely ugly either way, but more likely to remain broken longer by introducing a non-conventional hard coded color. * https://code.google.com/p/chromium/codesearch#chromium/src/ui/native_theme/na... On Mon, Mar 24, 2014 at 5:01 PM, <msw@chromium.org> wrote: > > https://codereview.chromium.org/208643004/diff/20001/ > chrome/browser/ui/views/screen_capture_notification_ui_views.cc > File chrome/browser/ui/views/screen_capture_notification_ui_views.cc > (right): > > https://codereview.chromium.org/208643004/diff/20001/ > chrome/browser/ui/views/screen_capture_notification_ui_views.cc#newcode34 > chrome/browser/ui/views/screen_capture_notification_ui_views.cc:34: > > const SkColor kHideLinkColor = SkColorSetRGB(0x55, 0x95, 0xFE); > It's wrong to use a hard-coded color over a themed color (in this case > ui::NativeTheme::kColorId_DialogBackground). What does this look like on > a high-contrast-black windows theme? I'll ping the bug and ask why this > color makes more sense than the conventional/themed link color. > > https://codereview.chromium.org/208643004/ > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Responded here: https://code.google.com/p/webrtc/issues/detail?id=2789#c39 On Thu, Mar 27, 2014 at 3:10 PM, Jiayang Liu <jily@google.com> wrote: > Jenn, > > could you answer msw's question about the UI design? > > #37 <https://code.google.com/p/webrtc/issues/detail?id=2789#c37> > msw@chromium.org <https://code.google.com/u/msw@chromium.org/> > > jennschen - why must the link color use a custom color (#5595FE), and not the conventional link color? It's bad practice to use hard-coded colors over themed colors. The views (win/cros/linux-aura) implementation uses ui::NativeTheme::kColorId_DialogBackground, which may be inverted for high-contrast-black system themes*, do you know that this color looks okay in that case? Is likely ugly either way, but more likely to remain broken longer by introducing a non-conventional hard coded color. > * https://code.google.com/p/chromium/codesearch#chromium/src/ui/native_theme/na... > > > > On Mon, Mar 24, 2014 at 5:01 PM, <msw@chromium.org> wrote: > >> >> https://codereview.chromium.org/208643004/diff/20001/ >> chrome/browser/ui/views/screen_capture_notification_ui_views.cc >> File chrome/browser/ui/views/screen_capture_notification_ui_views.cc >> (right): >> >> https://codereview.chromium.org/208643004/diff/20001/ >> chrome/browser/ui/views/screen_capture_notification_ui_views.cc#newcode34 >> chrome/browser/ui/views/screen_capture_notification_ui_views.cc:34: >> >> const SkColor kHideLinkColor = SkColorSetRGB(0x55, 0x95, 0xFE); >> It's wrong to use a hard-coded color over a themed color (in this case >> ui::NativeTheme::kColorId_DialogBackground). What does this look like on >> a high-contrast-black windows theme? I'll ping the bug and ask why this >> color makes more sense than the conventional/themed link color. >> >> https://codereview.chromium.org/208643004/ >> > > -- Jenn Chen User Experience Designer | Google To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Reverted the color change. PTAL
c/b/ui/views lgtm. It's odd to have a link without an underline, but I suppose it's fine since that's what UX wants for this temporary solution. The unified diff works, but the side-by-side diff is busted, you might need to re-upload.
The CQ bit was checked by jiayl@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/208643004/100001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
The CQ bit was checked by jiayl@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/208643004/100001
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for chrome/browser/ui/views/screen_capture_notification_ui_views.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file chrome/browser/ui/views/screen_capture_notification_ui_views.cc Hunk #1 FAILED at 33. Hunk #2 succeeded at 156 (offset 1 line). Hunk #3 succeeded at 281 (offset 1 line). 1 out of 3 hunks FAILED -- saving rejects to file chrome/browser/ui/views/screen_capture_notification_ui_views.cc.rej Patch: chrome/browser/ui/views/screen_capture_notification_ui_views.cc 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 280d4fa1c3c40696d5060112c5225c0af472cfde..8b42ab571c3b8c0258bc7b21bd23a06cf4471907 100644 --- a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc +++ b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc @@ -33,8 +33,8 @@ 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; namespace { @@ -155,6 +155,7 @@ 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); AddChildView(hide_link_); } @@ -279,7 +280,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>(
The CQ bit was checked by jiayl@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/208643004/120001
The CQ bit was unchecked by commit-bot@chromium.org
Commit queue rejected this change because the description was changed between the time the change entered the commit queue and the time it was ready to commit. You can safely check the commit box again.
The CQ bit was checked by jiayl@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/208643004/120001
Message was sent while issue was closed.
Change committed as 260290 |