DroppyKitThemeBridge

Enumeration

enum DroppyKitThemeBridge

Type properties

isHighlightColorProviderInstalled

static var isHighlightColorProviderInstalled: Bool { get }

Whether a host installed a highlight provider. false is the normal state outside Droppy (previews, the harness), where the tokens fall back to the system accent.

resolution

static var resolution: DroppyKitThemeResolution { get }

Whether tokens are resolving in the explicit standalone or hosted mode.

Type methods

installHighlightColorProvider(_:)

@discardableResult static func installHighlightColorProvider(_ provider: @escaping @Sendable () -> NSColor) -> Bool

Installs the host's highlight-color provider. Host processes only.

The provider is called on every themed color read and must be cheap and thread-safe. The first call wins and later calls are ignored.

  • Returns: true when this call installed the provider, false when one was already installed and nothing changed.