Skip to content

Commit

Permalink
Update package version and improve icon accessibility
Browse files Browse the repository at this point in the history
- The package version in build.gradle.kts has been updated to 1.0.1.
- The content description for the icons in VectorAssetGenerator.kt no longer contains an empty string. Each icon is now labeled with its respective simple name for better accessibility.
  • Loading branch information
jacobrein committed Apr 23, 2024
1 parent 6ee6657 commit e92c40d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ compose.desktop {
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "Svg Converter"
packageVersion = "1.0.0"
packageVersion = "1.0.1"

macOS {
appStore = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ class VectorAssetGenerator(
.addAnnotation(composableAnnotation)
.addCode(buildCodeBlock {
beginControlFlow("%M(modifier = %M.%M(12.%M))", box, modifier, padding, paddingValue)
addStatement("%M(imageVector = %M, contentDescription = \"\")", composeImage, iconName)
addStatement(
"%M(imageVector = %M, contentDescription = \"${iconName.simpleName}\")",
composeImage,
iconName
)
endControlFlow()
})
.build()
Expand Down

0 comments on commit e92c40d

Please sign in to comment.