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

Unified Diff: ui/native_theme/native_theme_win.cc

Issue 2473863004: Remove MaterialDesignController::IsModeMaterial (Closed)
Patch Set: pkasting review and rebase Created 4 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_dark_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index 7d4f0798c675d2c8caad40510a22fa71c1c2b486..52acd96f31a1ff839536db94f1535203059a4a53 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -483,25 +483,6 @@ void NativeThemeWin::PaintDirect(SkCanvas* destination_canvas,
}
SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
- const bool md = ui::MaterialDesignController::IsModeMaterial();
- if (!md) {
- // Link:
- const SkColor kLinkPressedColor = SkColorSetRGB(200, 0, 0);
-
- switch (color_id) {
- // Link
- case kColorId_LinkDisabled:
- return system_colors_[COLOR_WINDOWTEXT];
- case kColorId_LinkEnabled:
- return system_colors_[COLOR_HOTLIGHT];
- case kColorId_LinkPressed:
- return kLinkPressedColor;
-
- default:
- break;
- }
- }
-
// TODO: Obtain the correct colors using GetSysColor.
// Dialogs:
const SkColor kDialogBackgroundColor = SkColorSetRGB(251, 251, 251);
@@ -518,8 +499,7 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
const SkColor kPositiveTextColor = SkColorSetRGB(0x0b, 0x80, 0x43);
const SkColor kNegativeTextColor = SkColorSetRGB(0xc5, 0x39, 0x29);
// Results Tables:
- const SkColor kResultsTableUrlColor =
- md ? gfx::kGoogleBlue700 : SkColorSetRGB(0x0b, 0x80, 0x43);
+ const SkColor kResultsTableUrlColor = gfx::kGoogleBlue700;
const SkColor kResultsTableSelectedUrlColor = SK_ColorWHITE;
// Label:
const SkColor kLabelTextSelectionBackgroundFocusedColor = gfx::kGoogleBlue700;
« no previous file with comments | « ui/native_theme/native_theme_dark_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698