New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 834125 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

MacViews: status bubble font size should be 11pt

Project Member Reported by bettes@chromium.org, Apr 18 2018

Issue description

Chrome Version: Version 68.0.3398.0 (Official Build) canary (64-bit)

Actual: 
I believe Macviews has made this text the default text size (13pt)?

Expected: 
11pt (as is today)


This thing: 
https://uis.georgetown.edu/sites/uis/files/files/upload/echo_import_media_chrome.png
 
pageProgress_actual.png
22.8 KB View Download
expected.png
19.2 KB View Download
Components: UI
Labels: Target-69 M-69
Owner: lgrey@chromium.org
Status: Assigned (was: Untriaged)
Summary: MacViews: status bubble font size should be 11pt (was: "progress text" is too big in macviews)
Owner: tnijssen@google.com
Shouldn't this text just be (default text size + some constant size offset), and the bubble resize to match?

And shouldn't the size offset be similar across platforms?

All that adds up to saying: what does e.g. Windows do and how certain are you that the new behavior is not better than the old?

Comment 4 by tapted@chromium.org, May 31 2018

One line of thinking may be that it looks kinda like a tooltip, so should be consistent with the system treatment for those.

(Although tooltips on my Linux workstation are blurry/spidery white text on black multiline thingos, so I wouldn't go too far..)

Comment 5 by tnijssen@google.com, May 31 2018

Safari tooltips appear to be 11pt font.

The issue I'm running into is that in MacViews, the font size is determined by the system font and the system font's size appears to be changing during runtime.

In the current version (non-MacViews) the font size is determined by the current NSWindow's contentView.

Any suggestions on how to proceed are greatly appreciated.
StatusBubbleViews has multiple codepaths that just invoke gfx::FontList(), which results in 12pt (or 13pt in some locales on ChromeOS, or other-things-if-configured-by-the-user-on-Windows). I.e. it's just "default".

StatusBubbleViews should be explicit about what font size it wants, and request a font via views:style::GetFont(..).

All that's left is for a designer to tell us what size they want, which is this bug :). bettes@ says 11pt on Mac, so let's do that.

Note there's no 11pt font in the Harmony spec. There is `CONTEXT_DEPRECATED_SMALL` (don't use that). Adding a CONTEXT_STATUS_BUBBLE which gives a `size_delta = -1;` on Mac and `size_delta = 0;` everywhere else is the way I would fix this.
Okay, I'll get to work on that, thank you so much for your help!
Project Member

Comment 8 by bugdroid1@chromium.org, Jun 8 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6c17f99f7c1d9567f0dfe9523752803dd2d3af0e

commit 6c17f99f7c1d9567f0dfe9523752803dd2d3af0e
Author: Tessa Nijssen <tnijssen@google.com>
Date: Fri Jun 08 18:49:42 2018

[MacViews] Status Bubble Font Size Fix

StatusBubbleViews now calls views::style::GetFont() instead of
gfx::FontList(). This allows the passing of a TextContext,
in this case CONTEXT_LABEL. When the context is passed on Mac,
the font returned has a default size of 12pt. This is more consistent
with Safari and other platforms.

Since the system font on Mac (without user changes) returns 13pt font,
this change now sets the StatusBubbleViews font size to 12pt on Mac.

On other platforms, the default font size was already 12pt, so this
change does not change the status bubble font size on non-Mac
platforms.

Bug:  834125 
Change-Id: Ic1a9c5f728228341f18ddb41e36ea1e51078f95a
Reviewed-on: https://chromium-review.googlesource.com/1079849
Commit-Queue: Tessa Nijssen <tnijssen@google.com>
Reviewed-by: Trent Apted <tapted@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565703}
[modify] https://crrev.com/6c17f99f7c1d9567f0dfe9523752803dd2d3af0e/chrome/browser/ui/views/status_bubble_views.cc

Comment 9 by tnijssen@google.com, Jun 12 2018

Status: Fixed (was: Assigned)
Cc: vamshi.kommuri@chromium.org
Labels: Needs-Feedback
Tried verifying the fix on latest chrome version 69.0.3493.0 using Mac 10.13.1. As we couldn't perfectly distinguish the difference(except slight variation of the darkness in letters...) between the reported version and the version in which fix landed, could someone help us in verifying the fix. Attaching the screen shot showing the behaviour of both the versions for reference.

Thanks! 
CL 834125.png
345 KB View Download

Sign in to add a comment