Skip to content

Commit d7c43ba

Browse files
authored
fix: Use JetBrains default font for inline chat popup (#5739)
Use the JetBrains default font for the inline chat popup. * Canonical with fonts in other popups (e.g find all, search everywhere), instead of editor font * Supports full Unicode fonts in Windows * MacOS unaffected
1 parent f6c58f5 commit d7c43ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Support full Unicode range in inline chat panel on Windows"
4+
}

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/inline/InlineChatPopupPanel.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ import com.intellij.openapi.editor.Caret
1010
import com.intellij.openapi.editor.Editor
1111
import com.intellij.openapi.editor.actionSystem.EditorActionHandler
1212
import com.intellij.openapi.editor.actionSystem.EditorActionManager
13-
import com.intellij.openapi.editor.colors.EditorColorsManager
1413
import com.intellij.openapi.util.Disposer
1514
import com.intellij.ui.IdeBorderFactory
1615
import icons.AwsIcons
1716
import software.aws.toolkits.jetbrains.services.codewhisperer.util.CodeWhispererColorUtil.POPUP_BUTTON_BORDER
1817
import software.aws.toolkits.resources.AmazonQBundle.message
1918
import java.awt.BorderLayout
2019
import java.awt.Dimension
21-
import java.awt.Font
2220
import javax.swing.BorderFactory
2321
import javax.swing.JButton
2422
import javax.swing.JLabel
@@ -95,12 +93,10 @@ class InlineChatPopupPanel(private val parentDisposable: Disposable) : JPanel()
9593
override fun getPreferredSize(): Dimension = Dimension(popupWidth, popupHeight)
9694

9795
private fun createTextField(): JTextField = JTextField().apply {
98-
val editorColorsScheme = EditorColorsManager.getInstance().globalScheme
9996
preferredSize = Dimension(popupInputWidth, popupInputHeight)
10097
border = IdeBorderFactory.createRoundedBorder().apply {
10198
setColor(POPUP_BUTTON_BORDER)
10299
}
103-
font = Font(editorColorsScheme.editorFontName, Font.PLAIN, editorColorsScheme.editorFontSize)
104100
}
105101

106102
private fun createButton(text: String): JButton = JButton(text).apply {

0 commit comments

Comments
 (0)