Instance Method
layerColor(_:)layerColor:layerColor_
The effective color used to represent the layer, or nil when no color is configured.
Declaration
func layerColor(_ dark: Bool) -> NSColor?Declaration
- (NSColor *) layerColor:(BOOL) dark;Declaration
layerColor_(dark: bool) -> NSColorParameters
darkWhether to prefer a color for a dark appearance.
Discussion
Palette color layers use their color entry from the first palette. Other layers use the color configured for the associated font master, preferring its dark-appearance variant when requested.
See Also
Resolving Colors
The layer’s palette color from the given palette, or
nilwhen it cannot be resolved.The effective color palettes for the layer, or
nilwhen none are configured.