DroppyAccentButtonStyle

The accent pill for a primary action: Liquid Glass with the accent washed over it (0.18 at rest, 0.24 under the pointer, 0.30 pressed) and the adaptive label ink, exactly the host's DroppyAccentButtonStyle.

@MainActor struct DroppyAccentButtonStyle

The accent pill for a primary action: Liquid Glass with the accent washed over it (0.18 at rest, 0.24 under the pointer, 0.30 pressed) and the adaptive label ink, exactly the host's DroppyAccentButtonStyle. When the colour IS the highlight the user picked in Settings, Theming, the wash is dropped and the pill is the neutral control, so a pale accent never carries an invisible wash.

Initializers

init(color:size:)

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

Creates the style.

  • Parameters:
  • color: The accent washed over the glass, defaults to the accent token.
  • size: Button size.

Methods

makeBody(configuration:)

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