mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
185bbd28bd
This is simpler given we only have a couple of windows with these looks, and removes the dual mode of the ToolbarWindow class. We just draw the title into the window frame and rely on CSS reserving enough space (exposed as a new -moz-mac-titlebar-height environment variable). We remove the toolbox and toolbar appearance values on mac, now that they do nothing (toolbar did, but it didn't support dark mode and is effectively unused). Differential Revision: https://phabricator.services.mozilla.com/D205469
21 lines
787 B
Objective-C
21 lines
787 B
Objective-C
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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 nsNativeThemeColors_h_
|
|
#define nsNativeThemeColors_h_
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#include "mozilla/ColorScheme.h"
|
|
|
|
inline NSAppearance* NSAppearanceForColorScheme(mozilla::ColorScheme aScheme) {
|
|
NSAppearanceName appearanceName = aScheme == mozilla::ColorScheme::Light
|
|
? NSAppearanceNameAqua
|
|
: NSAppearanceNameDarkAqua;
|
|
return [NSAppearance appearanceNamed:appearanceName];
|
|
}
|
|
|
|
#endif // nsNativeThemeColors_h_
|