Author: paullanders
Date: Thu Jan 14 23:25:10 2016
New Revision: 39276

URL: http://svn.gna.org/viewcvs/gnustep?rev=39276&view=rev
Log:
Use controlShadowColor when the color for NSBoxSeparator is not set. Xcode is 
not setting colors for these types of boxes in xibs. 

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m

Modified: libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m?rev=39276&r1=39275&r2=39276&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m  
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m  Thu Jan 
14 23:25:10 2016
@@ -3382,7 +3382,12 @@
 
   if (boxType == NSBoxSeparator)
     {
-      [[box borderColor] set];
+      color = [box borderColor];
+      if (!color || [color isEqual:[NSColor clearColor]])
+        {
+         color = [NSColor controlShadowColor];
+        }
+      [color set];
       NSRectFill([box borderRect]);
       return;
     }


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to