Author: ivucica
Date: Sun Jan 17 22:36:11 2016
New Revision: 39285

URL: http://svn.gna.org/viewcvs/gnustep?rev=39285&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.

Cherrypicking paullanders' r39276 (Testplant branch).

Modified:
    libs/gui/trunk/Source/GSThemeDrawing.m

Modified: libs/gui/trunk/Source/GSThemeDrawing.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/GSThemeDrawing.m?rev=39285&r1=39284&r2=39285&view=diff
==============================================================================
--- libs/gui/trunk/Source/GSThemeDrawing.m      (original)
+++ libs/gui/trunk/Source/GSThemeDrawing.m      Sun Jan 17 22:36:11 2016
@@ -3238,7 +3238,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