Enumeration

NSButton.GradientType

Specify the gradients used by the gradientType property.

Declaration

enum GradientType : UInt

Topics

Constants

case none

There is no gradient, so the button looks flat.

case concaveWeak

The top-left corner is light gray, and the bottom-right corner is dark gray, so the button appears to be pushed in.

case concaveStrong

As with NSGradientConcaveWeak, the top-left corner is light gray, and the bottom-right corner is dark gray, but the difference between the grays is greater, so the appearance of being pushed in is stronger.

case convexWeak

The top-left corner is dark gray, and the bottom-right corner is light gray, so the button appears to be sticking out.

case convexStrong

As with NSGradientConvexWeak, the top-left corner is dark gray, and the bottom-right corner is light gray, but the difference between the grays is greater, so the appearance of sticking out is stronger.