mirror of
https://github.com/chylex/IntelliJ-Rainbow-Brackets.git
synced 2025-04-11 03:15:49 +02:00
better banner actions
This commit is contained in:
parent
f11d6de230
commit
6e71a28a09
@ -31,8 +31,8 @@ class RainbowifyBanner(private val project: Project) : EditorNotifications.Provi
|
||||
EditorNotifications.getInstance(project).updateAllNotifications()
|
||||
}
|
||||
|
||||
createComponentActionLabel("open setting") {
|
||||
ShowSettingsUtilImpl.showSettingsDialog(project, RainbowConfigurable.ID, "")
|
||||
createComponentActionLabel("enable Rainbow Brackets") {
|
||||
RainbowSettings.instance.isRainbowEnabled = true
|
||||
EditorNotifications.getInstance(project).updateAllNotifications()
|
||||
}
|
||||
}
|
||||
@ -42,15 +42,15 @@ class RainbowifyBanner(private val project: Project) : EditorNotifications.Provi
|
||||
if (psiFile != null && !checkForBigFile(psiFile)) {
|
||||
if (RainbowSettings.instance.suppressBigFileCheck) return null
|
||||
return EditorNotificationPanel().apply {
|
||||
text("Rainbowify is disabled by default for files > 1000 lines.")
|
||||
text("Rainbowify is disabled by default for files > 1000 lines")
|
||||
icon(AllIcons.General.Information)
|
||||
createComponentActionLabel("got it, don't show again") {
|
||||
RainbowSettings.instance.suppressBigFileCheck = true
|
||||
EditorNotifications.getInstance(project).updateAllNotifications()
|
||||
}
|
||||
|
||||
createComponentActionLabel("open setting") {
|
||||
ShowSettingsUtilImpl.showSettingsDialog(project, RainbowConfigurable.ID, "")
|
||||
createComponentActionLabel("enable rainbowify for big files") {
|
||||
RainbowSettings.instance.doNOTRainbowifyBigFiles = false
|
||||
EditorNotifications.getInstance(project).updateAllNotifications()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user