summaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/dev/kdrag0n/monet/theme/DynamicColorScheme.kt10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/kotlin/dev/kdrag0n/monet/theme/DynamicColorScheme.kt b/src/main/kotlin/dev/kdrag0n/monet/theme/DynamicColorScheme.kt
index b411843..278417f 100644
--- a/src/main/kotlin/dev/kdrag0n/monet/theme/DynamicColorScheme.kt
+++ b/src/main/kotlin/dev/kdrag0n/monet/theme/DynamicColorScheme.kt
@@ -24,7 +24,9 @@ class DynamicColorScheme(
private val seedAccent = seedNeutral
init {
- Log.i(TAG, "Seed color: ${seedColor.convert<Srgb>().toHex()} => $seedNeutral")
+ if (DEBUG) {
+ Log.d(TAG, "Seed color: ${seedColor.convert<Srgb>().toHex()} => $seedNeutral")
+ }
}
// Main accent color. Generally, this is close to the seed color.
@@ -56,7 +58,10 @@ class DynamicColorScheme(
val newLch = transformColor(target, seed, reference)
val newSrgb = newLch.convert<Srgb>()
- Log.d(TAG, "Transform: [$shade] $target => $newLch => ${newSrgb.toHex()}")
+ if (DEBUG) {
+ Log.d(TAG, "Transform: [$shade] $target => $newLch => ${newSrgb.toHex()}")
+ }
+
shade to newSrgb
}.toMap()
}
@@ -92,6 +97,7 @@ class DynamicColorScheme(
companion object {
private const val TAG = "DynamicColorScheme"
+ private const val DEBUG = false
// Hue shift for the tertiary accent color (accent3), in degrees.
// 60 degrees = shifting by a secondary color