jdxi_editor.ui.style.midi_player ================================ .. py:module:: jdxi_editor.ui.style.midi_player .. autoapi-nested-parse:: 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 ------- .. autoapisummary:: jdxi_editor.ui.style.midi_player.MidiPlayerStyle jdxi_editor.ui.style.midi_player.PatternEditorStyle Module Contents --------------- .. py:class:: MidiPlayerStyle Bases: :py:obj:`jdxi_editor.ui.style.editor_style.AppEditorStyle` MIDI Player extensions on shared restrained editor chrome. .. py:attribute:: TRACK_HEADER_WIDTH :value: 210 .. py:attribute:: TRACK_HEIGHT :value: 48 .. py:attribute:: TRACK_LABEL_WIDTH :value: 110 .. py:attribute:: TRACK_NUMBER_WIDTH :value: 18 .. py:attribute:: TRACK_ICON_SIZE :value: 18 .. py:attribute:: TRACK_CHANNEL_WIDTH :value: 52 .. py:attribute:: CHANNEL_COLORS .. py:method:: sequencer_button_style(active: bool, checked_means_inactive: bool = False) -> str :classmethod: Mute / sequencer squares: grey idle, accent when unmuted/active. .. py:method:: spin_box_stylesheet() -> str :classmethod: Channel spin: grey idle top border; accent when focused. .. py:method:: track_name_stylesheet(text: str = None) -> str :classmethod: :param text: the name's colour; the player's own text colour if None .. py:attribute:: SOLO :value: '#C88C3C' .. py:method:: channel_mute_stylesheet() -> str :classmethod: Channel mute squares: grey when playing, red when muted; channels the file does not use (property unused=true) are dimmed. .. py:method:: channel_solo_stylesheet() -> str :classmethod: Channel solo squares: like the mute ones, amber (SOLO) when on. .. py:method:: track_toggle_stylesheet(checked_color: str) -> str :classmethod: Track mute/solo: quiet when off, filled with *checked_color* when on. .. py:method:: track_secondary_stylesheet(text: str = None) -> str :classmethod: :param text: the caption's colour; the player's own if None .. py:attribute:: STEP_ON :value: '#B44646' .. py:attribute:: STEP_ON_HOVER :value: '#C85A5A' .. py:attribute:: STEP_OFF :value: '#292929' .. py:attribute:: STEP_OFF_HOVER :value: '#202020' .. py:attribute:: PLAYHEAD :value: '#F2F2F2' .. py:attribute:: PART_COLORS .. py:method:: step_button_style(is_checked: bool, is_current: bool = False, is_selected_bar: bool = False, row: Optional[int] = None) -> str :classmethod: 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. :param is_selected_bar: kept for callers; the displayed bar is always the selected one .. py:class:: PatternEditorStyle Bases: :py:obj:`MidiPlayerStyle` Pattern Editor chrome — same tokens as Midi Player.