Skip to content

Commit 94ef214

Browse files
committed
refactor: format code
1 parent be683fb commit 94ef214

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
4343
private val focusMouseListener: MouseAdapter
4444
private var panelContent: DialogPanel
4545
private val myScrollPane: JBScrollPane
46+
4647
init {
4748
focusMouseListener = object : MouseAdapter() {
4849
override fun mouseClicked(e: MouseEvent?) {
@@ -61,8 +62,8 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
6162
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
6263
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER
6364
)
64-
myScrollPane.border = JBEmptyBorder(10, 15, 10, 15)
6565
myScrollPane.verticalScrollBar.autoscrolls = true
66+
myScrollPane.background = UIUtil.getListBackground()
6667

6768
progressBar = JProgressBar()
6869

@@ -87,25 +88,25 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
8788
})
8889

8990
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)
107103
}
108104

105+
row {
106+
cell(inputSection).horizontalAlign(HorizontalAlign.FILL)
107+
}
108+
}
109+
109110
setContent(panelContent)
110111

111112
inputSection.text = ""
@@ -115,7 +116,6 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
115116
}
116117
}
117118

118-
119119
fun focusInput() {
120120
val focusManager = IdeFocusManager.getInstance(chatCodingService.project)
121121
focusManager.doWhenFocusSettlesDown {

0 commit comments

Comments
 (0)