浏览代码

fix(ui): set border color to theme.border.color initially

ayn2op 1 年之前
父节点
当前提交
9e95b18ab7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      internal/ui/util.go

+ 1 - 0
internal/ui/util.go

@@ -11,6 +11,7 @@ func NewConfiguredBox(box *tview.Box, cfg *config.Theme) *tview.Box {
 	p := b.Padding
 	box.
 		SetBorder(cfg.Border.Enabled).
+		SetBorderColor(tcell.GetColor(b.Color)).
 		SetBorderPadding(p[0], p[1], p[2], p[3]).
 		SetTitleAlign(tview.AlignLeft).
 		SetFocusFunc(func() {