Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: windows high cpu usage #253

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion THIRDPARTY
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jsvg 1.4.0
MIT License
https://github.com/weisJ/jsvg/blob/master/LICENSE

jSystemThemeDetector 3.9.1
jSystemThemeDetector b5857fec86
Apache License 2.0
https://github.com/Dansoftowner/jSystemThemeDetector/blob/master/LICENSE

Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jfa = "1.2.0"
oshi = "6.6.5"
versioncompare = "1.4.1"
jna = "5.16.0"
jSystemThemeDetector = "3.9.1"
jSystemThemeDetector = "b5857fec86"
commons-io = "2.18.0"
jbr-api = "17.1.10.1"
leveldb = "0.12"
Expand Down Expand Up @@ -67,7 +67,7 @@ swingx = { module = "org.swinglabs.swingx:swingx-all", version.ref = "swingx" }
jgoodies-forms = { module = "com.jgoodies:jgoodies-forms", version.ref = "jgoodies-forms" }
jna = { module = "net.java.dev.jna:jna", version.ref = "jna" }
jna-platform = { module = "net.java.dev.jna:jna-platform", version.ref = "jna" }
jSystemThemeDetector = { module = "com.github.Dansoftowner:jSystemThemeDetector", version.ref = "jSystemThemeDetector" }
jSystemThemeDetector = { module = "com.github.hstyi:jSystemThemeDetector", version.ref = "jSystemThemeDetector" }
versioncompare = { module = "io.github.g00fy2:versioncompare", version.ref = "versioncompare" }
jfa = { module = "de.jangassen:jfa", version.ref = "jfa" }
oshi-core = { module = "com.github.oshi:oshi-core", version.ref = "oshi" }
Expand Down
5 changes: 5 additions & 0 deletions src/main/kotlin/app/termora/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ fun main() {
System.setProperty("apple.awt.application.name", Application.getName())
}

// https://github.com/TermoraDev/termora/issues/197
if (SystemUtils.IS_OS_WINDOWS) {
System.setProperty("jthemedetecor.windows.theme.interval", "250")
}

ApplicationRunner().run()
}

Expand Down