Updated nsLookAndFeel implementation - updated some of the native colors
authorpekka.vanhoja
Sat, 19 Apr 2008 19:07:15 +0300
changeset 16872 0c8ccb5bb6f01849cedb93025a5a88261274666e
parent 16871 daf012a38e6c30642f7a67738ff447e5472b77a9
child 16873 582e62adc0790f65719e7c9cd9a793614200a93b
push id1298
push userpavlov@mozilla.com
push dateSun, 17 Aug 2008 05:03:09 +0000
treeherderautoland@4a506fa751d8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone2.0a1pre
Updated nsLookAndFeel implementation - updated some of the native colors
widget/src/qt/nsLookAndFeel.cpp
--- a/widget/src/qt/nsLookAndFeel.cpp
+++ b/widget/src/qt/nsLookAndFeel.cpp
@@ -181,56 +181,56 @@ nsresult nsLookAndFeel::NativeGetColor(c
       aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Disabled, QPalette::Window));
       break;
 
     case eColor_inactivecaptiontext:
       aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Disabled, QPalette::Text));
       break;
 
     case eColor_infobackground:
-      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::ToolTipBase/*QPalette::Window*/));
+      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::ToolTipBase));
       break;
 
     case eColor_infotext:
-      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::ToolTipText/*QPalette::Text*/));
+      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::ToolTipText));
       break;
 
     case eColor_menu:
       aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Window));
       break;
 
     case eColor_menutext:
       aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Text));
       break;
 
     case eColor_scrollbar:
-      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Mid/*QPalette::Window*/));
+      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Mid));
       break;
 
     case eColor_threedface:
     case eColor_buttonface:
       aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Button));
       break;
 
     case eColor_buttonhighlight:
     case eColor_threedhighlight:
-      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, /*QPalette::ButtonText*/QPalette::Dark));
+      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Dark));
       break;
 
     case eColor_buttontext:
       aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::ButtonText));
       break;
 
     case eColor_buttonshadow:
     case eColor_threedshadow:
-      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Shadow));
+      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Dark));
       break;
 
     case eColor_threeddarkshadow:
-      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Shadow/*QPalette::Dark*/));
+      aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Shadow));
       break;
 
     case eColor_threedlightshadow:
       aColor = QCOLOR_TO_NS_RGB(palette.color(QPalette::Normal, QPalette::Light));
       break;
 
     case eColor_window:
     case eColor_windowframe: