diff --git a/app/examples/ardour.js b/app/examples/ardour.js index 0c12b3df..101475d1 100644 --- a/app/examples/ardour.js +++ b/app/examples/ardour.js @@ -21,15 +21,14 @@ "variables": {}, "widgets": [ { - "type": "panel", + "type": "strip", "top": 50, "left": 0, "id": "transport", "label": false, "width": "100%", - "height": 50, + "height": 40, "color": "auto", - "css": "> .panel {display: flex;padding-top:10rem}; > .panel > .widget {flex:1; min-height:100%}", "widgets": [ { "type": "fader", @@ -39,10 +38,9 @@ "unit": "", "alignRight": false, "horizontal": true, - "noPip": false, "compact": true, "color": "auto", - "css": ".input {display:none}; width:110rem; flex:2", + "css": ".input {display:none}; flex:2;", "snap": false, "spring": true, "range": { @@ -59,17 +57,15 @@ "target": [], "touchAddress": "", "meterAddress": "", - "top": "auto", - "left": "auto", - "width": "auto", - "height": "auto" + "pips": true, + "doubleTap": false, + "width": 90 }, { "type": "push", "id": "zero", "linkId": "", "label": "^step-backward", - "width": 50, "css": "", "on": 1, "off": 0, @@ -79,16 +75,13 @@ "color": "auto", "norelease": false, "address": "/goto_start", - "top": "auto", - "left": "auto", - "height": "auto" + "width": "auto" }, { "type": "push", "id": "end", "linkId": "", "label": "^step-forward", - "width": 50, "css": "", "on": 1, "off": 0, @@ -98,16 +91,13 @@ "color": "auto", "norelease": false, "address": "/goto_end", - "top": "auto", - "left": "auto", - "height": "auto" + "width": "auto" }, { "type": "push", "id": "play", "linkId": "", "label": "^play", - "width": 50, "color": "lime", "css": "", "on": 1, @@ -117,16 +107,13 @@ "target": [], "norelease": false, "address": "/transport_play", - "left": "auto", - "top": "auto", - "height": "auto" + "width": "auto" }, { "type": "push", "id": "transport_stop", "linkId": "", "label": "^stop", - "width": 50, "color": "red", "css": "", "on": 1, @@ -136,16 +123,13 @@ "target": [], "norelease": false, "address": "/transport_stop", - "left": "auto", - "top": "auto", - "height": "auto" + "width": "auto" }, { "type": "push", "id": "masterrec", "linkId": "", "label": "^circle", - "width": 50, "color": "red", "css": "", "on": 1, @@ -155,9 +139,7 @@ "target": [], "norelease": false, "address": "/rec_enable_toggle", - "top": "auto", - "left": "auto", - "height": "auto" + "width": "auto" }, { "type": "text", @@ -170,17 +152,13 @@ "value": "00:00:00:00", "address": "/position/smpte", "widgetId": "", - "left": "auto", - "top": "auto", - "width": "auto", - "height": "auto" + "width": 180 }, { "type": "push", "id": "solocan", "linkId": "", "label": "Solo", - "width": 50, "color": "red", "on": 1, "off": 0, @@ -190,15 +168,12 @@ "norelease": false, "address": "/cancel_all_solos", "css": "", - "left": "auto", - "top": "auto", - "height": "auto" + "width": "auto" }, { "type": "push", "id": "connect", "label": "^plug", - "width": 50, "css": "", "on": 0, "off": null, @@ -212,10 +187,8 @@ ], "norelease": true, "address": "/set_surface", - "left": "auto", - "top": "auto", - "height": "auto", - "linkId": "" + "linkId": "", + "width": "auto" }, { "type": "push", @@ -230,11 +203,8 @@ "target": [], "norelease": false, "address": "/bank_down", - "height": "auto", - "top": "auto", - "left": "auto", - "width": "auto", - "css": "" + "css": "", + "width": "auto" }, { "type": "push", @@ -249,39 +219,43 @@ "target": [], "norelease": false, "address": "/bank_up", - "left": "auto", - "top": "auto", - "width": "auto", - "height": "auto", - "css": "" + "css": "", + "width": "auto" } ], - "scroll": false, - "layout": "", "spacing": 0, "variables": {}, - "tabs": [], + "css": "", + "horizontal": true, + "stretch": false, + "_style": "style", + "_children": "children", + "scroll": true, + "_layout": "layout", + "layout": "", + "_osc": "osc", "value": "", "precision": 0, - "address": "/transport", + "address": "auto", "preArgs": [], - "target": [] + "target": [], + "tabs": [] }, { "type": "text", - "left": 0, "id": "sess_name", "label": false, - "width": "100%", - "height": 40, + "height": 30, "vertical": false, "color": "MediumSpringGreen ", - "css": "", "preArgs": [], "top": 10, "value": " ", "address": "/session_name", - "widgetId": "" + "widgetId": "", + "width": "100%", + "left": "auto", + "css": "" }, { "type": "panel", @@ -341,7 +315,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -352,7 +325,9 @@ "touchAddress": "", "meterAddress": "", "css": "bottom:0", - "top": "auto" + "top": "auto", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -378,7 +353,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -387,7 +361,9 @@ "value": "", "address": "/strip/trimdB", "touchAddress": "", - "meterAddress": "" + "meterAddress": "", + "pips": false, + "doubleTap": false }, { "type": "panel", @@ -435,7 +411,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": false, "snap": false, "compact": false, "alignRight": false, @@ -445,7 +420,9 @@ "address": "/strip/gain", "touchAddress": "", "meterAddress": "/strip/meter", - "width": 80 + "width": 80, + "pips": true, + "doubleTap": false }, { "type": "panel", @@ -679,7 +656,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -691,7 +667,9 @@ "meterAddress": "", "css": "bottom:0", "top": "auto", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -716,7 +694,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -726,7 +703,9 @@ "address": "/strip/trimdB", "touchAddress": "", "meterAddress": "", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "panel", @@ -773,7 +752,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": false, "snap": false, "compact": false, "alignRight": false, @@ -784,7 +762,9 @@ "touchAddress": "", "meterAddress": "/strip/meter", "width": 80, - "linkId": "" + "linkId": "", + "pips": true, + "doubleTap": false }, { "type": "panel", @@ -1018,7 +998,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -1030,7 +1009,9 @@ "meterAddress": "", "css": "bottom:0", "top": "auto", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -1055,7 +1036,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -1065,7 +1045,9 @@ "address": "/strip/trimdB", "touchAddress": "", "meterAddress": "", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "panel", @@ -1112,7 +1094,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": false, "snap": false, "compact": false, "alignRight": false, @@ -1123,7 +1104,9 @@ "touchAddress": "", "meterAddress": "/strip/meter", "width": 80, - "linkId": "" + "linkId": "", + "pips": true, + "doubleTap": false }, { "type": "panel", @@ -1357,7 +1340,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -1369,7 +1351,9 @@ "meterAddress": "", "css": "bottom:0", "top": "auto", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -1394,7 +1378,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -1404,7 +1387,9 @@ "address": "/strip/trimdB", "touchAddress": "", "meterAddress": "", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "panel", @@ -1451,7 +1436,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": false, "snap": false, "compact": false, "alignRight": false, @@ -1462,7 +1446,9 @@ "touchAddress": "", "meterAddress": "/strip/meter", "width": 80, - "linkId": "" + "linkId": "", + "pips": true, + "doubleTap": false }, { "type": "panel", @@ -1696,7 +1682,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -1708,7 +1693,9 @@ "meterAddress": "", "css": "bottom:0", "top": "auto", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -1733,7 +1720,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -1743,7 +1729,9 @@ "address": "/strip/trimdB", "touchAddress": "", "meterAddress": "", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "panel", @@ -1790,7 +1778,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": false, "snap": false, "compact": false, "alignRight": false, @@ -1801,7 +1788,9 @@ "touchAddress": "", "meterAddress": "/strip/meter", "width": 80, - "linkId": "" + "linkId": "", + "pips": true, + "doubleTap": false }, { "type": "panel", @@ -2035,7 +2024,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -2047,7 +2035,9 @@ "meterAddress": "", "css": "bottom:0", "top": "auto", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -2072,7 +2062,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -2082,7 +2071,9 @@ "address": "/strip/trimdB", "touchAddress": "", "meterAddress": "", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "panel", @@ -2129,7 +2120,6 @@ "preArgs": [ "@{parent.variables.n}" ], - "noPip": false, "snap": false, "compact": false, "alignRight": false, @@ -2140,7 +2130,9 @@ "touchAddress": "", "meterAddress": "/strip/meter", "width": 80, - "linkId": "" + "linkId": "", + "pips": true, + "doubleTap": false }, { "type": "panel", @@ -2389,7 +2381,6 @@ "meter": true, "target": [], "color": "auto", - "noPip": false, "snap": false, "compact": false, "alignRight": false, @@ -2401,7 +2392,9 @@ "meterAddress": "/master/meter", "width": 80, "linkId": "", - "preArgs": [] + "preArgs": [], + "pips": true, + "doubleTap": false }, { "type": "panel", @@ -2419,7 +2412,6 @@ "width": 40, "height": 150, "color": "auto", - "noPip": false, "compact": true, "css": "height:calc(100% - 90rem)", "snap": false, @@ -2451,7 +2443,9 @@ "horizontal": false, "meter": false, "meterAddress": "", - "unit": "" + "unit": "", + "pips": true, + "doubleTap": false }, { "type": "toggle", @@ -2590,7 +2584,6 @@ "target": [], "color": "lime", "preArgs": [], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -2600,7 +2593,9 @@ "address": "/master/trimdB", "touchAddress": "", "meterAddress": "", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -2622,7 +2617,6 @@ "target": [], "color": "lime", "preArgs": [], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -2633,7 +2627,9 @@ "touchAddress": "", "meterAddress": "", "css": "bottom:0", - "top": "auto" + "top": "auto", + "pips": false, + "doubleTap": false } ], "tabs": [], @@ -2674,6 +2670,7 @@ "target": [], "variables": {}, "tabs": [], + "color": "auto", "scroll": true }, { @@ -2744,7 +2741,6 @@ "meter": true, "target": [], "color": "auto", - "noPip": false, "snap": false, "compact": false, "alignRight": false, @@ -2756,14 +2752,15 @@ "meterAddress": "/master/meter", "width": 80, "linkId": "", - "preArgs": [] + "preArgs": [], + "pips": true, + "doubleTap": false }, { - "type": "panel", + "type": "strip", "id": "monitor", "label": "^headphones", "width": 40, - "height": 300, "color": "auto", "widgets": [ { @@ -2771,12 +2768,8 @@ "id": "monitor", "linkId": "", "label": false, - "width": 40, - "height": 150, "color": "auto", - "noPip": false, "compact": true, - "css": "height:calc(100% - 90rem)", "snap": false, "range": { "min": { @@ -2795,8 +2788,6 @@ "precision": 2, "preArgs": [], "target": [], - "left": 0, - "top": 0, "origin": "auto", "spring": false, "value": "", @@ -2806,79 +2797,81 @@ "horizontal": false, "meter": false, "meterAddress": "", - "unit": "" + "unit": "", + "pips": true, + "doubleTap": false, + "height": 10, + "css": "flex:1" }, { "type": "toggle", - "left": 0, "id": "monmute", "linkId": "", "label": "Mute", - "width": 40, "height": 30, "color": "Yellow", - "css": "font-size:10rem; bottom:60rem", + "css": "font-size:10rem; ", "on": 1, "off": 0, "value": "", "precision": 2, "address": "/monitor/mute", "preArgs": [], - "target": [], - "top": "auto" + "target": [] }, { "type": "toggle", - "left": 0, "id": "mondim", "linkId": "", "label": "Dim", - "width": 40, "height": 30, "color": "Orange", - "css": "font-size:10rem; bottom: 30rem", + "css": "font-size:10rem; ", "on": 1, "off": 0, "value": "", "precision": 2, "address": "/monitor/dim", "preArgs": [], - "target": [], - "top": "auto" + "target": [] }, { "type": "toggle", - "left": 0, "id": "monmono", "linkId": "", "label": "Mono", - "width": 40, "height": 30, "color": "Blue", - "css": "font-size:10rem; bottom:0", + "css": "font-size:10rem;", "on": 1, "off": 0, "value": "", "precision": 2, "address": "/monitor/mono", "preArgs": [], - "target": [], - "top": "auto" + "target": [] } ], - "scroll": false, - "tabs": [], "top": 0, "left": 80, - "layout": "", "spacing": 0, "variables": {}, "css": "height:calc(100% - 50rem)", + "horizontal": false, + "stretch": false, + "_style": "style", + "_children": "children", + "height": "auto", + "scroll": true, + "_layout": "layout", + "layout": "", + "_osc": "osc", "value": "", "precision": 0, - "address": "/monitor", + "address": "auto", "preArgs": [], - "target": [] + "target": [], + "tabs": [] }, { "type": "toggle", @@ -2945,7 +2938,6 @@ "target": [], "color": "lime", "preArgs": [], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -2955,7 +2947,9 @@ "address": "/master/trimdB", "touchAddress": "", "meterAddress": "", - "linkId": "" + "linkId": "", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -2977,7 +2971,6 @@ "target": [], "color": "lime", "preArgs": [], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -2988,7 +2981,9 @@ "touchAddress": "", "meterAddress": "", "css": "bottom:0", - "top": "auto" + "top": "auto", + "pips": false, + "doubleTap": false } ], "tabs": [], @@ -3086,7 +3081,6 @@ "meter": false, "target": [], "color": "lime", - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -3098,7 +3092,9 @@ "meterAddress": "", "css": "bottom:0", "top": "auto", - "preArgs": [] + "preArgs": [], + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -3121,7 +3117,6 @@ "meter": false, "target": [], "color": "lime", - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -3131,7 +3126,9 @@ "address": "/select/trimdB", "touchAddress": "", "meterAddress": "", - "preArgs": [] + "preArgs": [], + "pips": false, + "doubleTap": false }, { "type": "panel", @@ -3176,7 +3173,6 @@ "meter": true, "target": [], "color": "auto", - "noPip": false, "snap": false, "compact": false, "alignRight": false, @@ -3187,7 +3183,9 @@ "touchAddress": "", "meterAddress": "/select/meter", "width": 80, - "preArgs": [] + "preArgs": [], + "pips": true, + "doubleTap": false }, { "type": "panel", @@ -3216,11 +3214,7 @@ "color": "red", "value": "", "address": "/select/recenable", - "preArgs": [], - "left": "auto", - "top": "auto", - "width": "auto", - "height": "auto" + "preArgs": [] }, { "type": "toggle", @@ -3235,11 +3229,7 @@ "color": "lime", "value": "", "address": "/select/record_safe", - "preArgs": [], - "left": "auto", - "top": "auto", - "width": "auto", - "height": "auto" + "preArgs": [] }, { "type": "toggle", @@ -3254,11 +3244,7 @@ "on": 1, "value": "", "address": "/select/monitor_input", - "preArgs": [], - "left": "auto", - "top": "auto", - "width": "auto", - "height": "auto" + "preArgs": [] }, { "type": "toggle", @@ -3273,11 +3259,7 @@ "color": "orange", "value": "", "address": "/select/monitor_disk", - "preArgs": [], - "left": "auto", - "top": "auto", - "width": "auto", - "height": "auto" + "preArgs": [] }, { "type": "toggle", @@ -3292,11 +3274,7 @@ "color": "lime", "value": "", "address": "/select/solo", - "preArgs": [], - "left": "auto", - "top": "auto", - "width": "auto", - "height": "auto" + "preArgs": [] }, { "type": "toggle", @@ -3311,11 +3289,7 @@ "color": "yellow", "value": "", "address": "/select/mute", - "preArgs": [], - "left": "auto", - "top": "auto", - "width": "auto", - "height": "auto" + "preArgs": [] }, { "type": "toggle", @@ -3330,11 +3304,7 @@ "color": "pink", "value": "", "address": "/select/expand", - "preArgs": [], - "left": "auto", - "top": "auto", - "width": "auto", - "height": "auto" + "preArgs": [] } ], "tabs": [], @@ -3486,7 +3456,6 @@ "target": [], "color": "lime", "preArgs": [], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -3498,7 +3467,9 @@ "meterAddress": "", "width": "auto", "top": "auto", - "left": "auto" + "left": "auto", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -3519,7 +3490,6 @@ "target": [], "color": "lime", "preArgs": [], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -3531,7 +3501,9 @@ "meterAddress": "", "width": "auto", "top": "auto", - "left": "auto" + "left": "auto", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -3552,7 +3524,6 @@ "target": [], "color": "lime", "preArgs": [], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -3564,7 +3535,9 @@ "meterAddress": "", "width": "auto", "top": "auto", - "left": "auto" + "left": "auto", + "pips": false, + "doubleTap": false }, { "type": "fader", @@ -3585,7 +3558,6 @@ "target": [], "color": "lime", "preArgs": [], - "noPip": true, "snap": false, "compact": true, "alignRight": false, @@ -3597,7 +3569,9 @@ "meterAddress": "", "width": "auto", "top": "auto", - "left": "auto" + "left": "auto", + "pips": false, + "doubleTap": false } ], "left": 120, @@ -3651,7 +3625,10 @@ "value": "", "precision": 0, "preArgs": [], - "target": [] + "target": [], + "doubleTap": false, + "tabs": [], + "scroll": true }, { "type": "modal", @@ -3690,7 +3667,10 @@ "value": "", "precision": 0, "preArgs": [], - "target": [] + "target": [], + "doubleTap": false, + "tabs": [], + "scroll": true } ], "tabs": [], @@ -3737,7 +3717,6 @@ "unit": "", "alignRight": false, "horizontal": true, - "noPip": false, "compact": true, "color": "auto", "css": ".input {display:none}; width:110rem; flex:2", @@ -3760,7 +3739,9 @@ "top": "auto", "left": "auto", "width": "auto", - "height": "auto" + "height": "auto", + "pips": true, + "doubleTap": false }, { "type": "push", @@ -4001,6 +3982,7 @@ "target": [], "variables": {}, "tabs": [], + "color": "auto", "scroll": true }, { @@ -4198,7 +4180,19 @@ "horizontal": false, "stretch": false, "spacing": 0, - "variables": {} + "variables": {}, + "_style": "style", + "scroll": true, + "_layout": "layout", + "layout": "", + "_osc": "osc", + "value": "", + "precision": 0, + "address": "auto", + "preArgs": [], + "target": [], + "_children": "children", + "tabs": [] } ], "type": "tab", @@ -4212,6 +4206,7 @@ "target": [], "variables": {}, "tabs": [], + "color": "auto", "scroll": true } ], @@ -4221,6 +4216,8 @@ "preArgs": [], "target": [], "variables": {}, + "color": "auto", + "css": "", "id": "root", "scroll": true, "label": false diff --git a/app/examples/widgets.js b/app/examples/widgets.js index b828a06b..79b40991 100644 --- a/app/examples/widgets.js +++ b/app/examples/widgets.js @@ -131,6 +131,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -140,7 +141,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -270,6 +270,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -279,7 +280,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -409,6 +409,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -418,7 +419,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -548,6 +548,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -557,7 +558,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -687,6 +687,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -696,7 +697,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -826,6 +826,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -835,7 +836,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -965,6 +965,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -974,7 +975,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -1104,6 +1104,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -1113,7 +1114,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -1243,6 +1243,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -1252,7 +1253,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -1382,6 +1382,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -1391,7 +1392,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] } ], @@ -1479,6 +1479,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -1488,7 +1489,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -1557,6 +1557,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -1566,7 +1567,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -1635,6 +1635,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -1644,7 +1645,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -1713,6 +1713,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -1722,7 +1723,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -1791,6 +1791,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -1800,7 +1801,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] }, { @@ -1869,6 +1869,7 @@ "spacing": 0, "variables": {}, "_style": "style", + "_children": "children", "scroll": true, "_layout": "layout", "layout": "", @@ -1878,7 +1879,6 @@ "address": "auto", "preArgs": [], "target": [], - "_children": "children", "tabs": [] } ], diff --git a/resources/docs/index.md b/resources/docs/index.md index 5b35cbe5..56096c45 100644 --- a/resources/docs/index.md +++ b/resources/docs/index.md @@ -4,11 +4,11 @@ Open Stage Control is a libre desktop OSC bi-directionnal control surface applic ![](img/mockup.png) - + [Try the online demo (chrome 49 required)](http://demo.osc.ammd.net) -[**Get the latest release**](https://github.com/jean-emmanuel/open-stage-control/releases) +[Download the latest release](https://github.com/jean-emmanuel/open-stage-control/releases) ## Supported platforms diff --git a/src/browser/js/app/widgets/buttons/push.js b/src/browser/js/app/widgets/buttons/push.js index 56fc0838..f375c3bd 100644 --- a/src/browser/js/app/widgets/buttons/push.js +++ b/src/browser/js/app/widgets/buttons/push.js @@ -35,7 +35,7 @@ module.exports = class Push extends _widgets_base { constructor(options) { - super({...options, html: '
'}) + super({...options, html: '
'}) this.state = 0 this.active = 0 diff --git a/src/browser/js/app/widgets/buttons/toggle.js b/src/browser/js/app/widgets/buttons/toggle.js index aed5185c..b8a09ce0 100644 --- a/src/browser/js/app/widgets/buttons/toggle.js +++ b/src/browser/js/app/widgets/buttons/toggle.js @@ -34,7 +34,7 @@ module.exports = class Toggle extends _widgets_base { constructor(options) { - super({...options, html: '
'}) + super({...options, html: '
'}) this.widget.value = this.widget.find('span') this.widget.state = 0 diff --git a/src/browser/js/app/widgets/common/_canvas_base.js b/src/browser/js/app/widgets/common/_canvas_base.js index 694675a8..b95191d1 100644 --- a/src/browser/js/app/widgets/common/_canvas_base.js +++ b/src/browser/js/app/widgets/common/_canvas_base.js @@ -64,6 +64,7 @@ module.exports = class _canvas_base extends _widgets_base { this.colors.bg = style.getPropertyValue('--color-bg') this.colors.fg = style.getPropertyValue('--color-fg') this.colors.faded = style.getPropertyValue('--color-faded') + this.colors.light = style.getPropertyValue('--color-light') } requestAnimationFrame(this.draw.bind(this)) diff --git a/src/browser/js/app/widgets/containers/modal.js b/src/browser/js/app/widgets/containers/modal.js index f8b76144..76e755c2 100644 --- a/src/browser/js/app/widgets/containers/modal.js +++ b/src/browser/js/app/widgets/containers/modal.js @@ -79,7 +79,7 @@ module.exports = class Modal extends Panel { this.setValue(0, {sync:true, send:true}) }) - this.light = $('
').appendTo(this.container) + this.light = $('
').appendTo(this.container) if (this.getProp('doubleTap')) { doubletabreset(this.light, ()=>{ @@ -107,7 +107,7 @@ module.exports = class Modal extends Panel { } this.fixScrolling() - + this.popup.toggle(this.value?true:false) this.container.toggleClass('on', this.value?true:false) diff --git a/src/browser/js/app/widgets/matrices/multifader.js b/src/browser/js/app/widgets/matrices/multifader.js index 1219b016..87e8f1f7 100644 --- a/src/browser/js/app/widgets/matrices/multifader.js +++ b/src/browser/js/app/widgets/matrices/multifader.js @@ -58,6 +58,10 @@ module.exports = class Multifader extends _matrices_base { if (this.getProp('horizontal')) { this.widget.addClass('horizontal') } + + if (this.getProp('compact')) { + this.widget.addClass('compact') + } var strData = JSON.stringify(options.props) diff --git a/src/browser/js/app/widgets/pads/rgb.js b/src/browser/js/app/widgets/pads/rgb.js index d7b78f0d..6ac2e7fa 100644 --- a/src/browser/js/app/widgets/pads/rgb.js +++ b/src/browser/js/app/widgets/pads/rgb.js @@ -69,7 +69,7 @@ module.exports = class Rgb extends _pads_base { h: new Fader({props:{ ...faderDefaults, id:'h', - compact:false, + compact:true, pips:false, horizontal:true, snap:this.getProp('snap'), diff --git a/src/browser/js/app/widgets/sliders/_sliders_base.js b/src/browser/js/app/widgets/sliders/_sliders_base.js index f929d77c..9db94d63 100644 --- a/src/browser/js/app/widgets/sliders/_sliders_base.js +++ b/src/browser/js/app/widgets/sliders/_sliders_base.js @@ -148,6 +148,7 @@ module.exports = class _sliders_base extends _canvas_base { this.colors.track = style.getPropertyValue('--color-track') this.colors.gauge = style.getPropertyValue('--color-gauge') this.colors.knob = style.getPropertyValue('--color-knob') + this.colors.pips = style.getPropertyValue('--color-pips') } super.resizeHandle(...arguments) diff --git a/src/browser/js/app/widgets/sliders/fader.js b/src/browser/js/app/widgets/sliders/fader.js index 6ec8daa9..5f5b93e8 100644 --- a/src/browser/js/app/widgets/sliders/fader.js +++ b/src/browser/js/app/widgets/sliders/fader.js @@ -54,7 +54,7 @@ module.exports = class Fader extends _sliders_base { super(options) this.widget.addClass('fader') - this.margin = 15 + this.margin = 16 if (this.getProp('horizontal')) { @@ -158,7 +158,7 @@ module.exports = class Fader extends _sliders_base { percentToCoord(percent) { if (this.getProp('horizontal')) { - return clip(percent / 100,[0,1]) * (this.width - 2 * PXSCALE * this.margin) + return clip(percent / 100,[0,1]) * (this.width - 2 * PXSCALE * this.margin) + this.margin * PXSCALE } else { return (this.height - this.margin * PXSCALE) - clip(percent / 100, [0,1]) * (this.height - 2 * PXSCALE * this.margin) } @@ -176,6 +176,11 @@ module.exports = class Fader extends _sliders_base { } } + if (this.getProp('horizontal')) { + this.ctx.rotate(-Math.PI/2) + this.ctx.translate(-this.height, 0) + } + if (CANVAS_SCALING != 1) this.ctx.scale(CANVAS_SCALING, CANVAS_SCALING) } @@ -183,152 +188,117 @@ module.exports = class Fader extends _sliders_base { draw() { - var d = Math.round(this.percentToCoord(this.percent)), - o = Math.round(this.percentToCoord(this.valueToPercent(this.originValue))), - m = Math.round(this.getProp('horizontal') ? this.height / 2 : this.width / 2) + var width = this.getProp('horizontal') ? this.height : this.width, + height = !this.getProp('horizontal') ? this.height : this.width + + var d = this.percentToCoord(this.percent), + o = this.percentToCoord(this.valueToPercent(this.originValue)), + m = this.getProp('horizontal') ? this.height / 2 : this.width / 2 this.clear() - if (this.getProp('horizontal')) { - if (this.getProp('compact')) { + if (this.getProp('compact')) { + + this.ctx.globalAlpha = 0.2 + 0.2 * Math.abs(d-o) / (d 2) { + this.ctx.globalAlpha = 1 + + var y, + min = Math.min(d,o), + max = Math.max(d,o) - this.ctx.globalAlpha = 0.2 + 0.2 * Math.abs(d-o) / (d 2) { - this.ctx.lineWidth = 1 * PXSCALE - this.ctx.globalAlpha = 1 - this.ctx.strokeStyle = this.colors.bg - - var x, - min = Math.min(d,o), - max = Math.max(d,o) - - this.ctx.beginPath() - for (var i = 1;i < this.rangeKeys.length - 1;i++) { - x = Math.round(this.percentToCoord(this.rangeKeys[i])) + 0.5 - this.ctx.moveTo(x, 0) - this.ctx.lineTo(x, 4 * PXSCALE) - this.ctx.moveTo(x, this.height - 4 * PXSCALE) - this.ctx.lineTo(x, this.height) - } - this.ctx.stroke() + for (var i = 1;i < this.rangeKeys.length - 1;i++) { + y = this.percentToCoord(this.rangeKeys[i]) + this.ctx.rect(0, y - PXSCALE, 4.5 * PXSCALE, 2 * PXSCALE) + this.ctx.rect(width - 4.5 * PXSCALE, y - PXSCALE, 4.5 * PXSCALE, 2 * PXSCALE) } - - this.ctx.globalAlpha = 1 - this.ctx.beginPath() - this.ctx.fillStyle = this.colors.knob - this.ctx.rect(Math.min(d,this.width-PXSCALE), 0, PXSCALE, this.height) + this.ctx.fillStyle = this.colors.pips this.ctx.fill() - - } else { - - this.ctx.lineWidth = Math.round(2 * PXSCALE) - - this.ctx.beginPath() + this.ctx.fillStyle = this.colors.light + this.ctx.fill() + this.ctx.lineWidth = 1 * PXSCALE this.ctx.strokeStyle = this.colors.track - this.ctx.moveTo(this.margin * PXSCALE, m) - this.ctx.lineTo(this.width - this.margin * PXSCALE, m ) this.ctx.stroke() - - this.ctx.beginPath() - this.ctx.strokeStyle = this.colors.gauge - this.ctx.moveTo(d + this.margin * PXSCALE, m) - this.ctx.lineTo(o + this.margin * PXSCALE, m) - this.ctx.stroke() - - this.ctx.fillStyle = this.colors.knob - - this.ctx.globalAlpha = 0.3 - this.ctx.arc(d + this.margin * PXSCALE, m, 10 * PXSCALE, Math.PI * 2, false) - this.ctx.fill() - this.ctx.globalAlpha = 1 - - this.ctx.beginPath() - this.ctx.arc(d + this.margin * PXSCALE, m, 4 * PXSCALE, Math.PI * 2, false) - this.ctx.fill() - - this.clearRect = [0, this.height / 2 - 11 * PXSCALE, this.width, 22 * PXSCALE] - } + this.ctx.globalAlpha = 1 + this.ctx.beginPath() + this.ctx.fillStyle = this.colors.knob + this.ctx.rect(0, Math.min(d, height - PXSCALE), width, PXSCALE) + this.ctx.fill() + + this.clearRect = [0, 0, width, height] } else { - if (this.getProp('compact')) { + this.ctx.lineWidth = 6 * PXSCALE - this.ctx.globalAlpha = 0.2 + 0.2 * Math.abs(d-o) / (d 2) { - this.ctx.lineWidth = 1 * PXSCALE - this.ctx.globalAlpha = 1 - this.ctx.strokeStyle = this.colors.bg + this.ctx.lineWidth = 4 * PXSCALE - var y, - min = Math.min(d,o), - max = Math.max(d,o) + this.ctx.beginPath() + this.ctx.globalAlpha = 1 + this.ctx.strokeStyle = this.colors.bg + this.ctx.moveTo(m, this.margin * PXSCALE - PXSCALE) + this.ctx.lineTo(m, height - this.margin * PXSCALE + PXSCALE) + this.ctx.stroke() - this.ctx.beginPath() - for (var i = 1;i < this.rangeKeys.length - 1;i++) { - y = Math.round(this.percentToCoord(this.rangeKeys[i])) + 0.5 - this.ctx.moveTo(0, y) - this.ctx.lineTo(4 * PXSCALE, y) - this.ctx.moveTo(this.width - 4 * PXSCALE, y) - this.ctx.lineTo(this.width, y) - } - this.ctx.stroke() - } + this.ctx.lineWidth = 2 * PXSCALE - this.ctx.globalAlpha = 1 - this.ctx.beginPath() - this.ctx.fillStyle = this.colors.knob - this.ctx.rect(0, Math.min(d, this.height - PXSCALE), this.width, PXSCALE) - this.ctx.fill() + this.ctx.beginPath() + this.ctx.strokeStyle = this.colors.track + this.ctx.moveTo(m, this.margin * PXSCALE) + this.ctx.lineTo(m, height - this.margin * PXSCALE) + this.ctx.stroke() + + this.ctx.beginPath() + this.ctx.globalAlpha = 1 + this.ctx.strokeStyle = this.colors.gauge + this.ctx.moveTo(m, d) + this.ctx.lineTo(m, o) + this.ctx.stroke() - } else { + this.ctx.globalAlpha = 1 - this.ctx.lineWidth = Math.round(2 * PXSCALE) + this.ctx.beginPath() + this.ctx.rect(m - 9 * PXSCALE, d - 15 * PXSCALE, 18 * PXSCALE, 30 * PXSCALE) + this.ctx.lineWidth = PXSCALE + this.ctx.fillStyle = this.colors.track + this.ctx.fill() - this.ctx.beginPath() - this.ctx.strokeStyle = this.colors.track - this.ctx.moveTo(m, this.margin * PXSCALE) - this.ctx.lineTo(m, this.height - this.margin * PXSCALE) - this.ctx.stroke() + this.ctx.beginPath() + this.ctx.rect(m - 8 * PXSCALE, d - 14 * PXSCALE, 16 * PXSCALE, 28 * PXSCALE) + this.ctx.fillStyle = this.colors.raised + this.ctx.fill() + this.ctx.lineWidth = PXSCALE - this.ctx.beginPath() - this.ctx.strokeStyle = this.colors.gauge - this.ctx.moveTo(m, d) - this.ctx.lineTo(m, o) - this.ctx.stroke() + this.ctx.beginPath() + this.ctx.rect(m - 7 * PXSCALE, d - 13 * PXSCALE, 14 * PXSCALE, 26 * PXSCALE) + this.ctx.lineWidth = PXSCALE + this.ctx.strokeStyle = this.colors.light + this.ctx.stroke() + this.ctx.beginPath() + this.ctx.rect(m - 4 * PXSCALE, d, 8 * PXSCALE, PXSCALE) + this.ctx.fillStyle = this.colors.knob + this.ctx.fill() - this.ctx.beginPath() - this.ctx.fillStyle = this.colors.knob - this.ctx.globalAlpha = 0.3 - this.ctx.arc(m, d, 10 * PXSCALE, Math.PI * 2,false) - this.ctx.fill() - this.ctx.globalAlpha = 1 - - this.ctx.beginPath() - this.ctx.arc(m, d, 4 * PXSCALE, Math.PI * 2,false) - this.ctx.fill() - - this.clearRect = [this.width / 2 - 11 * PXSCALE, 0, 22 * PXSCALE, this.height] - - } + this.clearRect = [width / 2 - 11 * PXSCALE, 0, 22 * PXSCALE, height] } } diff --git a/src/browser/js/app/widgets/sliders/knob.js b/src/browser/js/app/widgets/sliders/knob.js index 0ba6bf00..0f08ff3a 100644 --- a/src/browser/js/app/widgets/sliders/knob.js +++ b/src/browser/js/app/widgets/sliders/knob.js @@ -20,7 +20,6 @@ module.exports = class Knob extends _sliders_base { height:'auto', color:'auto', pips:true, - compact:false, angle:270, css:'', @@ -53,12 +52,9 @@ module.exports = class Knob extends _sliders_base { this.margin = 5 - if (this.getProp('compact')) { - this.widget.addClass('compact') - this.margin = 0 - } + this.widget.addClass('compact') - if (this.getProp('pips') && !this.getProp('compact')) { + if (this.getProp('pips')) { this.wrapper.append(`
${this.rangeLabels[0]}
${this.rangeLabels[this.rangeLabels.length-1]}
@@ -73,9 +69,7 @@ module.exports = class Knob extends _sliders_base { this.maxAngle = this.getProp('angle') // calculate lost height factor - var a = this.getProp('compact') ? - (1 - Math.sin((Math.max(this.maxAngle,247.5) - 180) / 2 * Math.PI / 180)) / 3 - : 1 - Math.sin((Math.max(this.maxAngle,180) - 180) / 2 * Math.PI / 180) + var a = (1 - Math.sin((Math.max(this.maxAngle,247.5) - 180) / 2 * Math.PI / 180)) / 3 this.lostHeightFactor = a / 4 } @@ -144,13 +138,9 @@ module.exports = class Knob extends _sliders_base { super.resizeHandle(...arguments) this.minDimension = Math.min(this.width, this.height) - this.gaugeWidth = this.minDimension / 8 + this.gaugeWidth = this.minDimension / 12 - if (this.getProp('compact')) { - this.canvas[0].style.top = this.input[0].style.marginTop = (this.minDimension) * this.lostHeightFactor - (this.getProp('label') === false ? 0 : this.gaugeWidth / 4) + 'px' - } else { - this.canvas[0].style.top = Math.min((this.minDimension) * this.lostHeightFactor - (this.getProp('label') === false ? 0 : this.margin * PXSCALE / 2), this.input.outerHeight() * .5) + 'px' - } + this.canvas[0].style.top = (this.minDimension) * this.lostHeightFactor - (this.getProp('label') === false ? 0 : this.gaugeWidth / 4) + 'px' } @@ -163,131 +153,87 @@ module.exports = class Knob extends _sliders_base { this.ctx.clearRect(0,0,this.width,this.height) - if (this.getProp('compact')) { + this.ctx.globalAlpha = 1 - this.ctx.strokeStyle = this.colors.track - this.ctx.globalAlpha = 0.3 - this.ctx.lineWidth = this.gaugeWidth - this.ctx.beginPath() - this.ctx.arc(this.width / 2, this.height / 2, this.minDimension / 2 - this.gaugeWidth - this.margin * PXSCALE, min, max) - this.ctx.stroke() + this.ctx.strokeStyle = this.colors.light + this.ctx.lineWidth = 7 * PXSCALE + this.ctx.beginPath() + this.ctx.arc(this.width / 2, this.height / 2, this.minDimension / 2 - this.gaugeWidth - this.margin * PXSCALE, min - 0.06, max + 0.06) + this.ctx.stroke() - this.ctx.lineWidth = this.gaugeWidth - this.ctx.globalAlpha = 0.3 + 0.2 * Math.abs(d-o) / (d canvas { + border:1rem solid var(--color-bg); + } + .wrapper { + + canvas { + background: var(--color-track); + } } .input { overflow: hidden; diff --git a/src/browser/scss/widgets/_knob.scss b/src/browser/scss/widgets/_knob.scss index e3d9aa42..f1155468 100644 --- a/src/browser/scss/widgets/_knob.scss +++ b/src/browser/scss/widgets/_knob.scss @@ -2,12 +2,13 @@ --color-pips: var(--color-text-fade); --color-gauge: var(--color-custom); --color-knob: var(--color-custom); - --color-track: var(--color-bg); width: 100rem; height: 120rem; align-items: center; - + .input { + // display: none!important; + } } .knob { @@ -29,15 +30,10 @@ canvas { width: 100%; position: relative; + image-rendering: pixelated; } } - &.compact { - .input { - position: absolute; - top:calc(50% - 12rem); - pointer-events: none; - } - } + .pips { position: absolute; bottom: 0; diff --git a/src/browser/scss/widgets/_maths.scss b/src/browser/scss/widgets/_maths.scss index b54346e5..acaaef08 100644 --- a/src/browser/scss/widgets/_maths.scss +++ b/src/browser/scss/widgets/_maths.scss @@ -1,14 +1,12 @@ .formula-container { width: 100rem; height:60rem; - .label { - box-shadow: 0 -11rem 10rem 10rem var(--color-bg); - z-index: 1; - } .formula { display:flex; height:100%; - background: var(--color-faded); + background: var(--color-track); + margin:1rem; + border:1rem solid var(--color-bg); .input { height:auto; width: 100%; diff --git a/src/browser/scss/widgets/_matrices.scss b/src/browser/scss/widgets/_matrices.scss index 16110bd3..fd588f83 100644 --- a/src/browser/scss/widgets/_matrices.scss +++ b/src/browser/scss/widgets/_matrices.scss @@ -8,20 +8,18 @@ &.nolabel .matrix { top:0; } - > .label { - border-bottom:1rem solid var(--color-bg); - } + } + .matrix { flex:1; overflow: auto; - background: var(--color-bg); + // background: var(--color-bg); display: flex; flex-wrap: wrap; flex-direction: row; - margin-left:-1rem; - margin-right:-1rem; - margin-top: -1rem; + padding:1rem 2rem 2rem 1rem; + > .widget { min-height: 0; @@ -37,7 +35,7 @@ .multifader-container { .matrix { - padding:0!important; + // padding:0!important; align-items:stretch; flex-wrap: nowrap; &.horizontal { @@ -72,6 +70,22 @@ > .fader { height: auto; flex: 1; + + } + } + &.compact { + > .widget { + // box-shadow: none; + .label { + box-shadow: 0.5rem 0.5rem 0 0.5rem var(--color-bg); + box-shadow: 0 0 0 1rem var(--color-light) inset; + } + .wrapper { + padding:0; + canvas{ + border:none; + } + } } } } @@ -81,36 +95,32 @@ left:0!important; } } + } .keyboard-container { - --color-black: var(--color-light-fg); + --color-black: var(--color-raised); --color-white: #ccc; height:90rem; width:240rem; - .label { - border-bottom: 1rem solid var(--color-bg); - } .matrix { position: relative; overflow: hidden; .white { - --color-light-fg: var(--color-white); - .light.active:before { - opacity: .5; - background:var(--color-fg); - } + --color-raised: var(--color-white); + // &.active { + // background:var(--color-custom); + // } } .black { - --color-light-fg: var(--color-black); + --color-raised: var(--color-black); position: absolute; - z-index: 1; - top:0; + z-index: 2; + top:1rem; height: 65%; - .light.active:before { - opacity: 1; - background:var(--color-fg); - } + // &.active { + // background:var(--color-custom); + // } } } } diff --git a/src/browser/scss/widgets/_pads.scss b/src/browser/scss/widgets/_pads.scss index 8f9c8d6b..762d4999 100644 --- a/src/browser/scss/widgets/_pads.scss +++ b/src/browser/scss/widgets/_pads.scss @@ -1,11 +1,12 @@ .xy-container, .rgb-container, .multixy-container { width:200rem; height:250rem; + padding:1rem; .label { flex-shrink: 0; - box-shadow: 0 -11rem 10rem 10rem var(--color-bg); z-index: 1; } + } .pad { height:100%; @@ -17,14 +18,12 @@ display: flex; text-align: center; flex-shrink: 0; - background: var(--color-fg); } > .wrapper { position: relative; height: 100%; width: 100%; - background:var(--color-faded); - box-shadow: 0 1rem 0 0 var(--color-light); + background:var(--color-track); > canvas { width:100%; @@ -32,6 +31,7 @@ position: absolute; pointer-events: none; z-index: 1; + border: 1rem solid var(--color-bg); } .fader { pointer-events: none; @@ -42,10 +42,14 @@ --color-knob:transparent; --color-gauge:transparent; box-shadow: none; + border: 0; * { background: transparent!important; } + canvas { + border:none; + } .input { display: none; } @@ -57,6 +61,7 @@ .pad { > .wrapper { background: red; + > canvas { z-index: 1; } @@ -77,30 +82,34 @@ } } > .hue-wrapper { - position: relative; - height: 30rem; + height: 14rem; + margin: 6rem; z-index: 1; - - &:before { - content:""; - position: absolute; - left:0; - top:11rem; - left:12rem; - right:12rem; - height: 8rem; - background:transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%; - z-index: -1; - opacity: .6; - border-radius: 15rem; - box-shadow: 0 0 0 7rem var(--color-bg), 0 1rem 0 7rem var(--color-light), 0 1rem 0 7rem var(--color-light); - } .fader { + position: relative; + border-radius: 3rem; + + &:after { + content:""; + position: absolute; + left:2rem; + top:1rem; + bottom:1rem; + right:1rem; + background:transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%; + z-index: -1; + opacity: 0.7; + border-radius: inherit; + } --color-knob:white; --color-gauge:transparent; --color-track:transparent; + .wrapper { + border-radius: inherit; + } canvas { background: transparent; + border-radius: inherit; } } .input { @@ -149,6 +158,9 @@ .wrapper { background: transparent; } + canvas { + border:none; + } .row { display: none; } diff --git a/src/browser/scss/widgets/_panel.scss b/src/browser/scss/widgets/_panel.scss index ddec12d1..1a4994fa 100644 --- a/src/browser/scss/widgets/_panel.scss +++ b/src/browser/scss/widgets/_panel.scss @@ -1,8 +1,13 @@ .panel-container-base { + --color-border:var(--color-bg); + z-index: 1; + + box-shadow: 0.5rem 0.5rem 0 0.5rem var(--color-border), 0 0 0 1rem var(--color-light) inset!important; > .label { - border-bottom:1rem solid var(--color-bg); - z-index: 1; + border-bottom:1rem solid var(--color-border); + z-index: 20; + box-shadow: 0 -1rem 0 0 var(--color-light) inset; } .panel { @@ -12,13 +17,30 @@ left:-1rem; right:0; bottom:0; + background: var(--color-fg); + --color-border: var(--color-fg); + box-shadow: 0.5rem 0.5rem 0 1.5rem var(--color-light) inset; + &.tab, &.root, &.has-tabs { + background: var(--color-bg); + --color-border: var(--color-bg); + box-shadow: none; + + } + &:not(.tab) { + > .widget { + box-shadow: 0.5rem 0.5rem 0 0.5rem var(--color-border); + background: transparent; + } + } &.has-tabs { top:30rem; display: flex; flex-direction: column; background: var(--color-bg); + > .tabs-wrapper { + background: var(--color-fg); display: flex; flex-direction: column; left:-1rem; @@ -78,9 +100,11 @@ .strip-container { @extend .panel-container-base; - width: 100rem; height: 100%; + + background: var(--color-fg)!important; + &.horizontal { width: 100%; height: 130rem; @@ -89,6 +113,7 @@ &.vertical { > .panel { + display: flex; flex-direction: column; align-items: stretch; @@ -123,7 +148,9 @@ flex-shrink: 0; height:100%; border-bottom:0; - border-right:1rem solid var(--color-bg); + border-right:1rem solid var(--color-border); + box-shadow: -1rem 0 0 0 var(--color-light) inset; + position: relative; max-height: initial; span { transform: rotate(180deg); @@ -154,24 +181,26 @@ } .modal-container { - @extend .panel-container-base; @extend .toggle-container; - > .light:after { + .toggle .light:after { content:"\f077"; font-family: FontAwesome; - border:0; - padding: 2rem 4rem; - opacity: .5; transform: rotateZ(45deg); display: block; width:10rem; height:10rem; + right:2rem; + top:2rem; + left:auto; line-height: 10rem; text-align: center; float:right; - position: static; + position: absolute;; box-shadow: none; + background: none; + color:var(--color-track); + text-shadow: 0 0 1rem var(--color-light); } > .label { top:0; @@ -218,6 +247,10 @@ } &.on { z-index: 99999; + @extend .panel-container-base; + .toggle .light:after { + color:var(--color-custom); + } } } @@ -236,7 +269,7 @@ .tab-container, .root-container { height: 100%; box-shadow: none; - + background: var(--color-bg)!important; > .panel { transform: rotateZ(0); diff --git a/src/browser/scss/widgets/_plots.scss b/src/browser/scss/widgets/_plots.scss index 6c24c8ba..19c88afb 100644 --- a/src/browser/scss/widgets/_plots.scss +++ b/src/browser/scss/widgets/_plots.scss @@ -29,29 +29,22 @@ .plot-container, .visualizer-container, .eq-container { --color-custom:var(--color-accent); - height: 200rem; width: 200rem; + padding:1rem; .plot { display: flex; flex-direction: row; flex:1; position: relative; - background:linear-gradient(to right, var(--color-faded), var(--color-fg) 300%); - &:after { - content:""; - position: absolute; - box-shadow: 0 10rem 10rem -12rem var(--color-bg) inset, 0 -10rem 10rem -12rem var(--color-bg) inset; - height: 100%; - width: 100%; - z-index: 2; - } + background: var(--color-track); } canvas { position: absolute; top:0;left:0; width:100%; height: 100%; + border:1rem solid var(--color-bg); } } @@ -70,10 +63,6 @@ .text-container { --color-custom:var(--color-accent); flex-shrink: 0; - .label { - box-shadow: 0 -11rem 10rem 10rem var(--color-bg); - z-index: 1; - } .text { flex: 1; height:35rem; @@ -81,8 +70,10 @@ justify-content: center; display: flex; align-items: center; - background: var(--color-faded); + background: var(--color-track); color:var(--color-custom); + margin:1rem; + border: 1rem solid var(--color-bg); &.vertical { transform: rotate(180deg); text-overflow: ellipsis; diff --git a/src/browser/scss/widgets/_push.scss b/src/browser/scss/widgets/_push.scss index dbe50717..d821cb26 100644 --- a/src/browser/scss/widgets/_push.scss +++ b/src/browser/scss/widgets/_push.scss @@ -1,12 +1,17 @@ .push-container { @extend .toggle-container; - > .label { - top:0; - } - .active { - background: var(--color-light); - } - .light:after{ - display: none; + // .label { + // top:0; + // } + .toggle { + &.active { + background-color: var(--color-fg); + } + &.on .light:before { + opacity: 0.3; + } + .light:after{ + display: none; + } } } diff --git a/src/browser/scss/widgets/_switch.scss b/src/browser/scss/widgets/_switch.scss index a2e4d924..4ee29da1 100644 --- a/src/browser/scss/widgets/_switch.scss +++ b/src/browser/scss/widgets/_switch.scss @@ -1,11 +1,13 @@ .switch-container { + --color-border:var(--color-bg); + z-index: 1; width:100rem; .label { border-bottom: 1rem solid var(--color-bg); } &.nolabel { .switch .value:first-child { - box-shadow: none!important; + // box-shadow: none!important; } .switch.horizontal .value { box-shadow: none; @@ -20,6 +22,8 @@ align-items: stretch; flex:1; z-index: 1; + background:var(--color-bg); + &.horizontal { flex-direction:row; @@ -39,13 +43,14 @@ } } .value { - background:var(--color-light); + background:var(--color-raised); padding:6rem; color:var(--color-text); width:100%; - height:100%; + flex:1; position: relative; - border-top: 1rem solid var(--color-bg); + // border-top: 1rem solid var(--color-bg); + margin-bottom:1rem; white-space: normal; text-align: center; word-break: break-all; @@ -53,10 +58,10 @@ display: flex; flex-direction: column; justify-content: center; - box-shadow: 0 1rem 0 0 var(--color-light) inset; + box-shadow: 0 0 0 1rem var(--color-light) inset!important; &:first-child { - border-top:0; + // border-top:0; } &:last-child { @@ -87,18 +92,17 @@ .switcher-container, .crossfader-container { - .label { - border-bottom: 1rem solid var(--color-bg); - } .switcher { - width: 100%; flex:1; + width:auto; } } .crossfader-container { .switcher { display:flex; + margin: 1rem; + border: 1rem solid var(--color-bg); &.horizontal { flex-direction: column; .switch { diff --git a/src/browser/scss/widgets/_toggle.scss b/src/browser/scss/widgets/_toggle.scss index ffc2182e..a4de3ec8 100644 --- a/src/browser/scss/widgets/_toggle.scss +++ b/src/browser/scss/widgets/_toggle.scss @@ -2,7 +2,57 @@ width:100rem; height: 60rem; padding:0!important; - background: var(--color-light-fg); + --color-border:var(--color-bg); + z-index: 1; + + .toggle { + + background: var(--color-raised); + cursor: pointer; + flex:1; + display: flex; + + + .light { + + flex:1; + display: flex; + box-shadow: 0 0 0 1rem var(--color-light) inset; + pointer-events: none; + + &:after { + content:""; + opacity: 1; + position: absolute; + display: block; + top:3rem; + left:3rem; + right:3rem; + height: 4rem; + background: var(--color-track); + box-shadow: 0 0 0 1rem var(--color-light), 0 0 0 1rem var(--color-track) inset; + z-index: 1; + } + + &:before { + content:""; + flex:1; + background: var(--color-custom); + opacity: 0; + } + } + + &.on { + // background: var(--color-fg); + + .light:after { + background: var(--color-custom); + } + + + } + + } > .label { position: absolute; @@ -20,47 +70,7 @@ display: flex; justify-content: center; align-items: center; - z-index: 1; + z-index: 2; } - cursor: pointer; - - > .light { - flex:1; - - &:after { - content:""; - opacity: 1; - position: absolute; - display: block; - top:3rem; - left:3rem; - right:3rem; - border-top: 2rem solid var(--color-bg); - box-shadow: 0 1rem 0 0 var(--color-light), 0 1rem 0 0 var(--color-light); - z-index: 1; - opacity: .5; - - } - - &:before { - content:""; - width: 100%; - height: 100%; - position: absolute; - background: var(--color-custom); - opacity: 0; - } - &.on { - &:before { - opacity: .3; - } - &:after { - border-top-color: var(--color-custom); - box-shadow: none; - opacity: .7; - } - - } - } }