1 /* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- */
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/. */
5 
6 #ifndef AppearanceOverride_h
7 #define AppearanceOverride_h
8 
9 #import <Cocoa/Cocoa.h>
10 
11 // Implements support for the prefs browser.theme.toolbar-theme and
12 // widget.macos.support-dark-appearance. Use MOZGlobalAppearance.sharedInstance.effectiveAppearance
13 // in all places where you would like the global override to be respected. The effectiveAppearance
14 // property can be key-value observed.
15 @interface MOZGlobalAppearance : NSObject <NSAppearanceCustomization>
16 @property(class, readonly) MOZGlobalAppearance* sharedInstance;
17 @end
18 
19 #endif
20