theme.go 961 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package config
  2. type (
  3. GuildsTreeTheme struct {
  4. Graphics bool `yaml:"graphics"`
  5. }
  6. MessagesTextTheme struct {
  7. AuthorColor string `yaml:"author_color"`
  8. }
  9. MessageInputTheme struct{}
  10. )
  11. type Theme struct {
  12. Border bool `yaml:"border"`
  13. BorderColor string `yaml:"border_color"`
  14. BorderPadding [4]int `yaml:"border_padding,flow"`
  15. TitleColor string `yaml:"title_color"`
  16. BackgroundColor string `yaml:"background_color"`
  17. GuildsTree GuildsTreeTheme `yaml:"guilds_tree"`
  18. MessagesText MessagesTextTheme `yaml:"messages_text"`
  19. MessageInput MessageInputTheme `yaml:"message_input"`
  20. }
  21. func defTheme() Theme {
  22. return Theme{
  23. Border: true,
  24. BorderColor: "default",
  25. BorderPadding: [...]int{0, 0, 1, 1},
  26. TitleColor: "default",
  27. BackgroundColor: "default",
  28. GuildsTree: GuildsTreeTheme{
  29. Graphics: true,
  30. },
  31. MessagesText: MessagesTextTheme{
  32. AuthorColor: "aqua",
  33. },
  34. MessageInput: MessageInputTheme{},
  35. }
  36. }