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

Unified Diff: ui/native_theme/native_theme_aura.cc

Issue 1438513003: [MD] Implement incognito colors as a NativeTheme (for Aura). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: init param, pkasting feedback Created 5 years, 1 month 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 | « ui/native_theme/native_theme.gyp ('k') | ui/native_theme/native_theme_dark_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_aura.cc
diff --git a/ui/native_theme/native_theme_aura.cc b/ui/native_theme/native_theme_aura.cc
index 33ae85be25fff20292bbbd43b8bcd3f108b41d9b..3f2fcea885dbcc57e634b020ea0c001fc059d8d1 100644
--- a/ui/native_theme/native_theme_aura.cc
+++ b/ui/native_theme/native_theme_aura.cc
@@ -109,14 +109,9 @@ SkColor NativeThemeAura::GetSystemColor(ColorId color_id) const {
// Dialogs:
static const SkColor kDialogBackgroundColorMd = SK_ColorWHITE;
// Results tables:
- static const SkColor kResultsTableSelectedBackgroundMd =
- SkColorSetARGB(0x15, 0x00, 0x00, 0x00);
static const SkColor kResultsTableTextMd = SK_ColorBLACK;
static const SkColor kResultsTableDimmedTextMd =
SkColorSetRGB(0x64, 0x64, 0x64);
- static const SkColor kResultsTableUrlMd = SkColorSetRGB(0x33, 0x67, 0xD6);
- static const SkColor kResultsTableHoveredBackgroundMd =
- SkColorSetARGB(0x0D, 0x00, 0x00, 0x00);
static const SkColor kResultsTableDividerMd = color_utils::AlphaBlend(
kResultsTableTextMd, kTextfieldDefaultBackground, 0x34);
static const SkColor kResultsTableSelectedDividerMd =
@@ -133,9 +128,11 @@ SkColor NativeThemeAura::GetSystemColor(ColorId color_id) const {
// Results Tables
case kColorId_ResultsTableHoveredBackground:
- return kResultsTableHoveredBackgroundMd;
+ return SkColorSetA(
+ GetSystemColor(kColorId_ResultsTableNormalBackground), 0x0D);
case kColorId_ResultsTableSelectedBackground:
- return kResultsTableSelectedBackgroundMd;
+ return SkColorSetA(
+ GetSystemColor(kColorId_ResultsTableNormalBackground), 0x14);
case kColorId_ResultsTableNormalText:
case kColorId_ResultsTableHoveredText:
case kColorId_ResultsTableSelectedText:
@@ -150,7 +147,7 @@ SkColor NativeThemeAura::GetSystemColor(ColorId color_id) const {
case kColorId_ResultsTableNormalUrl:
case kColorId_ResultsTableHoveredUrl:
case kColorId_ResultsTableSelectedUrl:
- return kResultsTableUrlMd;
+ return GetSystemColor(kColorId_LinkEnabled);
case kColorId_ResultsTableNormalDivider:
case kColorId_ResultsTableHoveredDivider:
return kResultsTableDividerMd;
« no previous file with comments | « ui/native_theme/native_theme.gyp ('k') | ui/native_theme/native_theme_dark_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698