fix: fix github parser description position
This commit is contained in:
1 file changed
+3
-3
@@ -100,14 +100,14 @@ object GitHubParseCommand {
|
|||||||
if (repoStat.fork) {
|
if (repoStat.fork) {
|
||||||
g2d.font = forkParentFont
|
g2d.font = forkParentFont
|
||||||
val parentName = repoStat.parent?.fullName!!
|
val parentName = repoStat.parent?.fullName!!
|
||||||
val truncatedParentFullName = setTruncat("Forked from: $parentName", g2d, 1000)
|
val truncatedParentFullName = setTruncat("复刻自 $parentName", g2d, 1000)
|
||||||
g2d.drawString(truncatedParentFullName, 80, 435)
|
g2d.drawString(truncatedParentFullName, 80, 335)
|
||||||
}
|
}
|
||||||
g2d.font = titleCustomFont
|
g2d.font = titleCustomFont
|
||||||
val truncatedFullNameText = setTruncat(repoStat.fullName, g2d, 1000)
|
val truncatedFullNameText = setTruncat(repoStat.fullName, g2d, 1000)
|
||||||
g2d.drawString(truncatedFullNameText, 80, 280)
|
g2d.drawString(truncatedFullNameText, 80, 280)
|
||||||
g2d.font = descriptionCustomFont
|
g2d.font = descriptionCustomFont
|
||||||
g2d.drawString(repoStat.description ?: "暂无描述~", 80, 520, 800)
|
g2d.drawString(repoStat.description ?: "暂无描述~", 80, 400, 800)
|
||||||
val avatarImage = ImageIO.read(URI(repoStat.owner.avatarUrl).toURL())
|
val avatarImage = ImageIO.read(URI(repoStat.owner.avatarUrl).toURL())
|
||||||
g2d.drawCustomImage(avatarImage, 1200, 160, 300.0, 300.0, true)
|
g2d.drawCustomImage(avatarImage, 1200, 160, 300.0, 300.0, true)
|
||||||
g2d.dispose()
|
g2d.dispose()
|
||||||
|
|||||||
Reference in New Issue
Block a user