         path.fill()
         
 //        if skip != 1:
-        let d1 = CGFloat(0.6)
-        NSColor(red: c.redComponent*d1, green: c.greenComponent*d1, blue: c.blueComponent*d1, alpha: 1.0).set() // left
+        darkenColor(color, factor: 0.6).set()
         path = NSBezierPath()
         path.moveToPoint(NSPoint(x: x    ,y: y))
         path.lineToPoint(NSPoint(x: x-w  ,y: y+s))

        path.fill()
    }

}
    

        }
        
//        if (skip != 0):
        color.set() // top
        var path = NSBezierPath()
        path.moveToPoint(NSPoint(x: x   ,y: y))
        path.lineToPoint(NSPoint(x: x+w ,y: y+s))
