Documentation
¶
Index ¶
- func DefaultPath() string
- type AlignmentWrapper
- type BorderSetWrapper
- type BorderTheme
- type Config
- type GuildsTreeKeys
- type GuildsTreeTheme
- type Keys
- type MentionsListKeys
- type MentionsListTheme
- type MessageInputKeys
- type MessagesListKeys
- type MessagesListTheme
- type NavigationKeys
- type Notifications
- type Sound
- type StyleWrapper
- type Theme
- type ThemeStyle
- type Timestamps
- type TitleTheme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
func DefaultPath() string
Types ¶
type AlignmentWrapper ¶
func (*AlignmentWrapper) UnmarshalTOML ¶
func (aw *AlignmentWrapper) UnmarshalTOML(v any) error
type BorderSetWrapper ¶
func (*BorderSetWrapper) UnmarshalTOML ¶
func (bw *BorderSetWrapper) UnmarshalTOML(val any) error
type BorderTheme ¶
type BorderTheme struct {
ThemeStyle
Enabled bool `toml:"enabled"`
Padding [4]int `toml:"padding"`
NormalSet BorderSetWrapper `toml:"normal_set"`
ActiveSet BorderSetWrapper `toml:"active_set"`
}
type Config ¶
type Config struct {
Mouse bool `toml:"mouse"`
Editor string `toml:"editor"`
Status discord.Status `toml:"status"`
Markdown bool `toml:"markdown"`
HideBlockedUsers bool `toml:"hide_blocked_users"`
ShowAttachmentLinks bool `toml:"show_attachment_links"`
// Use 0 to disable
AutocompleteLimit uint8 `toml:"autocomplete_limit"`
MessagesLimit uint8 `toml:"messages_limit"`
Timestamps Timestamps `toml:"timestamps"`
Notifications Notifications `toml:"notifications"`
Keys Keys `toml:"keys"`
Theme Theme `toml:"theme"`
}
type GuildsTreeKeys ¶
type GuildsTreeTheme ¶
type Keys ¶
type Keys struct {
FocusGuildsTree string `toml:"focus_guilds_tree"`
FocusMessagesList string `toml:"focus_messages_list"`
FocusMessageInput string `toml:"focus_message_input"`
FocusPrevious string `toml:"focus_previous"`
FocusNext string `toml:"focus_next"`
ToggleGuildsTree string `toml:"toggle_guilds_tree"`
GuildsTree GuildsTreeKeys `toml:"guilds_tree"`
MessagesList MessagesListKeys `toml:"messages_list"`
MessageInput MessageInputKeys `toml:"message_input"`
MentionsList MentionsListKeys `toml:"mentions_list"`
Logout string `toml:"logout"`
Quit string `toml:"quit"`
}
type MentionsListKeys ¶
type MentionsListTheme ¶
type MessageInputKeys ¶
type MessagesListKeys ¶
type MessagesListKeys struct {
SelectReply string `toml:"select_reply"`
Reply string `toml:"reply"`
ReplyMention string `toml:"reply_mention"`
Cancel string `toml:"cancel"`
Edit string `toml:"edit"`
Delete string `toml:"delete"`
DeleteConfirm string `toml:"delete_confirm"`
Open string `toml:"open"`
YankContent string `toml:"yank_content"`
YankURL string `toml:"yank_url"`
YankID string `toml:"yank_id"`
}
type MessagesListTheme ¶
type MessagesListTheme struct {
ReplyIndicator string `toml:"reply_indicator"`
ForwardedIndicator string `toml:"forwarded_indicator"`
AuthorStyle StyleWrapper `toml:"author_style"`
MentionStyle StyleWrapper `toml:"mention_style"`
EmojiStyle StyleWrapper `toml:"emoji_style"`
URLStyle StyleWrapper `toml:"url_style"`
AttachmentStyle StyleWrapper `toml:"attachment_style"`
}
type NavigationKeys ¶
type NavigationKeys struct {
}
type Notifications ¶
type StyleWrapper ¶
func NewStyleWrapper ¶
func NewStyleWrapper(style tcell.Style) StyleWrapper
func (*StyleWrapper) UnmarshalTOML ¶
func (sw *StyleWrapper) UnmarshalTOML(v any) error
type Theme ¶
type Theme struct {
Title TitleTheme `toml:"title"`
Border BorderTheme `toml:"border"`
GuildsTree GuildsTreeTheme `toml:"guilds_tree"`
MessagesList MessagesListTheme `toml:"messages_list"`
MentionsList MentionsListTheme `toml:"mentions_list"`
}
type ThemeStyle ¶
type ThemeStyle struct {
NormalStyle StyleWrapper `toml:"normal_style"`
ActiveStyle StyleWrapper `toml:"active_style"`
}
type Timestamps ¶
type TitleTheme ¶
type TitleTheme struct {
ThemeStyle
Alignment AlignmentWrapper `toml:"alignment"`
}
Click to show internal directories.
Click to hide internal directories.