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

MidiPlayerStyle

MIDI Player extensions on shared restrained editor chrome.

PatternEditorStyle

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.AppEditorStyle

MIDI Player extensions on shared restrained editor chrome.

TRACK_HEADER_WIDTH = 210[source]
TRACK_HEIGHT = 48[source]
TRACK_LABEL_WIDTH = 110[source]
TRACK_NUMBER_WIDTH = 18[source]
TRACK_ICON_SIZE = 18[source]
TRACK_CHANNEL_WIDTH = 52[source]
CHANNEL_COLORS[source]
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

SOLO = '#C88C3C'[source]
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

STEP_ON = '#B44646'[source]
STEP_ON_HOVER = '#C85A5A'[source]
STEP_OFF = '#292929'[source]
STEP_OFF_HOVER = '#202020'[source]
PLAYHEAD = '#F2F2F2'[source]
PART_COLORS[source]
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 muted true) 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: MidiPlayerStyle

Pattern Editor chrome — same tokens as Midi Player.