Author: mlytwyn
Date: Tue Jan 31 20:52:52 2017
New Revision: 40314

URL: http://svn.gna.org/viewcvs/gnustep?rev=40314&view=rev
Log:
Fix alternating row background color to match Cocoa

Modified:
    plugins/themes/WinUXTheme/WinUXTheme.m

Modified: plugins/themes/WinUXTheme/WinUXTheme.m
URL: 
http://svn.gna.org/viewcvs/gnustep/plugins/themes/WinUXTheme/WinUXTheme.m?rev=40314&r1=40313&r2=40314&view=diff
==============================================================================
--- plugins/themes/WinUXTheme/WinUXTheme.m      (original)
+++ plugins/themes/WinUXTheme/WinUXTheme.m      Tue Jan 31 20:52:52 2017
@@ -150,7 +150,7 @@
               forKey: @"alternateSelectedControlTextColor"];
       [colors setColor: [NSColor whiteColor]
               forKey: @"rowBackgroundColor"];
-      [colors setColor: [NSColor lightGrayColor]
+      [colors setColor: [NSColor colorWithCalibratedWhite: 0.94901960784314 
alpha: 1.0]
               forKey: @"alternateRowBackgroundColor"];
       [colors setColor: [NSColor lightGrayColor]
               forKey: @"secondarySelectedControlColor"];
@@ -160,9 +160,9 @@
 }
 
 - (BOOL) drawThemeBackground:(HTHEME)hTheme
-                     inRect:(NSRect)rect
-                     part:(int)part
-                     state:(int)state
+                      inRect:(NSRect)rect
+                        part:(int)part
+                       state:(int)state
 {
   HDC hDC;
   RECT winRect;
@@ -170,8 +170,7 @@
   if (hTheme == NULL)
     return NO;  
 
-  if ([self isTheme: hTheme
-       partDefined: part] == NO)
+  if ([self isTheme: hTheme partDefined: part] == NO)
     return NO;
 
   winRect = GSViewRectToWin([[GSCurrentContext() focusView] window], rect);


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to