diff --git a/widget/src/cocoa/nsLookAndFeel.mm b/widget/src/cocoa/nsLookAndFeel.mm index dfc763f2b4a..8b275f3d19c 100644 --- a/widget/src/cocoa/nsLookAndFeel.mm +++ b/widget/src/cocoa/nsLookAndFeel.mm @@ -251,11 +251,7 @@ nsresult nsLookAndFeel::NativeGetColor(const nsColorID aID, nscolor &aColor) } break; case eColor__moz_mac_focusring: - aColor = nsToolkit::OnSnowLeopardOrLater() ? - ([NSColor currentControlTint] == NSGraphiteControlTint ? - NS_RGB(0x6C,0x7E,0x8D) : NS_RGB(0x3F,0x98,0xDD)) : - ([NSColor currentControlTint] == NSGraphiteControlTint ? - NS_RGB(0x5F,0x70,0x82) : NS_RGB(0x53,0x90,0xD2)); + aColor = GetColorFromNSColor([NSColor keyboardFocusIndicatorColor]); break; case eColor__moz_mac_menushadow: aColor = NS_RGB(0xA3,0xA3,0xA3); diff --git a/widget/tests/test_platform_colors.xul b/widget/tests/test_platform_colors.xul index 96d8bd2b112..17f0152e894 100644 --- a/widget/tests/test_platform_colors.xul +++ b/widget/tests/test_platform_colors.xul @@ -44,7 +44,7 @@ var colors = { "inactivecaptiontext": ["rgb(69, 69, 69)"], "infobackground": ["rgb(255, 255, 199)"], "infotext": ["rgb(0, 0, 0)"], - "menu": ["rgb(255, 255, 255)", rgb(254, 255, 254)"], + "menu": ["rgb(255, 255, 255)", "rgb(254, 255, 254)", "rgb(255, 254, 254)"], "menutext": ["rgb(0, 0, 0)"], "scrollbar": ["rgb(170, 170, 170)"], "threeddarkshadow": ["rgb(220, 220, 220)"], @@ -72,7 +72,7 @@ var colors = { "-moz-html-cellhighlighttext": ["rgb(0, 0, 0)"], "-moz-mac-chrome-active": ["rgb(150, 150, 150)", "rgb(167, 167, 167)"], "-moz-mac-chrome-inactive": ["rgb(202, 202, 202)", "rgb(216, 216, 216)"], - "-moz-mac-focusring": ["rgb(83, 144, 210)", "rgb(95, 112, 130)", "rgb(63, 152, 221)", "rgb(108, 126, 141)"], + //"-moz-mac-focusring": ["rgb(83, 144, 210)", "rgb(95, 112, 130)", "rgb(63, 152, 221)", "rgb(108, 126, 141)"], "-moz-mac-menuselect": ["rgb(115, 132, 153)", "rgb(127, 127, 127)", "rgb(56, 117, 215)", "rgb(255, 193, 31)", "rgb(243, 70, 72)", "rgb(255, 138, 34)", "rgb(102, 197, 71)", "rgb(140, 78, 184)"], "-moz-mac-menushadow": ["rgb(163, 163, 163)"], "-moz-mac-menutextdisable": ["rgb(152, 152, 152)", "rgb(136, 136, 136)"],