diff --git a/changelog/CHANGELOG.md b/changelog/CHANGELOG.md index 55254952c..fc770fd25 100644 --- a/changelog/CHANGELOG.md +++ b/changelog/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog --- +# 88.5-1.10.0 [Welcome Screen Sticker] + +- Added sticker placement to the welcome window. + # 88.5-1.9.7 [Mnemonics] - More usable Mnemonic Bookmarks diff --git a/changelog/RELEASE-NOTES.md b/changelog/RELEASE-NOTES.md index b19ccf2e1..5454ac0b8 100644 --- a/changelog/RELEASE-NOTES.md +++ b/changelog/RELEASE-NOTES.md @@ -1,17 +1 @@ -- Fixed issue with global font override not being applied after IDE was restarted. -- Added the initial 2023.1 build support. -- Updated the border color of the `Code Lense` feature. -- Vertically aligned the editor search text input on the new UI. -- Allow custom stickers to remain on IDE for non-Doki themes. -- Themed New UI Scrollbars in Rider to be consistent. -- Fixed the settings window in builds `231.6890.12`+ -- Themed New UI header button hover & pressed color -- Updated New UI project tree spacing to mirror JetBrains' defaults. -- Made Light Theme's checkboxes & radio buttons more usable. -- Sigure's list item selection is readable now. -- Updated Sagiri's syntax highlight to avoid looking like an error. -- Made Non-Functional & Non-User-facing code cleanup updates. -- Migrated to newer platform APIs -- Raised the lowest supported version to 2022.3 -- More usable Mnemonic Bookmarks - +- Added sticker placement to the welcome window. \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index ef58b64cd..d6a4be65f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ # -> https://www.jetbrains.org/intellij/sdk/docs/reference_guide/intellij_artifacts.html pluginGroup=io.unthrottled -pluginVersion=88.5-1.9.7 +pluginVersion=88.5-1.10.0 pluginSinceBuild= 223 pluginUntilBuild = 231.* diff --git a/src/main/kotlin/io/unthrottled/doki/stickers/StickerPaneService.kt b/src/main/kotlin/io/unthrottled/doki/stickers/StickerPaneService.kt index f096edfb1..288217719 100644 --- a/src/main/kotlin/io/unthrottled/doki/stickers/StickerPaneService.kt +++ b/src/main/kotlin/io/unthrottled/doki/stickers/StickerPaneService.kt @@ -111,11 +111,12 @@ class StickerPaneService { private val allowedFrames = setOf( "com.intellij.openapi.ui.FrameWrapper\$MyJFrame", - "com.intellij.openapi.wm.impl.IdeFrameImpl" + "com.intellij.openapi.wm.impl.IdeFrameImpl", + "com.intellij.openapi.wm.impl.welcomeScreen.FlatWelcomeFrame" ) private fun captureFrame(window: JFrame) { - if (isRightClass(window)) return + if (!isRightClass(window)) return val drawablePane = window.rootPane.layeredPane val stickerPane = StickerPane( drawablePane, @@ -174,10 +175,8 @@ class StickerPaneService { } } - private fun isRightClass(window: Any): Boolean { - if (allowedFrames.contains(window.javaClass.name).not()) return true - return false - } + private fun isRightClass(window: Any): Boolean = + allowedFrames.contains(window.javaClass.name) private fun displayStickers( currentTheme: DokiTheme,