Bug 1734658 - Implement some tree dark theme colors for Windows. r=dholbert
authorEmilio Cobos Alvarez <emilio@crisal.io>
Fri, 08 Oct 2021 10:53:12 +0000
changeset 595198 eea2d5968d6cadf9c629b1cde83af3b2ff4d39c2
parent 595197 0f58e89683f211fc100bfb0b0d6317fa317da2ce
child 595199 7e2386b59ca2a3ced502a49447f4df26d3943a85
push id38862
push userctuns@mozilla.com
push dateFri, 08 Oct 2021 21:42:24 +0000
treeherdermozilla-central@798c43651cb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1734658
milestone95.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1734658 - Implement some tree dark theme colors for Windows. r=dholbert Differential Revision: https://phabricator.services.mozilla.com/D127888
widget/nsXPLookAndFeel.cpp
--- a/widget/nsXPLookAndFeel.cpp
+++ b/widget/nsXPLookAndFeel.cpp
@@ -626,16 +626,17 @@ Maybe<nscolor> nsXPLookAndFeel::GenericD
   static constexpr nscolor kWindowText = NS_RGB(251, 251, 254);
   switch (aID) {
     case ColorID::Window:  // --in-content-page-background
     case ColorID::WindowBackground:
     case ColorID::Background:
     case ColorID::TextBackground:
       color = kWindowBackground;
       break;
+    case ColorID::MozOddtreerow:
     case ColorID::MozDialog:  // --in-content-box-background
       color = NS_RGB(35, 34, 43);
       break;
     case ColorID::Windowtext:  // --in-content-page-color
     case ColorID::WindowForeground:
     case ColorID::TextForeground:
     case ColorID::MozDialogtext:
     case ColorID::Fieldtext:
@@ -649,23 +650,25 @@ Maybe<nscolor> nsXPLookAndFeel::GenericD
     case ColorID::Threedlightshadow:  // --in-content-box-border-color computed
                                       // with kWindowText above
                                       // kWindowBackground.
     case ColorID::Graytext:  // opacity: 0.4 of kWindowText blended over the
                              // "Window" background color, which happens to be
                              // the same :-)
       color = NS_ComposeColors(kWindowBackground, NS_RGBA(251, 251, 254, 102));
       break;
+    case ColorID::MozCellhighlight:
     case ColorID::Selecteditem:  // --in-content-primary-button-background /
                                  // --in-content-item-selected
       color = NS_RGB(0, 221, 255);
       break;
     case ColorID::Field:
     case ColorID::Buttonface:  // --in-content-button-background
     case ColorID::MozCombobox:
+    case ColorID::MozCellhighlighttext:
     case ColorID::Selecteditemtext:  // --in-content-primary-button-text-color /
                                      // --in-content-item-selected-text
       color = NS_RGB(43, 42, 51);
       break;
     case ColorID::Threeddarkshadow:  // Same as Threedlightshadow but with the
                                      // background.
     case ColorID::MozDisabledfield:  // opacity: 0.4 of the face above blended
                                      // over the "Window" background color.