DroppyAccentButtonStyle

Filled accent pill for primary actions.

@MainActor struct DroppyAccentButtonStyle

Matches the host's DroppyAccentButtonStyle: the fill deepens from 0.8 to full opacity on hover and press (never fades), the label is white, and when the color IS the user's highlight color the style swaps to the shared neutral chrome so the label stays legible on any accent the user picks.

Initializers

init(color:size:)

@MainActor init(color: Color = AdaptiveColors.selectionBlueAuto, size: DroppyButtonSize = .medium)

Creates the style.

  • Parameters:
  • color: Fill color, defaults to the accent token.
  • size: Button size.

Methods

makeBody(configuration:)

@MainActor func makeBody(configuration: Configuration) -> some View