Type Property

textBackgroundColor

The color to use for the background area behind text.

Declaration

@property(class, strong, readonly) NSColor *textBackgroundColor;

Discussion

When text is selected, its background color changes to the return value of selectedTextBackgroundColor.

When applied to an NSBox object, this color supports Desktop Tinting in Dark Mode. With Desktop Tinting, the system modifies this color dynamically by incorporating some of the color from the underlying desktop image. The system does not apply this dynamic tinting effect to other types of views.

See Also

Text Colors

textColor

The color to use for text.

placeholderTextColor

The color to use for placeholder text in controls or text views.

selectedTextColor

The color to use for selected text.

selectedTextBackgroundColor

The color to use for the background of selected text.

keyboardFocusIndicatorColor

The color to use for the keyboard focus ring around controls.

unemphasizedSelectedTextColor

The color to use for selected text in an unemphasized context.

unemphasizedSelectedTextBackgroundColor

The color to use for the text background in an unemphasized context.