|
@@ -8,20 +8,33 @@ import (
|
|
|
|
|
|
|
|
const name = "discordo"
|
|
const name = "discordo"
|
|
|
|
|
|
|
|
|
|
+type GuildsTreeThemeConfig struct {
|
|
|
|
|
+ Border bool
|
|
|
|
|
+ Graphics bool
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+type MessagesTextThemeConfig struct {
|
|
|
|
|
+ Border bool
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+type MessageInputThemeConfig struct {
|
|
|
|
|
+ Border bool
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
type ThemeConfig struct {
|
|
type ThemeConfig struct {
|
|
|
BorderPadding [4]int
|
|
BorderPadding [4]int
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-type GuildsTreeKeysConfig struct {
|
|
|
|
|
- Graphics bool
|
|
|
|
|
|
|
+ GuildsTree GuildsTreeThemeConfig
|
|
|
|
|
+ MessagesText MessagesTextThemeConfig
|
|
|
|
|
+ MessageInput MessageInputThemeConfig
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type MessagesTextKeysConfig struct {
|
|
type MessagesTextKeysConfig struct {
|
|
|
SelectPreviousMessage string
|
|
SelectPreviousMessage string
|
|
|
|
|
+ SelectNextMessage string
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type KeysConfig struct {
|
|
type KeysConfig struct {
|
|
|
- GuildsTree GuildsTreeKeysConfig
|
|
|
|
|
MessagesText MessagesTextKeysConfig
|
|
MessagesText MessagesTextKeysConfig
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -50,10 +63,23 @@ func newConfig() (*Config, error) {
|
|
|
|
|
|
|
|
Theme: ThemeConfig{
|
|
Theme: ThemeConfig{
|
|
|
BorderPadding: [...]int{1, 1, 1, 1},
|
|
BorderPadding: [...]int{1, 1, 1, 1},
|
|
|
|
|
+
|
|
|
|
|
+ GuildsTree: GuildsTreeThemeConfig{
|
|
|
|
|
+ Border: true,
|
|
|
|
|
+ Graphics: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ MessagesText: MessagesTextThemeConfig{
|
|
|
|
|
+ Border: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ MessageInput: MessageInputThemeConfig{
|
|
|
|
|
+ Border: true,
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
Keys: KeysConfig{
|
|
Keys: KeysConfig{
|
|
|
- GuildsTree: GuildsTreeKeysConfig{Graphics: true},
|
|
|
|
|
- MessagesText: MessagesTextKeysConfig{SelectPreviousMessage: "Up"},
|
|
|
|
|
|
|
+ MessagesText: MessagesTextKeysConfig{
|
|
|
|
|
+ SelectPreviousMessage: "Up",
|
|
|
|
|
+ SelectNextMessage: "Down",
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
path = filepath.Join(path, "config.json")
|
|
path = filepath.Join(path, "config.json")
|