Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppName = "Jellycli" Version = "0.0.1" AudioSamplingRate = 44100 AudioBufferPeriod = time.Millisecond * 50 // Volume range, not absolute values AudioMinVolumeDb = -6 AudioMaxVolumeDb = 0 AudioMinVolume = 0 AudioMaxVolume = 100 // Audio volume is logarithmic, which base to use AudioVolumeLogBase = 2 Debug = false CacheTimeout = time.Minute * 5 SongHistorySize = 100 LatestMusicCount = "50" )
Variables ¶
View Source
var ( ColorBackground = tcell.Color234 //Dark gray ColorPrimary = tcell.Color51 // Cyan ColorPrimaryDim = tcell.Color44 // Ligh cyan ColorSecondary = tcell.Color141 // ColorSecondaryDim = tcell.Color134 ColorBorder = tcell.Color246 // Gray ColorBorderFocus = tcell.Color253 ColroMainFrame = tcell.Color246 // Lighter gray ColorControls = tcell.Color202 // Orange ColorProgress = tcell.Color202 // Orange ColorLightext = tcell.Color250 )
View Source
var GridBordersColor = ColorSecondary
View Source
var GridBordersShow = true
View Source
var (
KeyBinds = DefaultKeyBindings()
)
Functions ¶
func DebugGridBorders ¶
DebugGridBorders enables grid borders if config.Debug is true and if config.GridBordesShow is true Else do nothing
Types ¶
type GlobalBindings ¶
type GlobalBindings struct { PlayPause tcell.Key Next tcell.Key Previous tcell.Key Forward tcell.Key Backward tcell.Key VolumeUp tcell.Key VolumeDown tcell.Key MuteUnmute tcell.Key }
GlobalBindings can have only one action since they override all others
type KeyBindings ¶
type KeyBindings struct { Global GlobalBindings Moving MovingBindings Panel PanelBindings }
func DefaultKeyBindings ¶
func DefaultKeyBindings() KeyBindings
type MovingBindings ¶
type MovingBindings struct { Up tcell.Key Down tcell.Key Left tcell.Key Right tcell.Key UpAlt tcell.Key DownAlt tcell.Key LeftAlt tcell.Key RightAlt tcell.Key }
MovingBindings control moving cursor inside panel
type NavigationBarBindings ¶
type NavigationBarBindings struct {}
NavigationBarBindings also override every other key
type PanelBindings ¶
type PanelBindings struct {
MovingBindings
}
PanelBindings moving between panels
Click to show internal directories.
Click to hide internal directories.