瀏覽代碼

feat: set borders' rune to 0 and focus borders to regular borders

ayntgl 4 年之前
父節點
當前提交
af1b46797b
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      main.go

+ 13 - 0
main.go

@@ -82,6 +82,19 @@ func main() {
 		app.SetRoot(loginForm, true)
 	}
 
+	tview.Borders.TopLeftFocus = tview.Borders.TopLeft
+	tview.Borders.TopRightFocus = tview.Borders.TopRight
+	tview.Borders.BottomLeftFocus = tview.Borders.BottomLeft
+	tview.Borders.BottomRightFocus = tview.Borders.BottomRight
+	tview.Borders.HorizontalFocus = tview.Borders.Horizontal
+	tview.Borders.VerticalFocus = tview.Borders.Vertical
+	tview.Borders.TopLeft = 0
+	tview.Borders.TopRight = 0
+	tview.Borders.BottomLeft = 0
+	tview.Borders.BottomRight = 0
+	tview.Borders.Horizontal = 0
+	tview.Borders.Vertical = 0
+
 	err := app.Run()
 	if err != nil {
 		panic(err)