jdxi_editor.ui.style.rack_skin

The look of a panel, as an object: the faceplate painted behind the content, any rack ears beside it, and the palette its display picks up.

A skin owns chrome only, never layout. The room it is allowed to take is the three numbers it declares – JDXiSkin.ear_width, JDXiSkin.bezel and JDXiSkin.rail_height – which JDXiSkin.content_margins() turns into the margins RackPanel sets on its layout. Everything left over belongs to the content, so a skin cannot quietly grow.

The default skin is the JD-Xi’s shiny black panel exactly as it was before skins existed, so wrapping something in a RackPanel changes nothing until another skin is chosen.

A skin drives three things:

  • the chrome a RackPanel paints,

  • the panel image behind an editor’s outermost groups (mark_sheen, which reaches them as a stylesheet border-image: see jdxi_editor.ui.style.editor_style.gloss_panel_file()),

  • the colours of the LCD widgets, so a brushed aluminium faceplate is not left with a Roland-orange display.

The reusable part – the JDXiSkin base, its palettes and textures, the SkinRegistry and the RackPanel / RackEars widgets – lives in picoui.skin. This module holds the editor’s own skins, its REGISTRY of them, and the restyling the editor needs when the skin changes (the registry’s listener).

Adding one means subclassing JDXiSkin, declaring those three numbers and its look – a FaceSpec as face and an EarSpec as ear – then adding it to REGISTRY. The machine details are specs too (the TB-303’s keyboard, the TR-909’s steps, the MS-20’s patch cords), so any skin can borrow one. A paint hook is overridden only for what no spec describes yet: the Minimoog’s rail is the one left.

The choice is remembered in QSettings under ui/skin.

Attributes

SKIN_SETTING

EDITOR_ACCENT

ROLAND_LCD

JDXV_BLUE_LCD

AMBER_LCD

LED_RED_LCD

LED_303_LCD

LED_909_LCD

LED_JP8_LCD

VINTAGE_GREEN_LCD

JUNO_LCD

PLAIN_LANES

JDXV_CHAMFER

SATIN_HIGHLIGHT

SATIN_BASE

SATIN_SHADOW

SATIN_DARK

BRUSHED_70S_COLOR_STOPS

JUNO_WOOD

IVORY_PAINT

TR808_CHARCOAL

TB303_CHEEK

TR909_STEEL

TR909_CHEEK

TR1000_LETTERING

TR1000_ACCENT

TR1000_RULE

TR1000_CHEEK_LIGHT

TR1000_CHEEK_DEEP

TR1000_LCD

TR1000_PANEL

TR1000_CHEEK

JP8_SHADE

JP8_CHEEK

JDXI_RED_BODY

JDXI_WHITE_BODY

JUNO_SLATE

MINI_WOOD

MINI_LCD

MINI_PANEL

OLED_LCD

MC101_BODY

MC101_SIDE_EDGE

MC101_SIDE

ICE_LCD

MS20_PANEL

SH101_LED_LCD

SH101_PANEL

ARP_LCD

REGISTRY

SKINS

_PANEL_IMAGE

Classes

MeterStyle

How the Audio Monitor draws its level meters. Any skin can take any of

LaneStyle

How the MIDI player draws its track lanes.

JDXiSkin

The JD-Xi's shiny black panel, and the base every editor skin extends.

JdxiRackSkin

The JD-Xi as a 1U rack unit, after the JDXV: brushed gunmetal rather than

Brushed70sSkin

Satin-finished aluminium with a green display, as 1970s rack gear had.

IvoryWalnutSkin

Ivory painted steel with walnut end cheeks, as on 1970s studio gear.

Tr808Skin

The TR-808: matte charcoal, orange silkscreen, teak cheeks, and the

Tb303Skin

The TB-303 Bass Line: the silver box, orange knob line, red LED numerals

Tr909Skin

The TR-909: a light grey box with blue silkscreen, dark end cheeks, and

Tr1000Skin

The TR-1000: a modern rhythm machine in mid grey, with dark cheeks, a

Jupiter8Skin

The Jupiter-8: a textured near-black panel under bold red section bars,

RedJdxiSkin

The red JD-Xi: the same glossy black control panel, set into a scarlet

WhiteJdxiSkin

The white JD-Xi: a silver control panel set into a white body.

Juno106Skin

The Juno-106: a matte slate panel, a red bar and a blue bar along the

MiniMoogSkin

The Minimoog: a matte black panel set in a walnut cabinet.

Mc101Skin

The MC-101 groovebox: a compact matte black body, a white OLED, and the

Ms20Skin

The Korg MS-20: a matte black panel with its sections boxed in white

Sh101Skin

The SH-101: a dark matte control panel set in a coloured plastic body.

Sh101RedSkin

The SH-101 in red.

Sh101BlueSkin

The SH-101 in blue.

Arp2600Skin

The ARP 2600: a dark charcoal panel printed in white, in a black case,

Functions

group_colors(colors, per_group, count[, dim]) → tuple

A colour for each of count steps lit in groups: each group takes the

_editor_settings_store() → Optional[picoui.skin.QSettingsStore]

skin_by_id(skin_id) → picoui.skin.Skin

The skin skin_id names, falling back to the default.

active_skin() → picoui.skin.Skin

The skin everything is drawn with.

set_active_skin(skin, *[, remember]) → picoui.skin.Skin

Change the skin, and restyle the running application.

_restyle_application([_skin]) → None

Repoint the chrome at the new skin's panel image.

_size(size) → tuple

The width and height a panel image's name ends with.

Module Contents

jdxi_editor.ui.style.rack_skin.SKIN_SETTING = 'ui/skin'[source]
jdxi_editor.ui.style.rack_skin.EDITOR_ACCENT = '#E04435'[source]
jdxi_editor.ui.style.rack_skin.ROLAND_LCD[source]
jdxi_editor.ui.style.rack_skin.JDXV_BLUE_LCD[source]
jdxi_editor.ui.style.rack_skin.AMBER_LCD[source]
jdxi_editor.ui.style.rack_skin.LED_RED_LCD[source]
jdxi_editor.ui.style.rack_skin.LED_303_LCD[source]
jdxi_editor.ui.style.rack_skin.LED_909_LCD[source]
jdxi_editor.ui.style.rack_skin.LED_JP8_LCD[source]
jdxi_editor.ui.style.rack_skin.VINTAGE_GREEN_LCD[source]
jdxi_editor.ui.style.rack_skin.JUNO_LCD[source]
class jdxi_editor.ui.style.rack_skin.MeterStyle[source]

Bases: str, enum.Enum

How the Audio Monitor draws its level meters. Any skin can take any of them: the meter belongs to the skin’s era, not to its material.

BARS = 'bars'[source]
NEEDLES = 'needles'[source]
VINTAGE_VU = 'vintage_vu'[source]
class jdxi_editor.ui.style.rack_skin.LaneStyle[source]

How the MIDI player draws its track lanes.

Parameters:
  • cards – bool each lane drawn as a punched card

  • backing – Material the cards lie on, filling the lane list behind them: the cabinet’s wood, or the faceplate’s metal

cards: bool = False[source]
backing: picoui.skin.spec.Material[source]
jdxi_editor.ui.style.rack_skin.PLAIN_LANES[source]
class jdxi_editor.ui.style.rack_skin.JDXiSkin[source]

Bases: picoui.skin.Skin

The JD-Xi’s shiny black panel, and the base every editor skin extends.

The painting, margins and palette machinery are picoui’s JDXiSkin; what is added here is the JD-Xi’s own display and the editor’s features a skin chooses: its meter style on the Audio Monitor and its lanes in the MIDI player.

skin_id = 'glossy_black'[source]
label = 'JD-Xi Black'[source]
lcd[source]
meter[source]
lanes[source]
panel_text: str | None = None[source]
panel_heading_background: str | None = None[source]
panel_heading_background_alt: str | None = None[source]
jdxi_editor.ui.style.rack_skin.JDXV_CHAMFER[source]
class jdxi_editor.ui.style.rack_skin.JdxiRackSkin[source]

Bases: JDXiSkin

The JD-Xi as a 1U rack unit, after the JDXV: brushed gunmetal rather than the shiny black plastic, a lit chamfer along the top, a red stripe along the bottom, and a blue backlit screen.

The chamfer and the stripe are painted as part of the face rather than as chrome around it. That costs no room – both sit in the bezel the content already leaves free – and, more importantly, it is what makes the skin recognisable: the faceplate reaches an editor’s groups as a nine-slice image whose top and bottom edges are drawn unstretched, so anything in them appears on every panel in the application. The ears are not part of that image – a nine-slice would stretch them – so a RackPanel or a RackEars strip draws them itself.

skin_id = 'jdxi_rack'[source]
label = 'JD-Xi Rackmount'[source]
ear_width = 16[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
rail_color = '#E04435'[source]
chassis[source]
rail_thickness = 4[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.SATIN_HIGHLIGHT = '#C5C5C1'[source]
jdxi_editor.ui.style.rack_skin.SATIN_BASE = '#A6A6A3'[source]
jdxi_editor.ui.style.rack_skin.SATIN_SHADOW = '#777875'[source]
jdxi_editor.ui.style.rack_skin.SATIN_DARK = '#8A8A87'[source]
jdxi_editor.ui.style.rack_skin.BRUSHED_70S_COLOR_STOPS[source]
class jdxi_editor.ui.style.rack_skin.Brushed70sSkin[source]

Bases: JDXiSkin

Satin-finished aluminium with a green display, as 1970s rack gear had.

The panel is a bevel: lit along its top edge, shadowed along its bottom, with the grain kept faint enough that the metal reads by its gradient rather than by its texture. Legends are ink, and red is reserved for lamps.

skin_id = 'brushed_70s'[source]
label = 'Brushed Metal (70s)'[source]
ear_width = 18[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
ink_legends = True[source]
mounted_controls = True[source]
meter[source]
lanes[source]
chassis[source]
base_color = '#A6A6A3'[source]
highlight_color = '#C5C5C1'[source]
shadow_color = '#777875'[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.JUNO_WOOD[source]
jdxi_editor.ui.style.rack_skin.IVORY_PAINT[source]
class jdxi_editor.ui.style.rack_skin.IvoryWalnutSkin[source]

Bases: JDXiSkin

Ivory painted steel with walnut end cheeks, as on 1970s studio gear.

The one pale faceplate in the set, which is why Foreground exists: its lettering is ink rather than near-white, while the controls standing on it keep their dark surfaces.

skin_id = 'ivory_walnut'[source]
label = 'Ivory & Walnut'[source]
ear_width = 18[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
stripe_color = '#684022'[source]
chassis[source]
stripe_thickness = 2[source]
highlight_color = (255, 253, 248)[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.TR808_CHARCOAL[source]
class jdxi_editor.ui.style.rack_skin.Tr808Skin[source]

Bases: JDXiSkin

The TR-808: matte charcoal, orange silkscreen, teak cheeks, and the step-button run of red, orange, yellow and white along the bottom.

That run of colour is the machine, so it goes in the face rather than in chrome around it: the bottom edge of the nine-slice is drawn on every panel in the application, where ears and rails never appear.

skin_id = 'tr808'[source]
label = 'TR-808'[source]
ear_width = 14[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
accent_color = '#E8622A'[source]
chassis[source]
step_colors = ('#E33B2E', '#EE7B2C', '#EFC93F', '#EDE9DC')[source]
step_band = 4[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.TB303_CHEEK[source]
class jdxi_editor.ui.style.rack_skin.Tb303Skin[source]

Bases: JDXiSkin

The TB-303 Bass Line: the silver box, orange knob line, red LED numerals and the little keyboard of step buttons along the bottom.

Its faceplate is flat painted metal rather than brushed, which is what separates it from the satin aluminium skin at a glance; the keyboard band separates it from everything else. Both live in the face, so they reach every panel rather than only a RackPanel.

skin_id = 'tb303'[source]
label = 'TB-303'[source]
ear_width = 14[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
accent_color = '#E87328'[source]
chassis[source]
key_ivory = '#E6E3D8'[source]
key_black = '#1A1A1A'[source]
key_band = 5[source]
key_octaves = 4[source]
panel_stops[source]
highlight_color = (206, 210, 208)[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.TR909_STEEL[source]
jdxi_editor.ui.style.rack_skin.TR909_CHEEK[source]
class jdxi_editor.ui.style.rack_skin.Tr909Skin[source]

Bases: JDXiSkin

The TR-909: a light grey box with blue silkscreen, dark end cheeks, and the sixteen cream step buttons with a red LED over each one.

That row of buttons and lights is the machine’s face, so it goes in the faceplate’s bottom edge and appears on every panel. The steps are drawn in fours, as they are grouped on the hardware.

skin_id = 'tr909'[source]
label = 'TR-909'[source]
ear_width = 14[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
accent_color = '#2C6AB0'[source]
chassis[source]
button_color = '#E8E6DC'[source]
led_color = '#FF3A20'[source]
led_off_color = '#3A1410'[source]
strip_color = '#4A4A47'[source]
button_band = 4[source]
led_band = 2[source]
steps = 16[source]
steps_per_group = 4[source]
highlight_color = (238, 238, 234)[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.TR1000_LETTERING = '#F0EEE8'[source]
jdxi_editor.ui.style.rack_skin.TR1000_ACCENT = '#E64A32'[source]
jdxi_editor.ui.style.rack_skin.TR1000_RULE = '#484B4E'[source]
jdxi_editor.ui.style.rack_skin.TR1000_CHEEK_LIGHT = '#35383B'[source]
jdxi_editor.ui.style.rack_skin.TR1000_CHEEK_DEEP = '#25282B'[source]
jdxi_editor.ui.style.rack_skin.TR1000_LCD[source]
jdxi_editor.ui.style.rack_skin.TR1000_PANEL[source]
jdxi_editor.ui.style.rack_skin.TR1000_CHEEK[source]
class jdxi_editor.ui.style.rack_skin.Tr1000Skin[source]

Bases: JDXiSkin

The TR-1000: a modern rhythm machine in mid grey, with dark cheeks, a red rule and the sixteen step buttons with a light over each one.

Declared entirely from specs, with no paint method: the test that a new skin needs configuration rather than drawing code.

skin_id = 'tr1000'[source]
label = 'TR-1000'[source]
ear_width = 14[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
chassis[source]
highlight_color = '#96999B'[source]
button_color = '#E6E3DB'[source]
led_color = '#F04430'[source]
led_off_color = '#351914'[source]
led_band = 2[source]
button_band = 4[source]
steps = 16[source]
steps_per_group = 4[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.JP8_SHADE[source]
jdxi_editor.ui.style.rack_skin.JP8_CHEEK[source]
class jdxi_editor.ui.style.rack_skin.Jupiter8Skin[source]

Bases: JDXiSkin

The Jupiter-8: a textured near-black panel under bold red section bars, with the run of coloured patch buttons along the bottom.

The red header bar is what the eye remembers of a JP-8, so it takes the whole of the faceplate’s top edge rather than the hairline the other skins draw there, and the patch buttons are discrete keys with gaps rather than a continuous stripe.

skin_id = 'jupiter8'[source]
label = 'Jupiter-8'[source]
ear_width = 14[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
header_color = '#E03A20'[source]
chassis[source]
header_band = 3[source]
button_colors = ('#D8392A', '#E8762A', '#E8C02A', '#E4E0D6', '#3FA85A', '#2F7FD0')[source]
button_band = 4[source]
buttons = 18[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.JDXI_RED_BODY[source]
class jdxi_editor.ui.style.rack_skin.RedJdxiSkin[source]

Bases: JDXiSkin

The red JD-Xi: the same glossy black control panel, set into a scarlet body instead of the matte black one.

What changes is almost all chassis rather than faceplate – the body around the panels, the keyboard strip, the lettering on them – so the panel keeps the thin red edge the hardware shows where the inset meets the body, which is also what tells this skin’s faceplate apart from the plain glossy one.

skin_id = 'jdxi_red'[source]
label = 'JD-Xi Red'[source]
ear_width = 14[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
body_color = '#D81F1C'[source]
rule_color = '#8A2A26'[source]
foreground[source]
chassis[source]
rim_color = '#D81F1C'[source]
rim_width = 2[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.JDXI_WHITE_BODY[source]
class jdxi_editor.ui.style.rack_skin.WhiteJdxiSkin[source]

Bases: JDXiSkin

The white JD-Xi: a silver control panel set into a white body.

The panel is the same glossy construction as the default skin – the gradient, the diagonal reflection, the rim and the top highlight – in light metal instead of black plastic, so it is declared as colours rather than painted again. The sheen is stronger than the black panel’s, because a bright surface returns more of the light that falls on it.

skin_id = 'jdxi_white'[source]
label = 'JD-Xi White'[source]
ear_width = 14[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
chassis[source]
face_stops[source]
face_rim = '#8E979B'[source]
face_highlight = (255, 255, 255, 200)[source]
sheen_strength = (60, 12)[source]
ear[source]
jdxi_editor.ui.style.rack_skin.JUNO_SLATE[source]
class jdxi_editor.ui.style.rack_skin.Juno106Skin[source]

Bases: JDXiSkin

The Juno-106: a matte slate panel, a red bar and a blue bar along the top, and wooden end cheeks.

The bars are the coloured section rules across the machine, so they take the faceplate’s top edge, which the nine-slice keeps at its own size. The cheeks are the wood at each end, drawn as the ears.

skin_id = 'juno106'[source]
label = 'Juno-106'[source]
ear_width = 18[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
red_bar = '#D4202A'[source]
blue_bar = '#2F6FBE'[source]
panel_heading_background = '#D4202A'[source]
panel_heading_background_alt = '#2F6FBE'[source]
panel_text[source]
chassis[source]
bar = 2[source]
face[source]
ear[source]
jdxi_editor.ui.style.rack_skin.MINI_WOOD[source]
jdxi_editor.ui.style.rack_skin.MINI_LCD[source]
jdxi_editor.ui.style.rack_skin.MINI_PANEL[source]
class jdxi_editor.ui.style.rack_skin.MiniMoogSkin[source]

Bases: JDXiSkin

The Minimoog: a matte black panel set in a walnut cabinet.

The cabinet is the wood at each end and the lip above and below the panel. Its lanes are punched cards, on this cabinet’s own wood.

skin_id = 'minimoog'[source]
label = 'Mini Moog'[source]
ear_width = 18[source]
bezel = 6[source]
rail_height = 8[source]
lcd[source]
foreground[source]
meter[source]
lanes[source]
chassis[source]
lip = 4[source]
seam_color = '#301C10'[source]
face[source]
ear[source]
paint_rail(painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRectF) → None[source]

The wooden rail under the panel, the same plank as the cheeks.

jdxi_editor.ui.style.rack_skin.OLED_LCD[source]
jdxi_editor.ui.style.rack_skin.MC101_BODY[source]
jdxi_editor.ui.style.rack_skin.MC101_SIDE_EDGE = '#141517'[source]
jdxi_editor.ui.style.rack_skin.MC101_SIDE[source]
jdxi_editor.ui.style.rack_skin.group_colors(colors, per_group: int, count: int, dim: int = 190) → tuple[source]

A colour for each of count steps lit in groups: each group takes the next of colors, its first step at full strength and the rest dimmed.

Parameters:
  • colors – sequence of “#RRGGBB”, one per group, reused in turn

  • per_group – int steps in a group

  • count – int steps

  • dim – int how much darker the off-beat steps are (QColor.darker)

Returns:

tuple of “#rrggbb”

class jdxi_editor.ui.style.rack_skin.Mc101Skin[source]

Bases: JDXiSkin

The MC-101 groovebox: a compact matte black body, a white OLED, and the sixteen backlit step pads along its front edge.

The pads are what the machine is recognised by, so, like the TR-909’s buttons, they go in the faceplate’s bottom edge and appear on every panel. Each group of four is lit in its own colour, as the pads take the colour of the track being edited, with the first step of each group brightest. The sides are the moulded body itself: no wood, no screws.

skin_id = 'mc101'[source]
label = 'MC-101'[source]
ear_width = 8[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
pad_colors = ('#18C8E8', '#F23C8C', '#FFB000', '#5ADC3C')[source]
chassis[source]
pad_off_color = '#2A2C30'[source]
slot_color = '#060607'[source]
pad_band = 5[source]
steps = 16[source]
steps_per_group = 4[source]
step_colors = ()[source]
face[source]
ear[source]
pad_color(index: int) → str[source]

The colour step index is lit in: its group’s, dimmer off the beat.

jdxi_editor.ui.style.rack_skin.ICE_LCD[source]
jdxi_editor.ui.style.rack_skin.MS20_PANEL[source]
class jdxi_editor.ui.style.rack_skin.Ms20Skin[source]

Bases: JDXiSkin

The Korg MS-20: a matte black panel with its sections boxed in white lines, and patch cables.

Editor panels are drawn from a stretched image that keeps only a few pixels of each edge sharp, so cables across their middle would be distorted and sit behind the controls. They get the white section box, drawn in that sharp edge. The cables are on the rack-mounted panels instead, where nothing lies behind them: each cheek is a small patch bay with a cable looped between two jacks, and a third cable sags along a slim rail under the panel, plugged into the foot of each cheek.

skin_id = 'ms20'[source]
label = 'MS-20'[source]
ear_width = 20[source]
bezel = 6[source]
rail_height = 12[source]
lcd[source]
foreground[source]
cable_colors = ('#D23A2E', '#E8B828', '#2F6FD0')[source]
chassis[source]
section_line = '#E4E4E0'[source]
plate_color = '#262626'[source]
edge_color = '#080808'[source]
cable_width = 3.6[source]
loop_height = 28[source]
face[source]
ear[source]
rail[source]
jdxi_editor.ui.style.rack_skin.SH101_LED_LCD[source]
jdxi_editor.ui.style.rack_skin.SH101_PANEL[source]
class jdxi_editor.ui.style.rack_skin.Sh101Skin[source]

Bases: JDXiSkin

The SH-101: a dark matte control panel set in a coloured plastic body.

The SH-101 came in grey, red and blue, so it is offered in all three, as the JD-Xi is in black, red and white. What changes is the body: the rim of plastic showing round the panel, the lip along its front edge, the sides, and the chassis behind everything. The panel itself stays the same dark charcoal. A portable synth, so the sides are plain moulded plastic: no rack screws.

The body colours are mid tones, dark enough that white lettering stays legible on the body as well as the panel.

skin_id = 'sh101_grey'[source]
label = 'SH-101 Grey'[source]
ear_width = 14[source]
bezel = 6[source]
rail_height = 0[source]
lcd[source]
foreground[source]
body_color = '#707270'[source]
rim_width = 2[source]
lip = 3[source]
chassis[source]
face[source]
ear[source]
class jdxi_editor.ui.style.rack_skin.Sh101RedSkin[source]

Bases: Sh101Skin

The SH-101 in red.

skin_id = 'sh101_red'[source]
label = 'SH-101 Red'[source]
body_color = '#C42C24'[source]
class jdxi_editor.ui.style.rack_skin.Sh101BlueSkin[source]

Bases: Sh101Skin

The SH-101 in blue.

skin_id = 'sh101_blue'[source]
label = 'SH-101 Blue'[source]
body_color = '#2A5DB4'[source]
jdxi_editor.ui.style.rack_skin._editor_settings_store() → picoui.skin.QSettingsStore | None[source]
jdxi_editor.ui.style.rack_skin.ARP_LCD[source]
class jdxi_editor.ui.style.rack_skin.Arp2600Skin[source]

Bases: JDXiSkin

The ARP 2600: a dark charcoal panel printed in white, in a black case, with its speakers behind perforated grilles, and patch cords looped over them as on the MS-20’s cheeks (white on the left, orange on the right).

The panel’s look is its printing: white legends, white boxes round the module titles and white signal-flow lines between them. Editor panels get a white box and the printed flow line along the top, inside the sharp edges of the panel image (so section titles print in that white, ink_legends). On the hardware the speaker grilles are in the panel’s lower corners; here they are the cheeks either side, the one place on a rack panel nothing else sits. The case’s black base runs under the panel as a rail, and its red power lamp is the accent.

skin_id = 'arp2600'[source]
label = 'ARP 2600'[source]
ear_width = 26[source]
bezel = 6[source]
rail_height = 6[source]
lcd[source]
foreground[source]
ink_legends = True[source]
chassis[source]
panel_stops[source]
print_color = '#E6E8EA'[source]
rim_color = '#080809'[source]
case_shadow = '#040405'[source]
case_stops[source]
cable_colors = ('#D9DBDD', '#E07A26')[source]
meter[source]
cable_width = 3.6[source]
loop_height = 28[source]
face[source]
ear[source]
rail[source]
jdxi_editor.ui.style.rack_skin.REGISTRY[source]
jdxi_editor.ui.style.rack_skin.SKINS: Dict[str, picoui.skin.Skin][source]
jdxi_editor.ui.style.rack_skin.skin_by_id(skin_id: str | None) → picoui.skin.Skin[source]

The skin skin_id names, falling back to the default.

Parameters:

skin_id – Optional[str] a key of SKINS

Returns:

JDXiSkin

jdxi_editor.ui.style.rack_skin.active_skin() → picoui.skin.Skin[source]

The skin everything is drawn with.

Returns:

Skin

jdxi_editor.ui.style.rack_skin.set_active_skin(skin: str | Skin, *, remember: bool = True) → picoui.skin.Skin[source]

Change the skin, and restyle the running application.

Parameters:
  • skin – str | JDXiSkin the skin, or its id

  • remember – bool store the choice for next time

Returns:

JDXiSkin the skin now in use

jdxi_editor.ui.style.rack_skin._PANEL_IMAGE[source]
jdxi_editor.ui.style.rack_skin._restyle_application(_skin: JDXiSkin | None = None) → None[source]

Repoint the chrome at the new skin’s panel image.

The panel behind an editor’s outermost groups reaches them as a stylesheet border-image, whose path names the skin that rendered it. Every editor carries its own stylesheet, with its own accent, and is a child of the main window rather than a window itself, so the path is swapped in place wherever it appears: rebuilding the stylesheets instead would reach none of them, and would throw away each editor’s accent.

Returns:

None

jdxi_editor.ui.style.rack_skin._size(size: str) → tuple[source]

The width and height a panel image’s name ends with.

Parameters:

size – str e.g. "1000x420"

Returns:

tuple[int, int]