OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/native_theme/native_theme_win_dark.h" |
| 6 |
| 7 #include "ui/base/resource/material_design/material_design_controller.h" |
| 8 #include "ui/native_theme/native_theme_aura_dark.h" |
| 9 |
| 10 namespace ui { |
| 11 |
| 12 NativeThemeWinDark* NativeThemeWinDark::instance() { |
| 13 CR_DEFINE_STATIC_LOCAL(NativeThemeWinDark, s_native_theme, ()); |
| 14 return &s_native_theme; |
| 15 } |
| 16 |
| 17 NativeThemeWinDark::NativeThemeWinDark() {} |
| 18 |
| 19 NativeThemeWinDark::~NativeThemeWinDark() {} |
| 20 |
| 21 SkColor NativeThemeWinDark::GetSystemColor(ColorId color_id) const { |
| 22 if (!ui::MaterialDesignController::IsModeMaterial()) |
| 23 return NativeThemeWin::GetSystemColor(color_id); |
| 24 |
| 25 return NativeThemeAuraDark::instance()->GetSystemColor(color_id); |
| 26 } |
| 27 |
| 28 } // namespace ui |
OLD | NEW |