Skip to content

Commit fefc3d9

Browse files
committed
refactor(ui): update border and background styling in plan panels #331
- Replace empty border with compound border in AutoDevPlanerToolWindowFactory. - Remove redundant background setting in TaskPanel.
1 parent fc379dc commit fefc3d9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

core/src/main/kotlin/cc/unitmesh/devti/gui/AutoDevPlanerToolWindowFactory.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import com.intellij.openapi.wm.ToolWindowManager
1616
import com.intellij.openapi.wm.ex.ToolWindowManagerListener
1717
import com.intellij.ui.dsl.builder.panel
1818
import com.intellij.util.ui.JBUI
19+
import com.intellij.util.ui.UIUtil
1920
import java.awt.BorderLayout
2021
import java.util.concurrent.atomic.AtomicBoolean
2122

@@ -61,7 +62,11 @@ class AutoDevPlanerTooWindow(val project: Project) : SimpleToolWindowPanel(true,
6162
cell(planSketch).resizableColumn()
6263
}
6364
}.apply {
64-
border = JBUI.Borders.empty(8)
65+
border = JBUI.Borders.compound(
66+
JBUI.Borders.customLine(UIUtil.getBoundsColor(), 0, 0, 1, 0),
67+
JBUI.Borders.empty(8)
68+
)
69+
background = JBUI.CurrentTheme.ToolWindow.background()
6570
}
6671

6772
add(planPanel, BorderLayout.CENTER)

core/src/main/kotlin/cc/unitmesh/devti/sketch/ui/plan/TaskPanel.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class TaskPanel(
4242

4343
add(taskLabel)
4444

45-
background = JBUI.CurrentTheme.ToolWindow.background()
4645
setupContextMenu()
4746
}
4847

0 commit comments

Comments
 (0)