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

Unified Diff: ash/common/shelf/shelf_tooltip_manager.cc

Issue 2573813002: CrOS - Fix text background of shelf tooltips. (Closed)
Patch Set: Created 4 years 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 | « no previous file | ui/views/bubble/bubble_dialog_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_tooltip_manager.cc
diff --git a/ash/common/shelf/shelf_tooltip_manager.cc b/ash/common/shelf/shelf_tooltip_manager.cc
index aed1034d43db7e0cd0e672684f73d4af9ce86dd8..6f7f1f7fb38e9e52c28573fdd229bd45a71f2951 100644
--- a/ash/common/shelf/shelf_tooltip_manager.cc
+++ b/ash/common/shelf/shelf_tooltip_manager.cc
@@ -77,10 +77,9 @@ class ShelfTooltipManager::ShelfTooltipBubble
theme->GetSystemColor(ui::NativeTheme::kColorId_TooltipBackground);
set_color(background_color);
label->SetBackgroundColor(background_color);
+ // The background is not opaque, so we can't do subpixel rendering.
+ label->SetSubpixelRenderingEnabled(false);
AddChildView(label);
- // The bubble border has its own background so the background created by the
- // BubbleDialogDelegateView is redundant and would cause extra opacity.
- set_background(nullptr);
gfx::Insets insets(kArrowTopBottomOffset, kArrowLeftRightOffset);
// Adjust the anchor location for asymmetrical borders of shelf item.
« no previous file with comments | « no previous file | ui/views/bubble/bubble_dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698