diff options
Diffstat (limited to 'widget/cocoa/nsNativeThemeColors.h')
-rw-r--r-- | widget/cocoa/nsNativeThemeColors.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/widget/cocoa/nsNativeThemeColors.h b/widget/cocoa/nsNativeThemeColors.h index 02ec96f51a..051335e9bc 100644 --- a/widget/cocoa/nsNativeThemeColors.h +++ b/widget/cocoa/nsNativeThemeColors.h @@ -10,43 +10,6 @@ #include "mozilla/ColorScheme.h" -enum ColorName { - toolbarTopBorderGrey, - toolbarFillGrey, - toolbarBottomBorderGrey, -}; - -static const int sLionThemeColors[][2] = { - /* { active window, inactive window } */ - // toolbar: - {0xD0, 0xF0}, // top separator line - {0xB2, 0xE1}, // fill color - {0x59, 0x87}, // bottom separator line -}; - -static const int sYosemiteThemeColors[][2] = { - /* { active window, inactive window } */ - // toolbar: - {0xBD, 0xDF}, // top separator line - {0xD3, 0xF6}, // fill color - {0xB3, 0xD1}, // bottom separator line -}; - -inline int NativeGreyColorAsInt(ColorName name, BOOL isMain) { - return sYosemiteThemeColors[name][isMain ? 0 : 1]; -} - -inline float NativeGreyColorAsFloat(ColorName name, BOOL isMain) { - return NativeGreyColorAsInt(name, isMain) / 255.0f; -} - -inline void DrawNativeGreyColorInRect(CGContextRef context, ColorName name, - CGRect rect, BOOL isMain) { - float grey = NativeGreyColorAsFloat(name, isMain); - CGContextSetRGBFillColor(context, grey, grey, grey, 1.0f); - CGContextFillRect(context, rect); -} - inline NSAppearance* NSAppearanceForColorScheme(mozilla::ColorScheme aScheme) { NSAppearanceName appearanceName = aScheme == mozilla::ColorScheme::Light ? NSAppearanceNameAqua |