config

package
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(s Screen)

Types

type Config

type Config struct {
	Background          bool                   `mapstructure:"background"`
	BackgroundColor     map[string]int         `mapstructure:"background_color"`
	DefaultCursor       string                 `mapstructure:"default_cursor"`
	DefaultColor        map[string]int         `mapstructure:"default_color"`
	Pointer             string                 `mapstructure:"pointer"`
	PointerColor        map[string]int         `mapstructure:"pointer_color"`
	Symbols             map[int]map[int]string `mapstructure:"symbols"`
	ShowFolder          bool                   `mapstructure:"show_folder"`
	ShowHiddenFolder    bool                   `mapstructure:"show_hidden_folder"`
	ImageSaveDirectory  string                 `mapstructure:"image_save_directory"`
	ImageSaveNameFormat string                 `mapstructure:"image_save_name_format"`
	NotificationTime    int                    `mapstructure:"notification_time"`
	Notifications       struct {
		SetSymbol           bool `mapstructure:"set_symbol"`
		Error               bool `mapstructure:"error"`
		SaveImage           bool `mapstructure:"save_image"`
		LoadImageSizeErrors bool `mapstructure:"load_image_size_errors"`
	} `mapstructure:"notifications"`
}

func (*Config) GetBackgroundColor added in v1.2.6

func (c *Config) GetBackgroundColor() map[string]int

func (*Config) GetColor added in v1.2.6

func (c *Config) GetColor() pixel.Color

func (*Config) GetDefaultCursor added in v1.2.6

func (c *Config) GetDefaultCursor() string

func (*Config) GetImageSaveDirectory added in v1.2.6

func (c *Config) GetImageSaveDirectory() string

func (*Config) GetNotificationTime added in v1.2.6

func (c *Config) GetNotificationTime() int

func (*Config) SetImageSaveDirectory added in v1.2.6

func (c *Config) SetImageSaveDirectory(directory string)

func (*Config) WithBackground added in v1.2.6

func (c *Config) WithBackground() bool

type Screen added in v1.2.6

type Screen interface {
	SetConfig(Config)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL