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 __nsLookAndFeel
7 #define __nsLookAndFeel
9 #include "nsXPLookAndFeel.h"
11 class nsLookAndFeel final
: public nsXPLookAndFeel
{
14 virtual ~nsLookAndFeel();
16 void NativeInit() final
;
17 virtual void RefreshImpl();
18 nsresult
NativeGetImpl(IntID aID
, int32_t& aResult
) override
;
19 nsresult
NativeGetFloat(FloatID aID
, float& aResult
) override
;
20 nsresult
NativeGetColor(ColorID
, ColorScheme
, nscolor
& aResult
) override
;
21 bool NativeGetFont(FontID aID
, nsString
& aFontName
,
22 gfxFontStyle
& aFontStyle
) override
;
23 virtual char16_t
GetPasswordCharacterImpl() {
24 // unicode value for the bullet character, used for password textfields.
28 static bool UseOverlayScrollbars() { return true; }
31 nscolor mColorTextSelectForeground
;
32 nscolor mColorDarkText
;