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:)updateNSColor/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.NS Accessibility Color AppKit.NS Pasteboard Reading AppKit.NS Pasteboard Writing CoreTransferable.Transferable Foundation.NSCoding Foundation.NSCopying Foundation.NSSecure Coding ObjectiveC.NS Object Protocol Swift.CVar Arg Swift.CustomDebug String Convertible Swift.CustomString Convertible Swift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype
Relationships
Inherits From
NSColor