v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-17 00:00:16 -07:00
GTT/ui.go
2022-10-19 00:06:20 +08:00

26 lines
728 B
Go

package main
import (
"github.com/gdamore/tcell/v2"
)
func ui_init() {
src_box.SetBorder(true).
SetTitle(translator.src_lang).
SetBorderColor(window.src.border_color).
SetTitleColor(window.src.border_color).
SetBackgroundColor(window.src.background_color)
src_box.SetTextStyle(tcell.StyleDefault.
Background(window.src.background_color).
Foreground(window.src.foreground_color))
src_box.SetSelectedStyle(tcell.StyleDefault.
Background(window.src.selected_color).
Foreground(window.src.foreground_color))
dest_box.SetBorder(true).
SetTitle(translator.dest_lang).
SetBorderColor(window.dest.border_color).
SetTitleColor(window.dest.border_color).
SetBackgroundColor(window.dest.background_color)
}