See Also #

This class has no related objects.

Delegates #

Name Description
AppearanceChanged() This delegate is called when the user switches between Light and Dark system themes.

Enumerations #

Name Values
SystemEffects None
Pressed
DeepPressed
Disabled
RollOver

Constants #

Name Type Value

This class exposes no constants.

Events #

Definition Description

This class exposes no events.

Color Methods #

Name Parameters
FocusRing
Accent withSystemEffect as GraffitiColors.MacOS.SystemEffects = GraffitiColors.MacOS.SystemEffects.None
BackgroundContentEven
BackgroundContentOdd
BackgroundContentSelected
BackgroundContentSelectedUnemphasized
BackgroundControl
BackgroundControlSelected
BackgroundControlSelectedAlternate
BackgroundHeader
BackgroundKnob
BackgroundKnobSelected
BackgroundMenuItemSelected
BackgroundScrollBar
BackgroundScrubber
BackgroundText
BackgroundTextSelected
BackgroundTextSelectedUnemphasized
BackgroundUnderPage
BackgroundWindow
BackgroundWindowFrame
BevelDark
BevelLight
BevelLightHighlight
Black
Cyan
DarkGray
GridLines
Highlight
HighlightFind
LightGray
Magenta
Purple
Separator
Shadow
ShadowDark
SystemBlue
SystemBrown
SystemClear
SystemGray
SystemGreen
SystemIndigo
SystemOrange
SystemPink
SystemRed
SystemTeal
SystemYellow
TextControl
TextControlDisabled
TextControlSelected
TextControlSelectedAlternate
TextHeader
TextLabelPrimary
TextLabelSecondary
TextLabelTertiary
TextLabelQuaternary
TextLink
TextMenuItemSelected
TextPlaceholder
TextUnemphasizedSelected
TextWindow
TextWindowSelected
TextWindowTitle
White

Methods #

Definition Description
AppearanceListenerAdd(modeCallback as AppearanceChanged) Adds an appearance listener delegate to the call stack. This delegate will be invoked if/when the user changes the system color scheme.
AppearanceListenerRemove(modeCallback as AppearanceChanged) Removes the specified listener delegate from the call stack. All added delegates should be removed when no longer needed.
AppearanceListenerRemoveAll() Removes all appearance delegate listeners. Ideally listeners should be removed when no longer needed, but if you run in to an issue where you are leaking listeners, you can call this to clear the stack. Note that this will break the basic IsDarkMode functionality for this module, so use with caution.
IsColorDifferentiated() as Boolean Returns True when the user has Differentiate without color unchecked in Display Accessibility settings.
IsHighContrast() as Boolean Returns True when the user has checked Increase contrast in Display Accessibility settings.
IsInvertedColors() as Boolean Returns True when the user has checked Invert colors in Display Accessibility settings.
IsReducedMotion() as Boolean Returns True when the user has checked Reduce motion in Display Accessibility settings.
IsReducedTransparency() as Boolean Returns True when the user has checked Reduce transparency in Display Accessibility settings.
IsDarkMode() as Boolean Uses a cached value system that is updated upon initialization and when the user changes the system color scheme to reduce OS calls.
toDictionary() as Dictionary Returns a Dictionary of all color methods with all SystemEffects applied.

Properties #

Name Type Default Value Description

This class exposes no properties.

Examples #

This class currently has no examples.

Notes #

This class currently has no notes.