Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / widget / cocoa / nsNativeThemeColors.h
blob051335e9bcc96c6336dc1d83ed1cbdfa28eef898
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsNativeThemeColors_h_
7 #define nsNativeThemeColors_h_
9 #import <Cocoa/Cocoa.h>
11 #include "mozilla/ColorScheme.h"
13 inline NSAppearance* NSAppearanceForColorScheme(mozilla::ColorScheme aScheme) {
14 NSAppearanceName appearanceName = aScheme == mozilla::ColorScheme::Light
15 ? NSAppearanceNameAqua
16 : NSAppearanceNameDarkAqua;
17 return [NSAppearance appearanceNamed:appearanceName];
20 #endif // nsNativeThemeColors_h_