Class
GSPaletteColor
A color that references a base color from a color palette and multiplies the alpha component with an additional factor.
Declaration
class GSPaletteColorDeclaration
@interface GSPaletteColor : NSColorDeclaration
class GSPaletteColor(NSColor)Overview
Before using the color, update effective color values using update(for:)updateForEnvironment:updateForEnvironment_. A palette color with an invalid palette container or color index renders as NSColor/errorReplacementColor (bright pink).
Palette colors are not immutable, as changes to the referenced palette affect the value of the color. Access must happen on the main thread.
Topics
Initializers
Creates a palette color.
Creates a palette color.
Instance Properties
A factor that is multiplied with the alpha component of the base color to create the effective color.
The index into a color palette referencing the base color.
Resolves the palette color to a regular color object.
Instance Methods
Resolves the palette color to a regular color object.
Updates the effective color values of the palette color to match the given environment.
Type Properties
Dynamic color that adapts to the user-selected foreground color.
Type Methods
Dynamic color that adapts to the user-selected foreground color.
Topics
Instance Properties
A factor that is multiplied with the alpha component of the base color to create the effective color.
The index into a color palette referencing the base color.
Resolves the palette color to a regular color object.
Instance Methods
Resolves the palette color to a regular color object.
Creates a palette color.
Creates a palette color.
Updates the effective color values of the palette color to match the given environment.
Type Properties
Dynamic color that adapts to the user-selected foreground color.
Type Methods
Dynamic color that adapts to the user-selected foreground color.
Other
Relationships
Inherits From
NSColor
Conforms To
AppKit.NSAccessibilityColorAppKit.NSPasteboardReadingAppKit.NSPasteboardWritingCoreTransferable.TransferableFoundation.NSCodingFoundation.NSCopyingFoundation.NSSecureCodingObjectiveC.NSObjectProtocolSwift.CVarArgSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype
Relationships
Inherits From
NSColor