fune/widget/cocoa/AppearanceOverride.h
Markus Stange 4ad313f4ec Bug 1715145 - Rename widget.macos.respect-system-appearance to widget.macos.support-dark-appearance, and make the Firefox theme affect all windows if the pref is true. r=emilio
This patch also removes the pref widget.system-colors-follow-theme, which was
only true on macOS. System colors now follow the global Firefox theme.

Differential Revision: https://phabricator.services.mozilla.com/D117098
2021-06-08 02:01:10 +00:00

19 lines
805 B
Objective-C

/* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef AppearanceOverride_h
#define AppearanceOverride_h
#import <Cocoa/Cocoa.h>
// Implements support for the prefs browser.theme.toolbar-theme and
// widget.macos.support-dark-appearance. Use MOZGlobalAppearance.sharedInstance.effectiveAppearance
// in all places where you would like the global override to be respected. The effectiveAppearance
// property can be key-value observed.
@interface MOZGlobalAppearance : NSObject <NSAppearanceCustomization>
@property(class, readonly) MOZGlobalAppearance* sharedInstance;
@end
#endif