Skip to content

Commit

Permalink
Merge pull request #681 from doki-theme/welcomeSticker
Browse files Browse the repository at this point in the history
Added sticker placement to the welcome window.
  • Loading branch information
Unthrottled authored May 2, 2023
2 parents 29be4de + c15ffe5 commit 7f60db2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 24 deletions.
4 changes: 4 additions & 0 deletions changelog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
18 changes: 1 addition & 17 deletions changelog/RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -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.
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=88.5-1.9.7
pluginVersion=88.5-1.10.0
pluginSinceBuild= 223
pluginUntilBuild = 231.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7f60db2

Please sign in to comment.