| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package config
- type (
- GuildsTreeTheme struct {
- Graphics bool `yaml:"graphics"`
- }
- MessagesTextTheme struct {
- AuthorColor string `yaml:"author_color"`
- }
- MessageInputTheme struct{}
- )
- type Theme struct {
- Border bool `yaml:"border"`
- BorderColor string `yaml:"border_color"`
- BorderPadding [4]int `yaml:"border_padding,flow"`
- TitleColor string `yaml:"title_color"`
- BackgroundColor string `yaml:"background_color"`
- GuildsTree GuildsTreeTheme `yaml:"guilds_tree"`
- MessagesText MessagesTextTheme `yaml:"messages_text"`
- MessageInput MessageInputTheme `yaml:"message_input"`
- }
- func newTheme() Theme {
- return Theme{
- Border: true,
- BorderColor: "default",
- BorderPadding: [...]int{0, 0, 1, 1},
- TitleColor: "default",
- BackgroundColor: "default",
- GuildsTree: GuildsTreeTheme{
- Graphics: true,
- },
- MessagesText: MessagesTextTheme{
- AuthorColor: "aqua",
- },
- MessageInput: MessageInputTheme{},
- }
- }
|