11package com.draculatheme.jetbrains.notifications
22
3+ import com.draculatheme.jetbrains.DraculaMeta
34import com.intellij.notification.NotificationDisplayType
45import com.intellij.notification.NotificationGroup
56import com.intellij.notification.NotificationListener
@@ -10,9 +11,9 @@ import com.intellij.openapi.util.IconLoader
1011object DraculaNotifications {
1112 private val releaseNote = """
1213 What's New?<br>
13- - Enhanced Python color scheme<br >
14- - Enhanced General color scheme<br >
15- - Enhanced Progress Bar<br >
14+ <ul >
15+ <li> Enhanced UI colors</li >
16+ </ul >
1617 Please visit the <a href="https://github.com/dracula/jetbrains/blob/master/CHANGELOG.md">Changelog</a> for more details.<br>
1718 For premium package, please explore <a href="https://gumroad.com/a/477820019">Dracula PRO</a>.<br>
1819 Thank you for choosing Dracula.
@@ -22,20 +23,20 @@ object DraculaNotifications {
2223 val notificationIcon = IconLoader .getIcon(" /icons/dracula-logo.svg" , javaClass)
2324
2425 private val notificationGroup = NotificationGroup (
25- displayId = " Dracula Theme" ,
26- displayType = NotificationDisplayType .STICKY_BALLOON ,
27- isLogByDefault = true
26+ displayId = " Dracula Theme" ,
27+ displayType = NotificationDisplayType .STICKY_BALLOON ,
28+ isLogByDefault = true
2829 )
2930
3031 fun notifyReleaseNote (project : Project ) {
3132 notificationGroup.createNotification(
32- title = " Dracula Theme" ,
33- content = releaseNote,
34- type = NotificationType .INFORMATION ,
35- listener = NotificationListener .URL_OPENING_LISTENER
33+ title = " Dracula Theme updated to ${ DraculaMeta .currentVersion} " ,
34+ content = releaseNote,
35+ type = NotificationType .INFORMATION ,
36+ listener = NotificationListener .URL_OPENING_LISTENER
3637 )
37- .setIcon(notificationIcon)
38- .notify(project)
38+ .setIcon(notificationIcon)
39+ .notify(project)
3940 }
4041
4142}
0 commit comments