Update Darklaf

This commit is contained in:
Syer10
2021-06-01 17:58:17 -04:00
parent 9d3907398f
commit 3f7e88f82b
3 changed files with 13 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ plugins {
id("org.jetbrains.compose") version "0.4.0"
id("de.fuerstenau.buildconfig") version "1.1.8"
id("org.jmailen.kotlinter") version "3.4.4"
id("com.github.ben-manes.versions") version "0.38.0"
id("com.github.ben-manes.versions") version "0.39.0"
}
group = "ca.gosyer"
@@ -32,7 +32,7 @@ dependencies {
implementation("ca.gosyer:accompanist-pager:0.9.1")
// UI (Swing)
implementation("com.github.weisj:darklaf-core:2.5.5")
implementation("com.github.weisj:darklaf-core:2.6.1")
// Threading
val coroutinesVersion = "1.5.0"
@@ -43,8 +43,9 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1")
// Dependency Injection
implementation("com.github.stephanenicolas.toothpick:ktp:3.1.0")
kapt("com.github.stephanenicolas.toothpick:toothpick-compiler:3.1.0")
val toothpickVersion = "3.1.0"
implementation("com.github.stephanenicolas.toothpick:ktp:$toothpickVersion")
kapt("com.github.stephanenicolas.toothpick:toothpick-compiler:$toothpickVersion")
// Http client
val ktorVersion = "1.6.0"

View File

@@ -1,6 +0,0 @@
plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
}

View File

@@ -37,6 +37,7 @@ import org.apache.logging.log4j.core.config.Configurator
import toothpick.configuration.Configuration
import toothpick.ktp.KTP
import toothpick.ktp.extension.getInstance
import java.util.logging.Level
@OptIn(DelicateCoroutinesApi::class)
fun main() {
@@ -72,7 +73,13 @@ fun main() {
ThemeMode.Light -> IntelliJTheme()
ThemeMode.Dark -> DarculaTheme()
}
LafManager.enableLogging(BuildConfig.DEBUG)
LafManager.setLogLevel(
if (BuildConfig.DEBUG) {
Level.FINE
} else {
Level.WARNING
}
)
withUIContext {
LafManager.install(theme)
}