Documentation
¶
Index ¶
- func BorderStyles() []string
- func ColorSchemes() []string
- func GlyphStyles() []string
- type Borders
- type Colors
- type Glyphs
- type Settings
- func (s *Settings) Colors() Colors
- func (s *Settings) Glyphs() Glyphs
- func (s *Settings) Save() error
- func (s *Settings) SetBorderStyle(style string)
- func (s *Settings) SetColorScheme(scheme string) error
- func (s *Settings) SetGlyphStyle(style string) error
- func (s *Settings) SetTransparency(enable bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BorderStyles ¶ added in v1.4.2
func BorderStyles() []string
Returns all available border styles
func ColorSchemes ¶ added in v1.4.2
func ColorSchemes() []string
Returns all available color schemes
Types ¶
type Borders ¶ added in v1.4.2
type Borders struct { Horizontal rune Vertical rune TopLeft rune TopRight rune BottomLeft rune BottomRight rune HorizontalFocus rune VerticalFocus rune TopLeftFocus rune TopRightFocus rune BottomLeftFocus rune BottomRightFocus rune }
Borders contains all border elements of our border style
type Colors ¶ added in v1.4.2
type Colors struct { Accent tcell.Color Title tcell.Color SearchBar tcell.Color PackagelistSourceRepository tcell.Color PackagelistSourceAUR tcell.Color PackagelistHeader tcell.Color SettingsFieldBackground tcell.Color SettingsFieldText tcell.Color SettingsFieldLabel tcell.Color SettingsDropdownNotSelected tcell.Color DefaultBackground tcell.Color StylePKGBUILD string // contains filtered or unexported fields }
Colors contains all colors of our color scheme
type Settings ¶
type Settings struct { AurRpcUrl string AurTimeout int AurSearchDelay int AurUseDifferentCommands bool AurInstallCommand string AurUpgradeCommand string DisableAur bool MaxResults int PacmanDbPath string PacmanConfigPath string InstallCommand string UninstallCommand string SysUpgradeCommand string SearchMode string SearchBy string CacheExpiry int DisableCache bool ColorScheme string BorderStyle string ShowPkgbuildCommand string ShowPkgbuildInternally bool ComputeRequiredBy bool GlyphStyle string DisableNewsFeed bool FeedURLs string FeedMaxItems int SaveWindowLayout bool LeftProportion int Transparent bool PackageColumnWidth int EnableAutoSuggest bool SepDepsWithNewLine bool // contains filtered or unexported fields }
Settings is a structure containing our configuration data
func (*Settings) Save ¶
Save is creating / overwriting our configuration file ./config/rpcsearch/config.json
func (*Settings) SetBorderStyle ¶ added in v1.4.2
func (*Settings) SetColorScheme ¶ added in v1.4.2
SetColorScheme applies a color scheme
func (*Settings) SetGlyphStyle ¶ added in v1.6.9
SetGlyphStyle sets a glyph style
func (*Settings) SetTransparency ¶ added in v1.7.3
SetTransparency switched transparency on or off
Click to show internal directories.
Click to hide internal directories.