border color
This commit is contained in:
parent
19de9a1ba2
commit
832d887d38
4 changed files with 5 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ type (
|
|||
|
||||
ThemeConfig struct {
|
||||
Border bool `yaml:"border"`
|
||||
BorderColor string `yaml:"border_color"`
|
||||
BorderPadding [4]int `yaml:"border_padding,flow"`
|
||||
|
||||
TitleColor string `yaml:"title_color"`
|
||||
|
|
@ -115,6 +116,7 @@ func newConfig() (*Config, error) {
|
|||
|
||||
Theme: ThemeConfig{
|
||||
Border: true,
|
||||
BorderColor: "default",
|
||||
BorderPadding: [...]int{0, 0, 1, 1},
|
||||
|
||||
TitleColor: "default",
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ func newGuildsTree() *GuildsTree {
|
|||
|
||||
p := config.Theme.BorderPadding
|
||||
gt.SetBorder(config.Theme.Border)
|
||||
gt.SetBorderColor(tcell.GetColor(config.Theme.BorderColor))
|
||||
gt.SetBorderPadding(p[0], p[1], p[2], p[3])
|
||||
|
||||
return gt
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ func newMessageInput() *MessageInput {
|
|||
|
||||
p := config.Theme.BorderPadding
|
||||
mi.SetBorder(config.Theme.Border)
|
||||
mi.SetBorderColor(tcell.GetColor(config.Theme.BorderColor))
|
||||
mi.SetBorderPadding(p[0], p[1], p[2], p[3])
|
||||
|
||||
return mi
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ func newMessagesText() *MessagesText {
|
|||
|
||||
p := config.Theme.BorderPadding
|
||||
mt.SetBorder(config.Theme.Border)
|
||||
mt.SetBorderColor(tcell.GetColor(config.Theme.BorderColor))
|
||||
mt.SetBorderPadding(p[0], p[1], p[2], p[3])
|
||||
|
||||
return mt
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue