Clarify configuration fields

This commit is contained in:
ayn2op 2023-01-23 23:01:19 +05:30
parent e26a4626c5
commit 58cf6de313
3 changed files with 7 additions and 7 deletions

View file

@ -27,12 +27,11 @@ func newGuildsTree() *GuildsTree {
root: tview.NewTreeNode(""),
}
gt.SetGraphics(config.Current.Theme.GuildsTree.Graphics)
gt.SetRoot(gt.root)
gt.SetTopLevel(1)
gt.SetSelectedFunc(gt.onSelected)
gt.SetRoot(gt.root)
gt.SetGraphics(config.Current.Theme.GuildsTree.Graphics)
gt.SetBackgroundColor(tcell.GetColor(config.Current.Theme.BackgroundColor))
gt.SetSelectedFunc(gt.onSelected)
gt.SetTitle("Guilds")
gt.SetTitleColor(tcell.GetColor(config.Current.Theme.TitleColor))

View file

@ -14,11 +14,11 @@ var Current = defConfig()
type Config struct {
// Mouse indicates whether the mouse is usable or not.
Mouse bool `yaml:"mouse"`
// MessagesLimit is the number of messages to be retrieved when a text-based channel is selected.
// MessagesLimit is the number of messages to fetch when a text-based channel is selected.
MessagesLimit uint `yaml:"messages_limit"`
// Timestamps indicates whether the message is to be prefixed with the timestamp or not.
// Timestamps indicates whether to draw the timestamp in front of the message or not.
Timestamps bool `yaml:"timestamps"`
// Editor is the editor program to open when the `LaunchEditor` key is pressed. If the value of the field is "default", the `$EDITOR` environment variable is used instead.
// Editor is the program to open when the `LaunchEditor` key is pressed. If the value of the field is "default", the `$EDITOR` environment variable is used instead.
Editor string `yaml:"editor"`
Keys Keys `yaml:"keys"`

View file

@ -2,6 +2,7 @@ package config
type (
GuildsTreeTheme struct {
// Graphics indicates whether to draw the line graphics to illustrate the hierarchy or not.
Graphics bool `yaml:"graphics"`
}