@@ -43,6 +43,7 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
43
43
private val focusMouseListener: MouseAdapter
44
44
private var panelContent: DialogPanel
45
45
private val myScrollPane: JBScrollPane
46
+
46
47
init {
47
48
focusMouseListener = object : MouseAdapter () {
48
49
override fun mouseClicked (e : MouseEvent ? ) {
@@ -61,8 +62,8 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
61
62
ScrollPaneConstants .VERTICAL_SCROLLBAR_AS_NEEDED ,
62
63
ScrollPaneConstants .HORIZONTAL_SCROLLBAR_NEVER
63
64
)
64
- myScrollPane.border = JBEmptyBorder (10 , 15 , 10 , 15 )
65
65
myScrollPane.verticalScrollBar.autoscrolls = true
66
+ myScrollPane.background = UIUtil .getListBackground()
66
67
67
68
progressBar = JProgressBar ()
68
69
@@ -87,25 +88,25 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
87
88
})
88
89
89
90
panelContent = panel {
90
- row {
91
- cell(myScrollPane)
92
- .verticalAlign(VerticalAlign .FILL )
93
- .horizontalAlign(HorizontalAlign .FILL )
94
- }.resizableRow()
95
-
96
- row {
97
- cell(progressBar).horizontalAlign(HorizontalAlign .FILL )
98
- }
99
-
100
- row {
101
- cell(actionLink).horizontalAlign(HorizontalAlign .RIGHT )
102
- }
103
-
104
- row {
105
- cell(inputSection).horizontalAlign(HorizontalAlign .FILL )
106
- }
91
+ row {
92
+ cell(myScrollPane)
93
+ .verticalAlign(VerticalAlign .FILL )
94
+ .horizontalAlign(HorizontalAlign .FILL )
95
+ }.resizableRow()
96
+
97
+ row {
98
+ cell(progressBar).horizontalAlign(HorizontalAlign .FILL )
99
+ }
100
+
101
+ row {
102
+ cell(actionLink).horizontalAlign(HorizontalAlign .RIGHT )
107
103
}
108
104
105
+ row {
106
+ cell(inputSection).horizontalAlign(HorizontalAlign .FILL )
107
+ }
108
+ }
109
+
109
110
setContent(panelContent)
110
111
111
112
inputSection.text = " "
@@ -115,7 +116,6 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
115
116
}
116
117
}
117
118
118
-
119
119
fun focusInput () {
120
120
val focusManager = IdeFocusManager .getInstance(chatCodingService.project)
121
121
focusManager.doWhenFocusSettlesDown {
0 commit comments