summaryrefslogtreecommitdiffstats
path: root/ui/native_theme/native_theme_dark_win.cc
blob: c79f51eb741a167ce56d6d081ecb5672a2238b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/native_theme/native_theme_dark_win.h"

#include "ui/base/material_design/material_design_controller.h"
#include "ui/native_theme/native_theme_dark_aura.h"

namespace ui {

NativeThemeDarkWin* NativeThemeDarkWin::instance() {
  CR_DEFINE_STATIC_LOCAL(NativeThemeDarkWin, s_native_theme, ());
  return &s_native_theme;
}

NativeThemeDarkWin::NativeThemeDarkWin() {}

NativeThemeDarkWin::~NativeThemeDarkWin() {}

SkColor NativeThemeDarkWin::GetSystemColor(ColorId color_id) const {
  if (!ui::MaterialDesignController::IsModeMaterial())
    return NativeThemeWin::GetSystemColor(color_id);

  return NativeThemeDarkAura::instance()->GetSystemColor(color_id);
}

}  // namespace ui