mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-23 21:12:34 +01:00
Update Darklaf
This commit is contained in:
@@ -11,7 +11,7 @@ plugins {
|
|||||||
id("org.jetbrains.compose") version "0.4.0"
|
id("org.jetbrains.compose") version "0.4.0"
|
||||||
id("de.fuerstenau.buildconfig") version "1.1.8"
|
id("de.fuerstenau.buildconfig") version "1.1.8"
|
||||||
id("org.jmailen.kotlinter") version "3.4.4"
|
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"
|
group = "ca.gosyer"
|
||||||
@@ -32,7 +32,7 @@ dependencies {
|
|||||||
implementation("ca.gosyer:accompanist-pager:0.9.1")
|
implementation("ca.gosyer:accompanist-pager:0.9.1")
|
||||||
|
|
||||||
// UI (Swing)
|
// UI (Swing)
|
||||||
implementation("com.github.weisj:darklaf-core:2.5.5")
|
implementation("com.github.weisj:darklaf-core:2.6.1")
|
||||||
|
|
||||||
// Threading
|
// Threading
|
||||||
val coroutinesVersion = "1.5.0"
|
val coroutinesVersion = "1.5.0"
|
||||||
@@ -43,8 +43,9 @@ dependencies {
|
|||||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1")
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1")
|
||||||
|
|
||||||
// Dependency Injection
|
// Dependency Injection
|
||||||
implementation("com.github.stephanenicolas.toothpick:ktp:3.1.0")
|
val toothpickVersion = "3.1.0"
|
||||||
kapt("com.github.stephanenicolas.toothpick:toothpick-compiler:3.1.0")
|
implementation("com.github.stephanenicolas.toothpick:ktp:$toothpickVersion")
|
||||||
|
kapt("com.github.stephanenicolas.toothpick:toothpick-compiler:$toothpickVersion")
|
||||||
|
|
||||||
// Http client
|
// Http client
|
||||||
val ktorVersion = "1.6.0"
|
val ktorVersion = "1.6.0"
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
plugins {
|
|
||||||
`kotlin-dsl`
|
|
||||||
}
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
@@ -37,6 +37,7 @@ import org.apache.logging.log4j.core.config.Configurator
|
|||||||
import toothpick.configuration.Configuration
|
import toothpick.configuration.Configuration
|
||||||
import toothpick.ktp.KTP
|
import toothpick.ktp.KTP
|
||||||
import toothpick.ktp.extension.getInstance
|
import toothpick.ktp.extension.getInstance
|
||||||
|
import java.util.logging.Level
|
||||||
|
|
||||||
@OptIn(DelicateCoroutinesApi::class)
|
@OptIn(DelicateCoroutinesApi::class)
|
||||||
fun main() {
|
fun main() {
|
||||||
@@ -72,7 +73,13 @@ fun main() {
|
|||||||
ThemeMode.Light -> IntelliJTheme()
|
ThemeMode.Light -> IntelliJTheme()
|
||||||
ThemeMode.Dark -> DarculaTheme()
|
ThemeMode.Dark -> DarculaTheme()
|
||||||
}
|
}
|
||||||
LafManager.enableLogging(BuildConfig.DEBUG)
|
LafManager.setLogLevel(
|
||||||
|
if (BuildConfig.DEBUG) {
|
||||||
|
Level.FINE
|
||||||
|
} else {
|
||||||
|
Level.WARNING
|
||||||
|
}
|
||||||
|
)
|
||||||
withUIContext {
|
withUIContext {
|
||||||
LafManager.install(theme)
|
LafManager.install(theme)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user