Skip to content

Commit

Permalink
Enhance MilStd2525 Render Settings and Color mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksymenko committed Jan 18, 2025
1 parent efe67e0 commit e1868c1
Show file tree
Hide file tree
Showing 18 changed files with 10,540 additions and 113 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repositories {
}
dependencies {
implementation 'earth.worldwind:worldwind:1.6.7'
implementation 'earth.worldwind:worldwind:1.6.9'
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildscript {

allprojects {
group = "earth.worldwind"
version = "1.6.7"
version = "1.6.9"

extra.apply {
set("minSdk", 21)
Expand Down
2 changes: 1 addition & 1 deletion worldwind-examples-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ dependencies {
implementation("com.google.android.material:material:1.12.0")
implementation("io.github.missioncommand:mil-sym-android-renderer:0.1.60")

coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.3")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
}
2 changes: 1 addition & 1 deletion worldwind-tutorials/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ android {
}

dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.3")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
}
4 changes: 2 additions & 2 deletions worldwind/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ android {
}

dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.3")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
}

// Do not generate Intrinsics runtime assertion for performance reasons
Expand All @@ -182,7 +182,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class)
}
}

val dokkaOutputDir = "${layout.buildDirectory}/dokka"
val dokkaOutputDir = "${layout.buildDirectory.get()}/dokka"
tasks.getByName<org.jetbrains.dokka.gradle.DokkaTask>("dokkaHtml") {
outputDirectory.set(file(dokkaOutputDir))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ actual object MilStd2525 {
family = RendererSettings.getModifierFontName(),
weight = RendererSettings.getModifierFontStyle()
)
textColor.set(RendererSettings.getLabelForegroundColor().toInt())
outlineColor.set(RendererSettings.getLabelBackgroundColor().toInt())
val foregroundColor = RendererSettings.getLabelForegroundColor() ?: Color(0, 0, 0)
val backgroundColor = RendererSettings.getLabelBackgroundColor() ?: Color.getColorFromHexString(
RendererUtilities.getIdealOutlineColor(foregroundColor.toHexString(withAlpha = false), forceRGB = true)
)
textColor.set(foregroundColor.toARGB().toInt())
outlineColor.set(backgroundColor.toARGB().toInt())
outlineWidth = RendererSettings.getTextOutlineWidth().toFloat()
}

Expand Down
Loading

0 comments on commit e1868c1

Please sign in to comment.