mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:21:08 +00:00
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). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39285 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d68cbe712f
commit
b8eb05ec70
1 changed files with 6 additions and 1 deletions
|
@ -3238,7 +3238,12 @@ typedef enum {
|
|||
|
||||
if (boxType == NSBoxSeparator)
|
||||
{
|
||||
[[box borderColor] set];
|
||||
color = [box borderColor];
|
||||
if (!color || [color isEqual:[NSColor clearColor]])
|
||||
{
|
||||
color = [NSColor controlShadowColor];
|
||||
}
|
||||
[color set];
|
||||
NSRectFill([box borderRect]);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue