jdxi_editor.ui.style.midi_player
MIDI Player visual tokens and player-scoped stylesheets.
Chrome comes from AppEditorStyle; this module adds timeline / mute / step helpers. Red (ACCENT) is reserved for active/selected/playhead — not idle chrome.
Classes
MIDI Player extensions on shared restrained editor chrome. |
|
Pattern Editor chrome — same tokens as Midi Player. |
Module Contents
- class jdxi_editor.ui.style.midi_player.MidiPlayerStyle[source]
Bases:
jdxi_editor.ui.style.editor_style.AppEditorStyleMIDI Player extensions on shared restrained editor chrome.
- classmethod sequencer_button_style(active: bool, checked_means_inactive: bool = False) str[source]
Mute / sequencer squares: grey idle, accent when unmuted/active.
- classmethod spin_box_stylesheet() str[source]
Channel spin: grey idle top border; accent when focused.
- classmethod track_name_stylesheet(text: str = None) str[source]
- Parameters:
text – the name’s colour; the player’s own text colour if None
- classmethod channel_mute_stylesheet() str[source]
Channel mute squares: grey when playing, red when muted; channels the file does not use (property unused=true) are dimmed.
- classmethod channel_solo_stylesheet() str[source]
Channel solo squares: like the mute ones, amber (SOLO) when on.
- classmethod track_toggle_stylesheet(checked_color: str) str[source]
Track mute/solo: quiet when off, filled with checked_color when on.
- classmethod track_secondary_stylesheet(text: str = None) str[source]
- Parameters:
text – the caption’s colour; the player’s own if None
- classmethod step_button_style(is_checked: bool, is_current: bool = False, is_selected_bar: bool = False, row: int | None = None) str[source]
Sequencer step cell.
Off: grey. On: filled with the part colour of row (Digital 1 red, Digital 2 amber, Analog teal, Drums purple). Playhead: a light outline, visible on every part colour. Steps of a muted row (property
mutedtrue) and disabled steps are dimmed.- Parameters:
is_selected_bar – kept for callers; the displayed bar is always the selected one
- class jdxi_editor.ui.style.midi_player.PatternEditorStyle[source]
Bases:
MidiPlayerStylePattern Editor chrome — same tokens as Midi Player.