feat(config): add theme.guilds_tree.graphics_color field
This commit is contained in:
parent
db4ded3b03
commit
a737b466e2
3 changed files with 5 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ func newGuildsTree(cfg *config.Config) *guildsTree {
|
|||
SetRoot(tview.NewTreeNode("")).
|
||||
SetTopLevel(1).
|
||||
SetGraphics(cfg.Theme.GuildsTree.Graphics).
|
||||
SetGraphicsColor(tcell.GetColor(cfg.Theme.GuildsTree.GraphicsColor)).
|
||||
SetSelectedFunc(gt.onSelected).
|
||||
SetTitle("Guilds").
|
||||
SetInputCapture(gt.onInputCapture)
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ active_style = { foreground = "green" }
|
|||
auto_expand_folders = true
|
||||
# Give tree-like shape
|
||||
graphics = true
|
||||
graphics_color = "default"
|
||||
private_channel_color = "white"
|
||||
guild_color = "white"
|
||||
channel_color = "white"
|
||||
|
|
|
|||
|
|
@ -91,7 +91,9 @@ type (
|
|||
|
||||
GuildsTreeTheme struct {
|
||||
AutoExpandFolders bool `toml:"auto_expand_folders"`
|
||||
Graphics bool `toml:"graphics"`
|
||||
|
||||
Graphics bool `toml:"graphics"`
|
||||
GraphicsColor string `toml:"graphics_color"`
|
||||
|
||||
PrivateChannelColor string `toml:"private_channel_color"`
|
||||
GuildColor string `toml:"guild_color"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue