Skip to content

Commit

Permalink
Enhanced Update UX (#469)
Browse files Browse the repository at this point in the history
* Updating fallback page.

* Looks most gooder.

* html is hard
  • Loading branch information
Unthrottled authored Dec 17, 2021
1 parent 2455639 commit b7dbfdd
Show file tree
Hide file tree
Showing 9 changed files with 285 additions and 96 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The Doki Theme: Jetbrains IDEs
![Version](https://img.shields.io/jetbrains/plugin/v/10804)
![Build](https://github.com/doki-theme/doki-theme-jetbrains/workflows/Release/badge.svg)

### https://doki-theme.unthrottled.io/

## Quick Theme Preview

![Themes](./assets/screenshots/themes.webp)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
// Custom plugin for building all of the themes
id("doki-theme-plugin")
// Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.5.31"
id("org.jetbrains.kotlin.jvm") version "1.6.0"
// gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
id("org.jetbrains.intellij") version "1.2.0"
// detekt linter - read more: https://detekt.github.io/detekt/gradle.html
Expand Down
4 changes: 4 additions & 0 deletions changelog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
---

# 22.0.1 [Better Update UX]

- Enhanced the plugin update notification to be more visually pleasing.

# 22.0.0 [Holiday Release]

**3 New Dark Themes!**
Expand Down
5 changes: 3 additions & 2 deletions changelog/RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 22.0.0 [Holiday Release]
# Holiday Release!

**3 New Dark Themes!**

Expand All @@ -20,4 +20,5 @@
- Updated the Bookmark Mnemonic icons to be themed.
- Themed settings tags.
- Themed the settings menu for the EduTools plugin.
- Updated the debugger smart step-into colors.
- Updated the debugger smart step-into colors.
- Enhanced the plugin update notification to be more visually pleasing.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -> https://www.jetbrains.org/intellij/sdk/docs/reference_guide/intellij_artifacts.html

pluginGroup = io.unthrottled
pluginVersion = 22.0.0
pluginVersion = 22.0.1
pluginSinceBuild = 203.7148.57
pluginUntilBuild = 213.*

Expand Down
13 changes: 0 additions & 13 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
pluginManagement {
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }

mavenCentral()

maven { url 'https://plugins.gradle.org/m2/' }

maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }

gradlePluginPortal()
}
}
rootProject.name = 'doki-theme-jetbrains'
14 changes: 8 additions & 6 deletions src/main/kotlin/io/unthrottled/doki/TheDokiTheme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,14 @@ class TheDokiTheme : Disposable {
.ifPresent { version ->
if (version != ThemeConfig.instance.version) {
ThemeConfig.instance.version = version
StartupManager.getInstance(project).runWhenProjectIsInitialized {
UpdateNotification.display(
project,
version,
isNewUser,
)
ThemeManager.instance.currentTheme.ifPresent {
StartupManager.getInstance(project).runWhenProjectIsInitialized {
UpdateNotification.display(
project,
version,
isNewUser,
)
}
}
}

Expand Down
Loading

0 comments on commit b7dbfdd

Please sign in to comment.