Skip to content

Commit 81423d6

Browse files
authored
Make license tag bold and italic (#3269)
1 parent a0a4f8a commit 81423d6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/toolwindow/CodeWhispererCodeReferenceComponents.kt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,21 @@ class CodeWhispererCodeReferenceComponents(private val project: Project) {
8181
// if url to source package/repo is missing, the UX remains the same as we have for now
8282
// if url to source package/repo is present, the url pointing to the source will be present and remove the hyperlink to SPDX
8383
if (ref.url().isNullOrEmpty()) {
84-
add(licenseNameLink(ref.licenseName()), inlineLabelConstraints)
84+
add(
85+
licenseNameLink(ref.licenseName()).apply {
86+
font = font.deriveFont(Font.ITALIC + Font.BOLD)
87+
},
88+
inlineLabelConstraints
89+
)
8590
add(JLabel(" from ").asCodeReferencePanelFont(), inlineLabelConstraints)
8691
add(JLabel(ref.repository()), inlineLabelConstraints)
8792
} else {
88-
add(JLabel(ref.licenseName()), inlineLabelConstraints)
93+
add(
94+
JLabel(ref.licenseName()).apply {
95+
font = font.deriveFont(Font.ITALIC + Font.BOLD)
96+
},
97+
inlineLabelConstraints
98+
)
8999
add(JLabel(" from ").asCodeReferencePanelFont(), inlineLabelConstraints)
90100
add(repoNameLink(ref.repository(), ref.url()), inlineLabelConstraints)
91101
}

0 commit comments

Comments
 (0)