<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.12.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSButton/GradientType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSGradientType"
  },
  "title" : "NSButton.GradientType"
}
-->

# NSButton.GradientType

Specify the gradients used by the [`gradientType`](/documentation/AppKit/NSButtonCell/gradientType) property.

```
enum GradientType
```

## Topics

### Constants

[`NSButton.GradientType.none`](/documentation/AppKit/NSButton/GradientType/none)

There is no gradient, so the button looks flat.

[`NSButton.GradientType.concaveWeak`](/documentation/AppKit/NSButton/GradientType/concaveWeak)

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

[`NSButton.GradientType.concaveStrong`](/documentation/AppKit/NSButton/GradientType/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.

[`NSButton.GradientType.convexWeak`](/documentation/AppKit/NSButton/GradientType/convexWeak)

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

[`NSButton.GradientType.convexStrong`](/documentation/AppKit/NSButton/GradientType/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.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)