Hi IntelliJ Community,
I’m developing a plugin for IntelliJ products and have added a notification balloon for one of the plugin actions.
I’d like to add multiple actions into the Notifications Balloon as shown in the UI Guidelines:
guideline example image
According to the guidelines, I thought the first action should be displayed as an outlined button (if multple actions are set)
However, I haven’t found an option to indicate that the first action as a primary.
Currently, my actions always look like this:
Notification Balloon Code Snippet
val ViewInEditorAction = NotificationAction.createSimple("View in Editor") { /* action code */ }
val ReportABugAction = NotificationAction.createSimple("Report a Bug") { /* action code */ }
NotificationGroupManager.getInstance()
.getNotificationGroup(PLUGIN_NOTIFICATION_GROUP)
.createNotification(
title = "$selectionText copied to clipboard",
type = NotificationType.INFORMATION
)
.addActions(listOf(ViewInEditorAction, ReportABugAction))
.notify(project)
Question
How can I indicate that a notification action should be marked as a primary action (like “Connect to database…” in the guideline example?
Thanks!
P.S. Sorry can’t add more than 2 images and links as a new user.
Please click on “guideline example image” to see what I expect to get.