AlertDialog.setResponseAppearance

void setResponseAppearance(string response, adw.types.ResponseAppearance appearance)

Sets the appearance for response.

alert-dialog-appearance

Use [adw.types.ResponseAppearance.Suggested] to mark important responses such as the affirmative action, like the Save button in the example.

Use [adw.types.ResponseAppearance.Destructive] to draw attention to the potentially damaging consequences of using response. This appearance acts as a warning to the user. The Discard button in the example is using this appearance.

The default appearance is [adw.types.ResponseAppearance.Default].

Negative responses like Cancel or Close should use the default appearance.

Parameters

responsea response ID
appearanceappearance for response