Skip to content

Commit

Permalink
views: fix wrong new badge text color in cocoa context menu
Browse files Browse the repository at this point in the history
Bug: 1417025
Change-Id: Ic7c1b6d7462b3feacb542c6fd6087e78c4e4afbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4317287
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Keren Zhu <kerenzhu@chromium.org>
Commit-Queue: Keren Zhu <kerenzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1114679}
  • Loading branch information
naeioi authored and Chromium LUCI CQ committed Mar 8, 2023
1 parent e97f7d4 commit dbc52c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/views/controls/menu/menu_controller_cocoa_delegate_impl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

DCHECK(color_provider);
NSColor* badge_text_color = skia::SkColorToSRGBNSColor(
color_provider->GetColor(ui::kColorButtonBackgroundProminent));
color_provider->GetColor(ui::kColorBadgeForeground));

NSDictionary* badge_attrs = @{
NSFontAttributeName : badge_font.GetNativeFont(),
Expand Down Expand Up @@ -81,7 +81,7 @@
yRadius:badge_radius];
DCHECK(color_provider);
NSColor* badge_color = skia::SkColorToSRGBNSColor(
color_provider->GetColor(ui::kColorButtonBackgroundProminent));
color_provider->GetColor(ui::kColorBadgeBackground));
[badge_color set];
[rounded_badge_rect fill];

Expand Down

0 comments on commit dbc52c7

Please sign in to comment.