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

Unified Diff: ui/native_theme/common_theme.cc

Issue 2164783002: [md] Updates aura tooltip colors and padding to MD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [md] Updates aura tooltip colors and padding to MD (disable subpixel anti-aliasing for transparent … Created 4 years, 5 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/corewm/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/common_theme.cc
diff --git a/ui/native_theme/common_theme.cc b/ui/native_theme/common_theme.cc
index f2a21c59d04419d9016b04bf48e1c5c2b8ad30e6..edf361f0334f0800e3784e7bda46ac95ba8d14cd 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -37,6 +37,10 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
static const SkColor kResultsTableTextMd = SK_ColorBLACK;
static const SkColor kResultsTableDimmedTextMd =
SkColorSetRGB(0x64, 0x64, 0x64);
+ // Tooltip
+ static const SkColor kTooltipBackgroundMd =
+ SkColorSetA(SK_ColorBLACK, 0xCC);
+ static const SkColor kTooltipTextColorMd = SkColorSetA(SK_ColorWHITE, 0xDE);
switch (color_id) {
// Dialogs
@@ -88,6 +92,12 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
case NativeTheme::kColorId_ResultsTableSelectedUrl:
return base_theme->GetSystemColor(NativeTheme::kColorId_LinkEnabled);
+ // Tooltip
+ case NativeTheme::kColorId_TooltipBackground:
+ return kTooltipBackgroundMd;
+ case NativeTheme::kColorId_TooltipText:
+ return kTooltipTextColorMd;
+
default:
break;
}
« no previous file with comments | « no previous file | ui/views/corewm/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698