jdxi_editor.ui.style.rack_skin ============================== .. py:module:: jdxi_editor.ui.style.rack_skin .. autoapi-nested-parse:: Rack skins ========== 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 -- :attr:`JDXiSkin.ear_width`, :attr:`JDXiSkin.bezel` and :attr:`JDXiSkin.rail_height` -- which :meth:`JDXiSkin.content_margins` turns into the margins :class:`~jdxi_editor.ui.widgets.rack.panel.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 :class:`RackPanel` paints, - the panel image behind an editor's outermost groups (``mark_sheen``, which reaches them as a stylesheet ``border-image``: see :func:`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 :class:`~picoui.skin.JDXiSkin` base, its palettes and textures, the :class:`~picoui.skin.SkinRegistry` and the RackPanel / RackEars widgets -- lives in :mod:`picoui.skin`. This module holds the editor's own skins, its :data:`REGISTRY` of them, and the restyling the editor needs when the skin changes (the registry's listener). Adding one means subclassing :class:`JDXiSkin`, declaring those three numbers and its look -- a :class:`~picoui.skin.spec.FaceSpec` as ``face`` and an :class:`~picoui.skin.spec.EarSpec` as ``ear`` -- then adding it to :data:`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 ---------- .. autoapisummary:: jdxi_editor.ui.style.rack_skin.SKIN_SETTING jdxi_editor.ui.style.rack_skin.EDITOR_ACCENT jdxi_editor.ui.style.rack_skin.ROLAND_LCD jdxi_editor.ui.style.rack_skin.JDXV_BLUE_LCD jdxi_editor.ui.style.rack_skin.AMBER_LCD jdxi_editor.ui.style.rack_skin.LED_RED_LCD jdxi_editor.ui.style.rack_skin.LED_303_LCD jdxi_editor.ui.style.rack_skin.LED_909_LCD jdxi_editor.ui.style.rack_skin.LED_JP8_LCD jdxi_editor.ui.style.rack_skin.VINTAGE_GREEN_LCD jdxi_editor.ui.style.rack_skin.JUNO_LCD jdxi_editor.ui.style.rack_skin.PLAIN_LANES jdxi_editor.ui.style.rack_skin.JDXV_CHAMFER jdxi_editor.ui.style.rack_skin.SATIN_HIGHLIGHT jdxi_editor.ui.style.rack_skin.SATIN_BASE jdxi_editor.ui.style.rack_skin.SATIN_SHADOW jdxi_editor.ui.style.rack_skin.SATIN_DARK jdxi_editor.ui.style.rack_skin.BRUSHED_70S_COLOR_STOPS jdxi_editor.ui.style.rack_skin.JUNO_WOOD jdxi_editor.ui.style.rack_skin.IVORY_PAINT jdxi_editor.ui.style.rack_skin.TR808_CHARCOAL jdxi_editor.ui.style.rack_skin.TB303_CHEEK jdxi_editor.ui.style.rack_skin.TR909_STEEL jdxi_editor.ui.style.rack_skin.TR909_CHEEK jdxi_editor.ui.style.rack_skin.TR1000_LETTERING jdxi_editor.ui.style.rack_skin.TR1000_ACCENT jdxi_editor.ui.style.rack_skin.TR1000_RULE jdxi_editor.ui.style.rack_skin.TR1000_CHEEK_LIGHT jdxi_editor.ui.style.rack_skin.TR1000_CHEEK_DEEP jdxi_editor.ui.style.rack_skin.TR1000_LCD jdxi_editor.ui.style.rack_skin.TR1000_PANEL jdxi_editor.ui.style.rack_skin.TR1000_CHEEK jdxi_editor.ui.style.rack_skin.JP8_SHADE jdxi_editor.ui.style.rack_skin.JP8_CHEEK jdxi_editor.ui.style.rack_skin.JDXI_RED_BODY jdxi_editor.ui.style.rack_skin.JDXI_WHITE_BODY jdxi_editor.ui.style.rack_skin.JUNO_SLATE jdxi_editor.ui.style.rack_skin.MINI_WOOD jdxi_editor.ui.style.rack_skin.MINI_LCD jdxi_editor.ui.style.rack_skin.MINI_PANEL jdxi_editor.ui.style.rack_skin.OLED_LCD jdxi_editor.ui.style.rack_skin.MC101_BODY jdxi_editor.ui.style.rack_skin.MC101_SIDE_EDGE jdxi_editor.ui.style.rack_skin.MC101_SIDE jdxi_editor.ui.style.rack_skin.ICE_LCD jdxi_editor.ui.style.rack_skin.MS20_PANEL jdxi_editor.ui.style.rack_skin.SH101_LED_LCD jdxi_editor.ui.style.rack_skin.SH101_PANEL jdxi_editor.ui.style.rack_skin.ARP_LCD jdxi_editor.ui.style.rack_skin.REGISTRY jdxi_editor.ui.style.rack_skin.SKINS jdxi_editor.ui.style.rack_skin._PANEL_IMAGE Classes ------- .. autoapisummary:: jdxi_editor.ui.style.rack_skin.MeterStyle jdxi_editor.ui.style.rack_skin.LaneStyle jdxi_editor.ui.style.rack_skin.JDXiSkin jdxi_editor.ui.style.rack_skin.JdxiRackSkin jdxi_editor.ui.style.rack_skin.Brushed70sSkin jdxi_editor.ui.style.rack_skin.IvoryWalnutSkin jdxi_editor.ui.style.rack_skin.Tr808Skin jdxi_editor.ui.style.rack_skin.Tb303Skin jdxi_editor.ui.style.rack_skin.Tr909Skin jdxi_editor.ui.style.rack_skin.Tr1000Skin jdxi_editor.ui.style.rack_skin.Jupiter8Skin jdxi_editor.ui.style.rack_skin.RedJdxiSkin jdxi_editor.ui.style.rack_skin.WhiteJdxiSkin jdxi_editor.ui.style.rack_skin.Juno106Skin jdxi_editor.ui.style.rack_skin.MiniMoogSkin jdxi_editor.ui.style.rack_skin.Mc101Skin jdxi_editor.ui.style.rack_skin.Ms20Skin jdxi_editor.ui.style.rack_skin.Sh101Skin jdxi_editor.ui.style.rack_skin.Sh101RedSkin jdxi_editor.ui.style.rack_skin.Sh101BlueSkin jdxi_editor.ui.style.rack_skin.Arp2600Skin Functions --------- .. autoapisummary:: jdxi_editor.ui.style.rack_skin.group_colors jdxi_editor.ui.style.rack_skin._editor_settings_store jdxi_editor.ui.style.rack_skin.skin_by_id jdxi_editor.ui.style.rack_skin.active_skin jdxi_editor.ui.style.rack_skin.set_active_skin jdxi_editor.ui.style.rack_skin._restyle_application jdxi_editor.ui.style.rack_skin._size Module Contents --------------- .. py:data:: SKIN_SETTING :value: 'ui/skin' .. py:data:: EDITOR_ACCENT :value: '#E04435' .. py:data:: ROLAND_LCD .. py:data:: JDXV_BLUE_LCD .. py:data:: AMBER_LCD .. py:data:: LED_RED_LCD .. py:data:: LED_303_LCD .. py:data:: LED_909_LCD .. py:data:: LED_JP8_LCD .. py:data:: VINTAGE_GREEN_LCD .. py:data:: JUNO_LCD .. py:class:: MeterStyle Bases: :py:obj:`str`, :py:obj:`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. .. py:attribute:: BARS :value: 'bars' .. py:attribute:: NEEDLES :value: 'needles' .. py:attribute:: VINTAGE_VU :value: 'vintage_vu' .. py:class:: LaneStyle How the MIDI player draws its track lanes. :param cards: bool each lane drawn as a punched card :param backing: Material the cards lie on, filling the lane list behind them: the cabinet's wood, or the faceplate's metal .. py:attribute:: cards :type: bool :value: False .. py:attribute:: backing :type: picoui.skin.spec.Material .. py:data:: PLAIN_LANES .. py:class:: JDXiSkin Bases: :py:obj:`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 :class:`~picoui.skin.JDXiSkin`; what is added here is the JD-Xi's own display and the editor's features a skin chooses: its :attr:`meter` style on the Audio Monitor and its :attr:`lanes` in the MIDI player. .. py:attribute:: skin_id :value: 'glossy_black' .. py:attribute:: label :value: 'JD-Xi Black' .. py:attribute:: lcd .. py:attribute:: meter .. py:attribute:: lanes .. py:attribute:: panel_text :type: Optional[str] :value: None .. py:attribute:: panel_heading_background :type: Optional[str] :value: None .. py:attribute:: panel_heading_background_alt :type: Optional[str] :value: None .. py:data:: JDXV_CHAMFER .. py:class:: JdxiRackSkin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'jdxi_rack' .. py:attribute:: label :value: 'JD-Xi Rackmount' .. py:attribute:: ear_width :value: 16 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: rail_color :value: '#E04435' .. py:attribute:: chassis .. py:attribute:: rail_thickness :value: 4 .. py:attribute:: face .. py:attribute:: ear .. py:data:: SATIN_HIGHLIGHT :value: '#C5C5C1' .. py:data:: SATIN_BASE :value: '#A6A6A3' .. py:data:: SATIN_SHADOW :value: '#777875' .. py:data:: SATIN_DARK :value: '#8A8A87' .. py:data:: BRUSHED_70S_COLOR_STOPS .. py:class:: Brushed70sSkin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'brushed_70s' .. py:attribute:: label :value: 'Brushed Metal (70s)' .. py:attribute:: ear_width :value: 18 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: ink_legends :value: True .. py:attribute:: mounted_controls :value: True .. py:attribute:: meter .. py:attribute:: lanes .. py:attribute:: chassis .. py:attribute:: base_color :value: '#A6A6A3' .. py:attribute:: highlight_color :value: '#C5C5C1' .. py:attribute:: shadow_color :value: '#777875' .. py:attribute:: face .. py:attribute:: ear .. py:data:: JUNO_WOOD .. py:data:: IVORY_PAINT .. py:class:: IvoryWalnutSkin Bases: :py:obj:`JDXiSkin` Ivory painted steel with walnut end cheeks, as on 1970s studio gear. The one pale faceplate in the set, which is why :class:`Foreground` exists: its lettering is ink rather than near-white, while the controls standing on it keep their dark surfaces. .. py:attribute:: skin_id :value: 'ivory_walnut' .. py:attribute:: label :value: 'Ivory & Walnut' .. py:attribute:: ear_width :value: 18 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: stripe_color :value: '#684022' .. py:attribute:: chassis .. py:attribute:: stripe_thickness :value: 2 .. py:attribute:: highlight_color :value: (255, 253, 248) .. py:attribute:: face .. py:attribute:: ear .. py:data:: TR808_CHARCOAL .. py:class:: Tr808Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'tr808' .. py:attribute:: label :value: 'TR-808' .. py:attribute:: ear_width :value: 14 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: accent_color :value: '#E8622A' .. py:attribute:: chassis .. py:attribute:: step_colors :value: ('#E33B2E', '#EE7B2C', '#EFC93F', '#EDE9DC') .. py:attribute:: step_band :value: 4 .. py:attribute:: face .. py:attribute:: ear .. py:data:: TB303_CHEEK .. py:class:: Tb303Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'tb303' .. py:attribute:: label :value: 'TB-303' .. py:attribute:: ear_width :value: 14 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: accent_color :value: '#E87328' .. py:attribute:: chassis .. py:attribute:: key_ivory :value: '#E6E3D8' .. py:attribute:: key_black :value: '#1A1A1A' .. py:attribute:: key_band :value: 5 .. py:attribute:: key_octaves :value: 4 .. py:attribute:: panel_stops .. py:attribute:: highlight_color :value: (206, 210, 208) .. py:attribute:: face .. py:attribute:: ear .. py:data:: TR909_STEEL .. py:data:: TR909_CHEEK .. py:class:: Tr909Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'tr909' .. py:attribute:: label :value: 'TR-909' .. py:attribute:: ear_width :value: 14 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: accent_color :value: '#2C6AB0' .. py:attribute:: chassis .. py:attribute:: button_color :value: '#E8E6DC' .. py:attribute:: led_color :value: '#FF3A20' .. py:attribute:: led_off_color :value: '#3A1410' .. py:attribute:: strip_color :value: '#4A4A47' .. py:attribute:: button_band :value: 4 .. py:attribute:: led_band :value: 2 .. py:attribute:: steps :value: 16 .. py:attribute:: steps_per_group :value: 4 .. py:attribute:: highlight_color :value: (238, 238, 234) .. py:attribute:: face .. py:attribute:: ear .. py:data:: TR1000_LETTERING :value: '#F0EEE8' .. py:data:: TR1000_ACCENT :value: '#E64A32' .. py:data:: TR1000_RULE :value: '#484B4E' .. py:data:: TR1000_CHEEK_LIGHT :value: '#35383B' .. py:data:: TR1000_CHEEK_DEEP :value: '#25282B' .. py:data:: TR1000_LCD .. py:data:: TR1000_PANEL .. py:data:: TR1000_CHEEK .. py:class:: Tr1000Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'tr1000' .. py:attribute:: label :value: 'TR-1000' .. py:attribute:: ear_width :value: 14 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: chassis .. py:attribute:: highlight_color :value: '#96999B' .. py:attribute:: button_color :value: '#E6E3DB' .. py:attribute:: led_color :value: '#F04430' .. py:attribute:: led_off_color :value: '#351914' .. py:attribute:: led_band :value: 2 .. py:attribute:: button_band :value: 4 .. py:attribute:: steps :value: 16 .. py:attribute:: steps_per_group :value: 4 .. py:attribute:: face .. py:attribute:: ear .. py:data:: JP8_SHADE .. py:data:: JP8_CHEEK .. py:class:: Jupiter8Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'jupiter8' .. py:attribute:: label :value: 'Jupiter-8' .. py:attribute:: ear_width :value: 14 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: header_color :value: '#E03A20' .. py:attribute:: chassis .. py:attribute:: header_band :value: 3 .. py:attribute:: button_colors :value: ('#D8392A', '#E8762A', '#E8C02A', '#E4E0D6', '#3FA85A', '#2F7FD0') .. py:attribute:: button_band :value: 4 .. py:attribute:: buttons :value: 18 .. py:attribute:: face .. py:attribute:: ear .. py:data:: JDXI_RED_BODY .. py:class:: RedJdxiSkin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'jdxi_red' .. py:attribute:: label :value: 'JD-Xi Red' .. py:attribute:: ear_width :value: 14 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: body_color :value: '#D81F1C' .. py:attribute:: rule_color :value: '#8A2A26' .. py:attribute:: foreground .. py:attribute:: chassis .. py:attribute:: rim_color :value: '#D81F1C' .. py:attribute:: rim_width :value: 2 .. py:attribute:: face .. py:attribute:: ear .. py:data:: JDXI_WHITE_BODY .. py:class:: WhiteJdxiSkin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'jdxi_white' .. py:attribute:: label :value: 'JD-Xi White' .. py:attribute:: ear_width :value: 14 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: chassis .. py:attribute:: face_stops .. py:attribute:: face_rim :value: '#8E979B' .. py:attribute:: face_highlight :value: (255, 255, 255, 200) .. py:attribute:: sheen_strength :value: (60, 12) .. py:attribute:: ear .. py:data:: JUNO_SLATE .. py:class:: Juno106Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'juno106' .. py:attribute:: label :value: 'Juno-106' .. py:attribute:: ear_width :value: 18 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: red_bar :value: '#D4202A' .. py:attribute:: blue_bar :value: '#2F6FBE' .. py:attribute:: panel_heading_background :value: '#D4202A' .. py:attribute:: panel_heading_background_alt :value: '#2F6FBE' .. py:attribute:: panel_text .. py:attribute:: chassis .. py:attribute:: bar :value: 2 .. py:attribute:: face .. py:attribute:: ear .. py:data:: MINI_WOOD .. py:data:: MINI_LCD .. py:data:: MINI_PANEL .. py:class:: MiniMoogSkin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'minimoog' .. py:attribute:: label :value: 'Mini Moog' .. py:attribute:: ear_width :value: 18 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 8 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: meter .. py:attribute:: lanes .. py:attribute:: chassis .. py:attribute:: lip :value: 4 .. py:attribute:: seam_color :value: '#301C10' .. py:attribute:: face .. py:attribute:: ear .. py:method:: paint_rail(painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRectF) -> None The wooden rail under the panel, the same plank as the cheeks. .. py:data:: OLED_LCD .. py:data:: MC101_BODY .. py:data:: MC101_SIDE_EDGE :value: '#141517' .. py:data:: MC101_SIDE .. py:function:: group_colors(colors, per_group: int, count: int, dim: int = 190) -> tuple 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. :param colors: sequence of "#RRGGBB", one per group, reused in turn :param per_group: int steps in a group :param count: int steps :param dim: int how much darker the off-beat steps are (QColor.darker) :return: tuple of "#rrggbb" .. py:class:: Mc101Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'mc101' .. py:attribute:: label :value: 'MC-101' .. py:attribute:: ear_width :value: 8 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: pad_colors :value: ('#18C8E8', '#F23C8C', '#FFB000', '#5ADC3C') .. py:attribute:: chassis .. py:attribute:: pad_off_color :value: '#2A2C30' .. py:attribute:: slot_color :value: '#060607' .. py:attribute:: pad_band :value: 5 .. py:attribute:: steps :value: 16 .. py:attribute:: steps_per_group :value: 4 .. py:attribute:: step_colors :value: () .. py:attribute:: face .. py:attribute:: ear .. py:method:: pad_color(index: int) -> str The colour step `index` is lit in: its group's, dimmer off the beat. .. py:data:: ICE_LCD .. py:data:: MS20_PANEL .. py:class:: Ms20Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'ms20' .. py:attribute:: label :value: 'MS-20' .. py:attribute:: ear_width :value: 20 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 12 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: cable_colors :value: ('#D23A2E', '#E8B828', '#2F6FD0') .. py:attribute:: chassis .. py:attribute:: section_line :value: '#E4E4E0' .. py:attribute:: plate_color :value: '#262626' .. py:attribute:: edge_color :value: '#080808' .. py:attribute:: cable_width :value: 3.6 .. py:attribute:: loop_height :value: 28 .. py:attribute:: face .. py:attribute:: ear .. py:attribute:: rail .. py:data:: SH101_LED_LCD .. py:data:: SH101_PANEL .. py:class:: Sh101Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'sh101_grey' .. py:attribute:: label :value: 'SH-101 Grey' .. py:attribute:: ear_width :value: 14 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 0 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: body_color :value: '#707270' .. py:attribute:: rim_width :value: 2 .. py:attribute:: lip :value: 3 .. py:attribute:: chassis .. py:attribute:: face .. py:attribute:: ear .. py:class:: Sh101RedSkin Bases: :py:obj:`Sh101Skin` The SH-101 in red. .. py:attribute:: skin_id :value: 'sh101_red' .. py:attribute:: label :value: 'SH-101 Red' .. py:attribute:: body_color :value: '#C42C24' .. py:class:: Sh101BlueSkin Bases: :py:obj:`Sh101Skin` The SH-101 in blue. .. py:attribute:: skin_id :value: 'sh101_blue' .. py:attribute:: label :value: 'SH-101 Blue' .. py:attribute:: body_color :value: '#2A5DB4' .. py:function:: _editor_settings_store() -> Optional[picoui.skin.QSettingsStore] .. py:data:: ARP_LCD .. py:class:: Arp2600Skin Bases: :py:obj:`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. .. py:attribute:: skin_id :value: 'arp2600' .. py:attribute:: label :value: 'ARP 2600' .. py:attribute:: ear_width :value: 26 .. py:attribute:: bezel :value: 6 .. py:attribute:: rail_height :value: 6 .. py:attribute:: lcd .. py:attribute:: foreground .. py:attribute:: ink_legends :value: True .. py:attribute:: chassis .. py:attribute:: panel_stops .. py:attribute:: print_color :value: '#E6E8EA' .. py:attribute:: rim_color :value: '#080809' .. py:attribute:: case_shadow :value: '#040405' .. py:attribute:: case_stops .. py:attribute:: cable_colors :value: ('#D9DBDD', '#E07A26') .. py:attribute:: meter .. py:attribute:: cable_width :value: 3.6 .. py:attribute:: loop_height :value: 28 .. py:attribute:: face .. py:attribute:: ear .. py:attribute:: rail .. py:data:: REGISTRY .. py:data:: SKINS :type: Dict[str, picoui.skin.Skin] .. py:function:: skin_by_id(skin_id: Optional[str]) -> picoui.skin.Skin The skin ``skin_id`` names, falling back to the default. :param skin_id: Optional[str] a key of :data:`SKINS` :return: JDXiSkin .. py:function:: active_skin() -> picoui.skin.Skin The skin everything is drawn with. :return: Skin .. py:function:: set_active_skin(skin: str | Skin, *, remember: bool = True) -> picoui.skin.Skin Change the skin, and restyle the running application. :param skin: str | JDXiSkin the skin, or its id :param remember: bool store the choice for next time :return: JDXiSkin the skin now in use .. py:data:: _PANEL_IMAGE .. py:function:: _restyle_application(_skin: Optional[JDXiSkin] = None) -> None 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. :return: None .. py:function:: _size(size: str) -> tuple The width and height a panel image's name ends with. :param size: str e.g. ``"1000x420"`` :return: tuple[int, int]