termtab-0.1.0.0: TUI guitar tablature and score editor
Safe HaskellNone
LanguageGHC2021

Termtab.UI.Widgets.TrackPanel

Description

The per-track panel stacked into Termtab.UI's main layout: a header naming the track (highlighted when it's the focused/current track) plus its content, laid out according to the track's DisplayMode. Chooses between the rasterized Bravura notation image (Termtab.UI.NotationGraphics) and the plain-text Unicode staff (Termtab.UI.Widgets.Notation) depending on whether graphics blitting is actually available in the current terminal.

Synopsis

Documentation

renderTrackPanel :: AppState -> TrackIndex -> Track -> Widget ResourceName Source #

Render one track's panel. A Standard (non-fretted) instrument is always forced to NotationOnly regardless of its stored DisplayMode (there's no tab to show for it); every other track respects asDisplayModes, falling back to defaultModeFor if the track has no entry there yet.

focusedTrackAttr :: AttrName Source #

Attribute name for a track header when it's the focused track.