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

Issue 131453005: Make notification buttons draw a background so text gets subpixel AA. (Closed)

Created:
6 years, 10 months ago by dewittj
Modified:
6 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Make notification buttons draw a background so text gets subpixel AA. Adds a new NSButton subclass that draws its own background before rendering itself in the usual way. BUG=335794 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249104

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M ui/message_center/cocoa/notification_controller.mm View 1 2 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dewittj
PTAL Interestingly drawing the background in -drawRect wasn't enough, the cell needed to also say ...
6 years, 10 months ago (2014-02-04 00:33:51 UTC) #1
Robert Sesek
Is just returning YES from -[MCNotificationButtonCell isOpaque] not enough? https://codereview.chromium.org/131453005/diff/1/ui/message_center/cocoa/notification_controller.mm File ui/message_center/cocoa/notification_controller.mm (right): https://codereview.chromium.org/131453005/diff/1/ui/message_center/cocoa/notification_controller.mm#newcode59 ui/message_center/cocoa/notification_controller.mm:59: ...
6 years, 10 months ago (2014-02-04 14:46:08 UTC) #2
dewittj
Just returning isOpaque = YES is not enough. In that case, the NSButton only draws ...
6 years, 10 months ago (2014-02-04 17:12:05 UTC) #3
Robert Sesek
LGTM On 2014/02/04 17:12:05, dewittj wrote: > Just returning isOpaque = YES is not enough. ...
6 years, 10 months ago (2014-02-04 19:28:19 UTC) #4
dewittj
The CQ bit was checked by dewittj@chromium.org
6 years, 10 months ago (2014-02-04 19:31:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/131453005/80001
6 years, 10 months ago (2014-02-04 19:41:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/131453005/80001
6 years, 10 months ago (2014-02-05 00:41:58 UTC) #7
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-05 18:51:21 UTC) #8
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-05 19:16:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/131453005/80001
6 years, 10 months ago (2014-02-05 19:24:13 UTC) #10
commit-bot: I haz the power
6 years, 10 months ago (2014-02-05 20:45:08 UTC) #11
Message was sent while issue was closed.
Change committed as 249104

Powered by Google App Engine
This is Rietveld 408576698