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

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

Issue 2460103002: CrOS - Fix text background of shelf tooltips. (Closed)
Patch Set: docs Created 4 years, 2 months 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 dbf1c6f6959e26a5e3a3f482fc80da1899302e8f..50c481e143faa49d607844f9836ae34e5c9a2892 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