Skip to content

Commit 185baa3

Browse files
committed
πŸ”– Bump version
1 parent 4f4b9c4 commit 185baa3

File tree

4 files changed

+38
-5
lines changed

4 files changed

+38
-5
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
### 1.10.1
4+
5+
- Enhanced a bunch of UI components:
6+
- Button
7+
- ToolWindow Bar
8+
- Editor Bar
9+
- SidePanel
10+
- Checkbox
11+
- ComboBox
12+
- Separator
13+
314
### 1.10.0
415

516
- Enhanced UI details of:

β€Žbuild.gradle.ktsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "com.draculatheme"
10-
version = "1.10.0"
10+
version = "1.10.1"
1111

1212
repositories {
1313
mavenCentral()

β€Žsrc/main/kotlin/com/draculatheme/jetbrains/activities/DraculaStartupActivity.ktβ€Ž

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ import com.intellij.openapi.startup.StartupActivity
1010
class DraculaStartupActivity : StartupActivity, DumbAware {
1111
override fun runActivity(project: Project) {
1212
val settings = DraculaSettings.instance
13-
val updated = DraculaMeta.currentVersion != settings.version
14-
if (updated) {
13+
if (settings.version.isEmpty()) {
14+
settings.version = DraculaMeta.currentVersion
15+
DraculaNotifications.notifyFirstlyDownloaded(project)
16+
return
17+
}
18+
if (DraculaMeta.currentVersion != settings.version) {
1519
settings.version = DraculaMeta.currentVersion
1620
DraculaNotifications.notifyReleaseNote(project)
1721
}

β€Žsrc/main/kotlin/com/draculatheme/jetbrains/notifications/DraculaNotifications.ktβ€Ž

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,24 @@ import com.intellij.openapi.project.Project
88
import com.intellij.openapi.util.IconLoader
99

1010
object DraculaNotifications {
11+
private const val notificationGroupID: String = "dracula-theme"
12+
1113
private val releaseNote = """
1214
What's New?<br>
1315
<ul>
14-
<li>Enhanced UI details</li>
16+
<li>Enhanced a bunch of UI components</li>
1517
</ul>
1618
Please visit the <a href="https://github.com/dracula/jetbrains/blob/master/CHANGELOG.md">Changelog</a> for more details.<br>
1719
For premium package, check out <a href="https://gumroad.com/a/477820019">Dracula PRO</a>.<br>
20+
Helpful? Consider <a href="https://github.com/dracula/jetbrains">STAR</a> this project.<br>
1821
Thank you for choosing Dracula.
1922
""".trimIndent()
2023

2124
@JvmField
2225
val notificationIcon = IconLoader.getIcon("/icons/dracula-logo.svg", javaClass)
2326

2427
fun notifyReleaseNote(project: Project) {
25-
NotificationGroupManager.getInstance().getNotificationGroup("dracula-theme")
28+
NotificationGroupManager.getInstance().getNotificationGroup(notificationGroupID)
2629
.createNotification(
2730
title = "Dracula Theme updated to v${DraculaMeta.currentVersion}",
2831
content = releaseNote,
@@ -33,4 +36,19 @@ object DraculaNotifications {
3336
.notify(project)
3437
}
3538

39+
fun notifyFirstlyDownloaded(project: Project) {
40+
NotificationGroupManager.getInstance().getNotificationGroup(notificationGroupID)
41+
.createNotification(
42+
title = "Dracula Theme v${DraculaMeta.currentVersion} is installed successfully",
43+
content = """
44+
Dracula Theme is fully open-source. If this theme is helpful to you, consider <a href="https://github.com/dracula/jetbrains">STAR</a> this project.
45+
Thank you for choosing Dracula.
46+
""".trimIndent(),
47+
type = NotificationType.INFORMATION,
48+
listener = NotificationListener.URL_OPENING_LISTENER
49+
)
50+
.setIcon(notificationIcon)
51+
.notify(project)
52+
}
53+
3654
}

0 commit comments

Comments
Β (0)