Skip to content

ElectronSystemPreferences.getSystemColor method

ElectronSystemPreferences › getSystemColor

Unofficial

Returns one of several standard system colors that automatically adapt to vibrancy and changes in accessibility settings. The standard system color is formatted as #RRGGBBAA.

Signature:

getSystemColor(color: "blue" | "brown" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "yellow"): string

Parameters:

Parameter Type Description
color "blue" | "brown" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "yellow" The named standard system color to look up.

Returns: stringThe standard system color formatted as #RRGGBBAA.

Platform: darwin.