Skip to content

Commit

Permalink
πŸ› Fix compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteVermouth committed Apr 13, 2024
1 parent da7c604 commit 9f7bc08
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ pluginName=Dracula Theme
pluginVersion=1.15.2
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions.
pluginVerifierIdeVersions=233.13135.103, 232.8660.185, 231.9392.1, 223.8836.41, 222.4554.10
pluginVerifierIdeVersions=241.14494.240, 233.15026.9
# Plugin Build Platform
platformType=IC
platformVersion=2022.2
platformVersion=2023.3
# Opt-out flag for bundling Kotlin standard library.
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
kotlin.stdlib.default.dependency=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import com.draculatheme.jetbrains.notifications.DraculaNotification
import com.draculatheme.jetbrains.settings.DraculaSettings
import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.StartupActivity
import com.intellij.openapi.startup.ProjectActivity

class DraculaStartupActivity : StartupActivity, DumbAware {
override fun runActivity(project: Project) {
class DraculaStartupActivity : ProjectActivity, DumbAware {
override suspend fun execute(project: Project) {
val settings = DraculaSettings.instance
if (settings.version.isEmpty()) {
settings.version = DraculaMeta.currentVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ class DraculaThemeChangeListener : LafManagerListener {

private val editorColorsManager = EditorColorsManager.getInstance()

private var previousUI = LafManager.getInstance().currentLookAndFeel.name
private var previousUI = LafManager.getInstance().currentUIThemeLookAndFeel.name

override fun lookAndFeelChanged(lafManager: LafManager) {
val currentUI = lafManager.currentLookAndFeel.name
val currentUI = lafManager.currentUIThemeLookAndFeel.name
if (previousUI != currentUI) {
if (currentUI == DraculaVariant.Dracula.label || currentUI == DraculaVariant.DraculaColorful.label) {
editorColorsManager.globalScheme = editorColorsManager.getScheme("_@user_$currentUI")
editorColorsManager.setGlobalScheme(editorColorsManager.getScheme("_@user_$currentUI"))
}
}
previousUI = currentUI
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Dracula Theme</name>
<vendor email="developer@nszihan.com" url="https://draculatheme.com/jetbrains">Dracula Official</vendor>
<depends>com.intellij.modules.lang</depends>
<idea-version since-build="222"/>
<idea-version since-build="233"/>
<extensions defaultExtensionNs="com.intellij">
<applicationService serviceImplementation="com.draculatheme.jetbrains.settings.DraculaSettings"/>
<postStartupActivity implementation="com.draculatheme.jetbrains.activities.DraculaStartupActivity"/>
Expand Down

0 comments on commit 9f7bc08

Please sign in to comment.