sunrize 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -9
- package/src/Application/Application.js +1 -0
- package/src/Application/Footer.js +5 -5
- package/src/Editors/AnimationEditor.js +14 -0
- package/src/Editors/Console.js +4 -2
- package/src/Editors/OutlineEditor.js +4 -2
- package/src/Editors/SceneProperties.js +5 -1
- package/src/Editors/VideoRecorder.js +145 -0
- package/src/Tools/Core/X3DBaseTool.js +1 -1
- package/src/Tools/Core/X3DNodeTool.js +2 -4
- package/src/Tools/Geospatial/GeoLODTool.js +1 -1
- package/src/Undo/Editor.js +1 -1
- package/src/assets/html/application.html +4 -4
- package/src/assets/themes/default.css +68 -28
- package/src/assets/themes/definitions.css +151 -212
- package/src/assets/themes/fonts.css +45 -0
- package/src/assets/themes/prompt-template.css +1 -0
- package/src/assets/themes/prompt.css +1 -0
- package/src/Editors/MediaRecorder.js +0 -27
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sunrize",
|
|
3
3
|
"productName": "Sunrize X3D Editor",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.6.0",
|
|
5
5
|
"description": "Sunrize — A Multi-Platform X3D Editor",
|
|
6
6
|
"main": "src/main.js",
|
|
7
7
|
"bin": {
|
|
@@ -92,7 +92,8 @@
|
|
|
92
92
|
"@electron-forge/maker-zip": "^8.0.1",
|
|
93
93
|
"@electron-forge/publisher-github": "^8.0.1",
|
|
94
94
|
"@eslint/js": "^10.0.1",
|
|
95
|
-
"
|
|
95
|
+
"@reforged/maker-appimage": "^6.0.0",
|
|
96
|
+
"eslint": "^10.13.0",
|
|
96
97
|
"globals": "^17.13.0",
|
|
97
98
|
"shell-tools": "^1.1.9"
|
|
98
99
|
},
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
"@vscode/codicons": "^0.0.45",
|
|
101
102
|
"capitalize": "^2.0.4",
|
|
102
103
|
"console": "^0.7.2",
|
|
103
|
-
"electron": "^
|
|
104
|
+
"electron": "^45.0.0",
|
|
104
105
|
"electron-prompt": "^1.7.0",
|
|
105
106
|
"electron-squirrel-startup": "^1.0.1",
|
|
106
107
|
"electron-tabs": "^1.0.4",
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
"jquery": "^3.7.1",
|
|
109
110
|
"jquery-ui-dist": "^1.13.3",
|
|
110
111
|
"jstree": "^3.3.17",
|
|
111
|
-
"material-symbols": "^0.48.
|
|
112
|
+
"material-symbols": "^0.48.1",
|
|
112
113
|
"md5": "^2.3.0",
|
|
113
114
|
"mime-types": "^3.0.2",
|
|
114
115
|
"monaco-editor": "^0.55.1",
|
|
@@ -118,11 +119,11 @@
|
|
|
118
119
|
"string-similarity": "^4.0.4",
|
|
119
120
|
"tweakpane": "^4.0.5",
|
|
120
121
|
"update-electron-app": "^3.3.0",
|
|
121
|
-
"x_ite": "^16.
|
|
122
|
-
"x_ite-off-parser": "^1.3.
|
|
123
|
-
"x_ite-sog-parser": "^2.1.
|
|
124
|
-
"x_ite-spz-parser": "^2.1.
|
|
125
|
-
"x3d-traverse": "^3.0.
|
|
122
|
+
"x_ite": "^16.6.0",
|
|
123
|
+
"x_ite-off-parser": "^1.3.1",
|
|
124
|
+
"x_ite-sog-parser": "^2.1.1",
|
|
125
|
+
"x_ite-spz-parser": "^2.1.2",
|
|
126
|
+
"x3d-traverse": "^3.0.3"
|
|
126
127
|
},
|
|
127
128
|
"allowScripts": {
|
|
128
129
|
"electron-winstaller@5.4.4": true,
|
|
@@ -102,6 +102,7 @@ module .exports = class Application
|
|
|
102
102
|
electron .ipcMain .handle ("open-files", async (event, urls) => this .openFiles (urls));
|
|
103
103
|
electron .ipcMain .handle ("file-path", async (event, options) => await this .showDialog (options));
|
|
104
104
|
electron .ipcMain .handle ("fullname", async () => await (await import ("fullname")) .default ());
|
|
105
|
+
electron .ipcMain .handle ("path", async (event, name) => electron .app .getPath (name));
|
|
105
106
|
|
|
106
107
|
await electron .app .whenReady ();
|
|
107
108
|
await this .updateMenu ();
|
|
@@ -37,7 +37,7 @@ module .exports = class Footer extends Tabs
|
|
|
37
37
|
this .addIconTextTab ("route-graph", "route", _("Route Graph"));
|
|
38
38
|
|
|
39
39
|
if (process .env .SUNRISE_ENVIRONMENT === "DEVELOPMENT")
|
|
40
|
-
this .addIconTextTab ("
|
|
40
|
+
this .addIconTextTab ("video-recorder", "videocam", _("Video Recorder"));
|
|
41
41
|
|
|
42
42
|
this .activateTab (3);
|
|
43
43
|
this .activateTab (0);
|
|
@@ -93,13 +93,13 @@ module .exports = class Footer extends Tabs
|
|
|
93
93
|
this .editors .set (panel .attr ("id"), this .routeGraph);
|
|
94
94
|
break;
|
|
95
95
|
}
|
|
96
|
-
case "
|
|
96
|
+
case "video-recorder":
|
|
97
97
|
{
|
|
98
|
-
const
|
|
98
|
+
const VideoRecorder = require ("../Editors/VideoRecorder");
|
|
99
99
|
|
|
100
|
-
this .
|
|
100
|
+
this .videoRecorder = new VideoRecorder (panel);
|
|
101
101
|
|
|
102
|
-
this .editors .set (panel .attr ("id"), this .
|
|
102
|
+
this .editors .set (panel .attr ("id"), this .videoRecorder);
|
|
103
103
|
break;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -276,6 +276,10 @@ module .exports = class AnimationEditor extends Interface
|
|
|
276
276
|
|
|
277
277
|
this .setSelection (selection);
|
|
278
278
|
|
|
279
|
+
// Visibility
|
|
280
|
+
|
|
281
|
+
document .addEventListener ("visibilitychange", () => this .visibility ());
|
|
282
|
+
|
|
279
283
|
// Setup
|
|
280
284
|
|
|
281
285
|
this .setup ();
|
|
@@ -296,6 +300,12 @@ module .exports = class AnimationEditor extends Interface
|
|
|
296
300
|
this .requestDrawTimeline ();
|
|
297
301
|
}
|
|
298
302
|
|
|
303
|
+
visibility ()
|
|
304
|
+
{
|
|
305
|
+
if (this .timeSensor)
|
|
306
|
+
this .timeSensor ._evenLive = !(document .webkitHidden ?? document .hidden);
|
|
307
|
+
}
|
|
308
|
+
|
|
299
309
|
isAnimation (node)
|
|
300
310
|
{
|
|
301
311
|
if (!node .getType () .includes (X3D .X3DConstants .Group))
|
|
@@ -396,6 +406,10 @@ module .exports = class AnimationEditor extends Interface
|
|
|
396
406
|
}
|
|
397
407
|
else
|
|
398
408
|
{
|
|
409
|
+
// TimeSensor
|
|
410
|
+
|
|
411
|
+
this .timeSensor = null;
|
|
412
|
+
|
|
399
413
|
// Show Animations List
|
|
400
414
|
|
|
401
415
|
this .updateMemberList ();
|
package/src/Editors/Console.js
CHANGED
|
@@ -16,13 +16,15 @@ module .exports = class Console extends Interface
|
|
|
16
16
|
{
|
|
17
17
|
super (`Sunrize.Console.${element .attr ("id")}.`);
|
|
18
18
|
|
|
19
|
+
this .console = element;
|
|
19
20
|
this .suspendConsole = false;
|
|
20
21
|
this .historyIndex = 0;
|
|
21
22
|
this .history = [ ];
|
|
22
23
|
this .addMessageCallback = this .addMessage .bind (this);
|
|
23
24
|
|
|
24
|
-
this .
|
|
25
|
-
|
|
25
|
+
this .left = $("<div></div>")
|
|
26
|
+
.addClass ("console-left")
|
|
27
|
+
.appendTo (this .console);
|
|
26
28
|
|
|
27
29
|
this .output = $("<div></div>")
|
|
28
30
|
.addClass (["console-output", "output"])
|
|
@@ -1843,7 +1843,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
|
|
|
1843
1843
|
executionContext = this .objects .get (executionContextId),
|
|
1844
1844
|
childNode = this .objects .get (nodeId),
|
|
1845
1845
|
defaultDirectory = $.try (() => path .dirname (url .fileURLToPath (executionContext .getWorldURL ()))),
|
|
1846
|
-
defaultPath = childNode .
|
|
1846
|
+
defaultPath = childNode .getDisplayName () && defaultDirectory ? path .join (defaultDirectory, `${childNode .getDisplayName ()}.x3d`) : defaultDirectory,
|
|
1847
1847
|
response = await electron .ipcRenderer .invoke ("file-path", { type: "save", defaultPath });
|
|
1848
1848
|
|
|
1849
1849
|
if (response .canceled)
|
|
@@ -3157,7 +3157,9 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
|
|
|
3157
3157
|
event .originalEvent .dataTransfer .dropEffect = "move";
|
|
3158
3158
|
|
|
3159
3159
|
if (sourceIndex == destinationIndex || sourceIndex + 1 == destinationIndex)
|
|
3160
|
-
{
|
|
3160
|
+
{
|
|
3161
|
+
;
|
|
3162
|
+
}
|
|
3161
3163
|
else if (sourceIndex < destinationIndex)
|
|
3162
3164
|
{
|
|
3163
3165
|
for (let i = sourceIndex + 1; i < destinationIndex; ++ i)
|
|
@@ -83,9 +83,13 @@ module .exports = new class SceneProperties extends Dialog
|
|
|
83
83
|
.width ("15px")
|
|
84
84
|
.append ($("<input></input>")
|
|
85
85
|
.attr ("type", "checkbox")
|
|
86
|
+
.attr ("id", `scene-properties-${component .name}`)
|
|
86
87
|
.attr ("component", component .name)
|
|
87
88
|
.on ("change", () => this .changeComponents ())))
|
|
88
|
-
.append ($("<td></td>")
|
|
89
|
+
.append ($("<td></td>")
|
|
90
|
+
.append ($("<label></label>")
|
|
91
|
+
.attr ("for", `scene-properties-${component .name}`)
|
|
92
|
+
.text (component .title)))
|
|
89
93
|
.append ($("<td></td>")
|
|
90
94
|
.width ("15px")
|
|
91
95
|
.append ($("<input></input>")
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const
|
|
5
|
+
$ = require ("jquery"),
|
|
6
|
+
Interface = require ("../Application/Interface"),
|
|
7
|
+
electron = require ("electron"),
|
|
8
|
+
fs = require ("fs"),
|
|
9
|
+
_ = require ("../Application/GetText");
|
|
10
|
+
|
|
11
|
+
module .exports = class VideoRecorder extends Interface
|
|
12
|
+
{
|
|
13
|
+
static mimeTypes = [
|
|
14
|
+
["MP4", "video/mp4", "mp4"],
|
|
15
|
+
["WebM", "video/webm", "webm"],
|
|
16
|
+
["OGG", "video/ogg", "ogv"],
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
constructor (element)
|
|
20
|
+
{
|
|
21
|
+
super (`Sunrize.VideoRecorder.${element .attr ("id")}.`);
|
|
22
|
+
|
|
23
|
+
this .recorder = element;
|
|
24
|
+
|
|
25
|
+
this .left = $("<div></div>")
|
|
26
|
+
.addClass ("video-recorder-left")
|
|
27
|
+
.appendTo (this .recorder);
|
|
28
|
+
|
|
29
|
+
// Toolbar
|
|
30
|
+
|
|
31
|
+
this .toolbar = $("<div></div>")
|
|
32
|
+
.addClass (["toolbar", "vertical-toolbar", "secondary-toolbar", "video-recorder-toolbar"])
|
|
33
|
+
.appendTo (this .recorder);
|
|
34
|
+
|
|
35
|
+
this .setup ();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#desktop;
|
|
39
|
+
|
|
40
|
+
async initialize ()
|
|
41
|
+
{
|
|
42
|
+
this .#desktop = await electron .ipcRenderer .invoke ("path", "desktop");
|
|
43
|
+
|
|
44
|
+
// Toolbar
|
|
45
|
+
|
|
46
|
+
this .recordButton = $("<span></span>")
|
|
47
|
+
.addClass (["material-symbols-outlined"])
|
|
48
|
+
.attr ("title", _("Start recording."))
|
|
49
|
+
.text ("screen_record")
|
|
50
|
+
.on ("click", () => this .toggleRecord ())
|
|
51
|
+
.appendTo (this .toolbar);
|
|
52
|
+
|
|
53
|
+
this .settingsButton = $("<span></span>")
|
|
54
|
+
.addClass (["material-symbols-outlined"])
|
|
55
|
+
.attr ("title", _("Edit settings."))
|
|
56
|
+
.text ("settings")
|
|
57
|
+
.on ("click", () => this .showSettings ())
|
|
58
|
+
.appendTo (this .toolbar);
|
|
59
|
+
|
|
60
|
+
this .mimeTypeButton = $("<select></select>");
|
|
61
|
+
|
|
62
|
+
for (const [name, mimeType] of VideoRecorder .mimeTypes)
|
|
63
|
+
{
|
|
64
|
+
if (!MediaRecorder .isTypeSupported (mimeType))
|
|
65
|
+
continue;
|
|
66
|
+
|
|
67
|
+
$("<option></option>")
|
|
68
|
+
.text (name)
|
|
69
|
+
.val (mimeType)
|
|
70
|
+
.appendTo (this .mimeTypeButton);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#record = false;
|
|
75
|
+
#timeoutId;
|
|
76
|
+
#mimeType;
|
|
77
|
+
#recorder;
|
|
78
|
+
#blob;
|
|
79
|
+
|
|
80
|
+
toggleRecord ()
|
|
81
|
+
{
|
|
82
|
+
if (this .#record)
|
|
83
|
+
this .stopRecord ();
|
|
84
|
+
else
|
|
85
|
+
this .startRecord ();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
async startRecord ()
|
|
89
|
+
{
|
|
90
|
+
const stream = this .browser .getElement () .captureStream (30);
|
|
91
|
+
|
|
92
|
+
this .#timeoutId = setTimeout (() => this .stopRecord (), 60_000);
|
|
93
|
+
this .#mimeType = this .mimeTypeButton .val ();
|
|
94
|
+
this .#recorder = new MediaRecorder (stream, { mimeType: this .#mimeType });
|
|
95
|
+
|
|
96
|
+
const chunks = [ ];
|
|
97
|
+
|
|
98
|
+
this .#recorder .addEventListener ("dataavailable", event =>
|
|
99
|
+
{
|
|
100
|
+
if (event .data .size > 0)
|
|
101
|
+
chunks .push (event .data);
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
this .#blob = new Promise (resolve =>
|
|
105
|
+
{
|
|
106
|
+
this .#recorder .addEventListener ("stop", () =>
|
|
107
|
+
{
|
|
108
|
+
resolve (new Blob (chunks, { type: this .#mimeType }));
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
this .#recorder .start ();
|
|
113
|
+
|
|
114
|
+
// Toggle State
|
|
115
|
+
|
|
116
|
+
this .#record = true;
|
|
117
|
+
|
|
118
|
+
this .recordButton .addClass ("active");
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
async stopRecord ()
|
|
122
|
+
{
|
|
123
|
+
clearTimeout (this .#timeoutId);
|
|
124
|
+
|
|
125
|
+
this .#recorder .stop ();
|
|
126
|
+
|
|
127
|
+
const
|
|
128
|
+
suffix = VideoRecorder .mimeTypes .find (([, mimeType]) => mimeType === this .#mimeType) [2],
|
|
129
|
+
blob = await this .#blob,
|
|
130
|
+
buffer = Buffer .from (await blob .arrayBuffer ());
|
|
131
|
+
|
|
132
|
+
fs .writeFileSync (`${this .#desktop}/test.${suffix}`, buffer);
|
|
133
|
+
|
|
134
|
+
// Toggle State
|
|
135
|
+
|
|
136
|
+
this .#record = false;
|
|
137
|
+
|
|
138
|
+
this .recordButton .removeClass ("active");
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
showSettings ()
|
|
142
|
+
{
|
|
143
|
+
|
|
144
|
+
}
|
|
145
|
+
};
|
|
@@ -7,7 +7,7 @@ const handler =
|
|
|
7
7
|
if (Reflect .has (target, key))
|
|
8
8
|
return Reflect .get (target, key);
|
|
9
9
|
|
|
10
|
-
const property = target .node
|
|
10
|
+
const property = Reflect .get (target .node, key);
|
|
11
11
|
|
|
12
12
|
if (typeof property === "function")
|
|
13
13
|
return property .bind (target .node);
|
|
@@ -503,14 +503,12 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
503
503
|
if (this .nodePush)
|
|
504
504
|
this .node .push (renderObject);
|
|
505
505
|
|
|
506
|
-
renderObject .
|
|
507
|
-
renderObject .getSensors () .push (X3DNodeTool .#sensors);
|
|
506
|
+
renderObject .getSensors () .push (X3DNodeTool .#sensors);
|
|
508
507
|
|
|
509
508
|
for (const innerNode of this .#innerNodes)
|
|
510
509
|
innerNode ?.traverse (type, renderObject);
|
|
511
510
|
|
|
512
|
-
renderObject .getSensors ()
|
|
513
|
-
renderObject .getHAnimNode () .pop ();
|
|
511
|
+
renderObject .getSensors () .pop ();
|
|
514
512
|
|
|
515
513
|
if (this .nodePush)
|
|
516
514
|
this .node .pop (renderObject);
|
|
@@ -25,7 +25,7 @@ class GeoLODTool extends X3DBoundedObjectTool
|
|
|
25
25
|
|
|
26
26
|
super .reshapeTool ();
|
|
27
27
|
|
|
28
|
-
const center = this .node .
|
|
28
|
+
const center = this .node .getLocalCoord (this .node ._center, GeoLODTool .#center);
|
|
29
29
|
|
|
30
30
|
if (!this .tool .center .getValue () .equals (center))
|
|
31
31
|
this .tool .center = center;
|
package/src/Undo/Editor.js
CHANGED
|
@@ -3581,7 +3581,7 @@ ${scene .toXMLString ({ html: true, indent: " " .repeat (6) }) .trimEnd () }
|
|
|
3581
3581
|
case X3D .X3DConstants .GeoCoordinate:
|
|
3582
3582
|
{
|
|
3583
3583
|
const point = node ._point
|
|
3584
|
-
.map (p => node .
|
|
3584
|
+
.map (p => node .getLocalCoord (p .getValue (), new X3D .Vector3 ()))
|
|
3585
3585
|
.map (p => this .roundToIntegerIfAlmostEqual (modelMatrix .multVecMatrix (p .getValue () .copy ())))
|
|
3586
3586
|
.map (p => node .getGeoCoord (p .getValue (), new X3D .Vector3 ()));
|
|
3587
3587
|
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
border: 1px solid transparent !important;
|
|
82
82
|
border-radius: var(--window-tabs-height);
|
|
83
83
|
padding: 4px 6px 4px 9px !important;
|
|
84
|
-
color: var(--
|
|
84
|
+
color: var(--tabs-text-color);
|
|
85
85
|
font-family: var(--sans-serif);
|
|
86
86
|
box-shadow: none;
|
|
87
87
|
transition: background-color 200ms, border-color 200ms, color 200ms;
|
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
|
|
90
90
|
.etabs .tab:hover,
|
|
91
91
|
.etabs .tab.active {
|
|
92
|
-
background-color: var(--
|
|
92
|
+
background-color: var(--tabs-background-color);
|
|
93
93
|
border-color: var(--border-color) !important;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.etabs .tab.active {
|
|
97
|
-
color: var(--
|
|
97
|
+
color: var(--tabs-highlight-color);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.etabs .tab:focus {
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
border: none;
|
|
126
126
|
border-radius: 4px;
|
|
127
127
|
background: none;
|
|
128
|
-
color: var(--
|
|
128
|
+
color: var(--tabs-text-color);
|
|
129
129
|
font-size: 18px;
|
|
130
130
|
top: 0px;
|
|
131
131
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@charset "utf-8";
|
|
2
2
|
@import url(media.css);
|
|
3
|
+
@import url(fonts.css);
|
|
3
4
|
@import url(definitions.css);
|
|
4
5
|
|
|
5
6
|
html {
|
|
@@ -54,17 +55,17 @@ body {
|
|
|
54
55
|
::-webkit-scrollbar-track, /* Track */
|
|
55
56
|
::-webkit-scrollbar-thumb:window-inactive, /* Handle */
|
|
56
57
|
::-webkit-scrollbar-corner { /* Corner */
|
|
57
|
-
background
|
|
58
|
+
background: none;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
/* Scrollbar Handle */
|
|
61
62
|
:hover::-webkit-scrollbar-thumb {
|
|
62
|
-
background
|
|
63
|
+
background: var(--scrollbar-thumb-color);
|
|
63
64
|
border-radius: var(--scrollbar-width);
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
:hover::-webkit-scrollbar-thumb:hover {
|
|
67
|
-
background
|
|
68
|
+
background: var(--scrollbar-thumb-color-hover);
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
/* https://developer.chrome.com/docs/css-ui/scrollbar-styling?hl=de */
|
|
@@ -75,16 +76,23 @@ body {
|
|
|
75
76
|
/* textarea resizer */
|
|
76
77
|
|
|
77
78
|
::-webkit-resizer {
|
|
78
|
-
background
|
|
79
|
+
background: none;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
:hover::-webkit-resizer {
|
|
82
|
-
background
|
|
83
|
+
background: var(--scrollbar-thumb-color);
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
/* inputs */
|
|
86
87
|
|
|
88
|
+
input[type=button] {
|
|
89
|
+
user-select: none;
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
}
|
|
92
|
+
|
|
87
93
|
input[type=checkbox] {
|
|
94
|
+
user-select: none;
|
|
95
|
+
cursor: pointer;
|
|
88
96
|
accent-color: var(--system-green);
|
|
89
97
|
}
|
|
90
98
|
|
|
@@ -92,6 +100,16 @@ input[type=range] {
|
|
|
92
100
|
accent-color: var(--accent-color);
|
|
93
101
|
}
|
|
94
102
|
|
|
103
|
+
label[for] {
|
|
104
|
+
user-select: none;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.button {
|
|
109
|
+
user-select: none;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
}
|
|
112
|
+
|
|
95
113
|
/* common */
|
|
96
114
|
|
|
97
115
|
.green {
|
|
@@ -206,7 +224,8 @@ td > div {
|
|
|
206
224
|
tr.disabled ~ tr input,
|
|
207
225
|
tr.disabled ~ tr textarea,
|
|
208
226
|
tr.disabled ~ tr select,
|
|
209
|
-
tr.disabled ~ tr button
|
|
227
|
+
tr.disabled ~ tr button,
|
|
228
|
+
tr.disabled ~ tr label {
|
|
210
229
|
pointer-events: none;
|
|
211
230
|
}
|
|
212
231
|
|
|
@@ -345,6 +364,16 @@ tr.disabled ~ tr > td > div {
|
|
|
345
364
|
background-color: var(--accent-color);
|
|
346
365
|
}
|
|
347
366
|
|
|
367
|
+
/* Node Name */
|
|
368
|
+
|
|
369
|
+
input.node-name {
|
|
370
|
+
width: 100%;
|
|
371
|
+
height: var(--input-height);
|
|
372
|
+
border: none;
|
|
373
|
+
padding: 0px 5px;
|
|
374
|
+
background: none;
|
|
375
|
+
}
|
|
376
|
+
|
|
348
377
|
/* Toolbar */
|
|
349
378
|
|
|
350
379
|
.toolbar {
|
|
@@ -738,6 +767,7 @@ body.light .qtip-tipsy {
|
|
|
738
767
|
font-family: var(--sans-serif);
|
|
739
768
|
font-size: var(--small-font-size);
|
|
740
769
|
font-weight: bold;
|
|
770
|
+
white-space: nowrap;
|
|
741
771
|
transition: visibility 300ms allow-discrete, opacity 300ms linear;
|
|
742
772
|
}
|
|
743
773
|
|
|
@@ -782,10 +812,6 @@ body.dark .dialog ::placeholder {
|
|
|
782
812
|
overflow-y: auto;
|
|
783
813
|
}
|
|
784
814
|
|
|
785
|
-
.scene-properties .button {
|
|
786
|
-
cursor: pointer;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
815
|
.scene-properties .drag {
|
|
790
816
|
cursor: move;
|
|
791
817
|
}
|
|
@@ -988,7 +1014,6 @@ body.dark .ui-widget .library-list .component {
|
|
|
988
1014
|
}
|
|
989
1015
|
|
|
990
1016
|
.node-list .button {
|
|
991
|
-
cursor: pointer;
|
|
992
1017
|
position: relative;
|
|
993
1018
|
top: 2px;
|
|
994
1019
|
font-size: var(--font-size);
|
|
@@ -1026,6 +1051,13 @@ body.dark .ui-widget .library-list .component {
|
|
|
1026
1051
|
|
|
1027
1052
|
/* Footer */
|
|
1028
1053
|
|
|
1054
|
+
@media (prefers-color-scheme: light) {
|
|
1055
|
+
#footer {
|
|
1056
|
+
--tint-color1: rgba(255, 255, 255, 0.5);
|
|
1057
|
+
--tint-color2: white;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1029
1061
|
#footer {
|
|
1030
1062
|
overflow: hidden;
|
|
1031
1063
|
position: absolute;
|
|
@@ -1072,16 +1104,16 @@ body.dark .ui-widget .library-list .component {
|
|
|
1072
1104
|
|
|
1073
1105
|
#footer > .ui-tabs-nav .ui-tabs-anchor {
|
|
1074
1106
|
padding: 4px 30px 10px;
|
|
1075
|
-
color: var(--
|
|
1107
|
+
color: var(--tabs-text-color);
|
|
1076
1108
|
}
|
|
1077
1109
|
|
|
1078
1110
|
#footer > .ui-tabs-nav .ui-tabs-active .ui-tabs-anchor {
|
|
1079
|
-
color: var(--
|
|
1111
|
+
color: var(--tabs-highlight-color);
|
|
1080
1112
|
}
|
|
1081
1113
|
|
|
1082
1114
|
#footer > .ui-tabs-nav :is(li.ui-tabs-active, li:hover) {
|
|
1083
1115
|
border-color: var(--border-color);
|
|
1084
|
-
background-color: var(--
|
|
1116
|
+
background-color: var(--tabs-background-color);
|
|
1085
1117
|
}
|
|
1086
1118
|
|
|
1087
1119
|
#footer > .ui-tabs-nav li:not(.ui-tabs-active, :hover, :first-child)::before {
|
|
@@ -1262,7 +1294,7 @@ body.dark .ui-widget .library-list .component {
|
|
|
1262
1294
|
padding-left: 17px;
|
|
1263
1295
|
width: 100%;
|
|
1264
1296
|
height: 100%;
|
|
1265
|
-
background
|
|
1297
|
+
background: none;
|
|
1266
1298
|
color: var(--text-color);
|
|
1267
1299
|
resize: none;
|
|
1268
1300
|
border-right: 1px solid var(--border-color);
|
|
@@ -1325,6 +1357,7 @@ body.dark .ui-widget .library-list .component {
|
|
|
1325
1357
|
}
|
|
1326
1358
|
|
|
1327
1359
|
.console-search-status {
|
|
1360
|
+
user-select: none;
|
|
1328
1361
|
flex: 0 0 auto;
|
|
1329
1362
|
position: relative;
|
|
1330
1363
|
top: 10px;
|
|
@@ -1394,11 +1427,7 @@ body.light .console-output .selected {
|
|
|
1394
1427
|
.script-editor .node-name {
|
|
1395
1428
|
position: absolute;
|
|
1396
1429
|
bottom: 0px;
|
|
1397
|
-
width: 100%;
|
|
1398
|
-
height: var(--input-height);
|
|
1399
|
-
border: none;
|
|
1400
1430
|
border-bottom: 1px solid var(--border-color);
|
|
1401
|
-
background: none;
|
|
1402
1431
|
}
|
|
1403
1432
|
|
|
1404
1433
|
.script-editor .script-editor-monaco {
|
|
@@ -1490,10 +1519,6 @@ body.light .console-output .selected {
|
|
|
1490
1519
|
.animation-editor .node-name {
|
|
1491
1520
|
position: absolute;
|
|
1492
1521
|
bottom: 0px;
|
|
1493
|
-
width: 100%;
|
|
1494
|
-
height: var(--input-height);
|
|
1495
|
-
border: none;
|
|
1496
|
-
background-color: var(--background-color);
|
|
1497
1522
|
}
|
|
1498
1523
|
|
|
1499
1524
|
.animation-editor .tracks {
|
|
@@ -1526,7 +1551,7 @@ body.light .console-output .selected {
|
|
|
1526
1551
|
|
|
1527
1552
|
#route-graph {
|
|
1528
1553
|
box-sizing: border-box;
|
|
1529
|
-
background: var(--
|
|
1554
|
+
background: var(--route-graph-background-color);
|
|
1530
1555
|
}
|
|
1531
1556
|
|
|
1532
1557
|
.route-graph-top {
|
|
@@ -1576,16 +1601,16 @@ body.light .console-output .selected {
|
|
|
1576
1601
|
margin: 0px 6px 0px 10px;
|
|
1577
1602
|
font-size: inherit;
|
|
1578
1603
|
font-family: inherit;
|
|
1579
|
-
color: var(--
|
|
1604
|
+
color: var(--tabs-text-color);
|
|
1580
1605
|
}
|
|
1581
1606
|
|
|
1582
1607
|
#route-graph .ui-tabs > .ui-tabs-nav .ui-tabs-active .ui-tabs-anchor {
|
|
1583
|
-
color: var(--
|
|
1608
|
+
color: var(--tabs-highlight-color);
|
|
1584
1609
|
}
|
|
1585
1610
|
|
|
1586
1611
|
#route-graph .ui-tabs > .ui-tabs-nav :is(li.ui-tabs-active, li:hover) {
|
|
1587
1612
|
border-color: var(--border-color);
|
|
1588
|
-
background-color: var(--
|
|
1613
|
+
background-color: var(--tabs-background-color);
|
|
1589
1614
|
}
|
|
1590
1615
|
|
|
1591
1616
|
#route-graph .ui-tabs > .ui-tabs-nav li:not(.ui-tabs-active, :hover, :first-child)::before {
|
|
@@ -1821,6 +1846,18 @@ body.light .console-output .selected {
|
|
|
1821
1846
|
height: 100%;
|
|
1822
1847
|
}
|
|
1823
1848
|
|
|
1849
|
+
/* Video Recorder */
|
|
1850
|
+
|
|
1851
|
+
.video-recorder-left {
|
|
1852
|
+
overflow: hidden;
|
|
1853
|
+
position: absolute;
|
|
1854
|
+
box-sizing: border-box;
|
|
1855
|
+
left: 0px;
|
|
1856
|
+
right: var(--toolbar-size);
|
|
1857
|
+
height: 100%;
|
|
1858
|
+
border-right: 1px solid var(--border-color);
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1824
1861
|
/* Sidebar */
|
|
1825
1862
|
|
|
1826
1863
|
#sidebar {
|
|
@@ -2240,7 +2277,6 @@ body.light .console-output .selected {
|
|
|
2240
2277
|
}
|
|
2241
2278
|
|
|
2242
2279
|
.scene-graph .button {
|
|
2243
|
-
cursor: pointer;
|
|
2244
2280
|
font-size: var(--font-size);
|
|
2245
2281
|
position: relative;
|
|
2246
2282
|
top: 2.5px;
|
|
@@ -2308,6 +2344,10 @@ body.light .console-output .selected {
|
|
|
2308
2344
|
border: var(--qtip-border);
|
|
2309
2345
|
}
|
|
2310
2346
|
|
|
2347
|
+
.tp-lblv_l, .tp-rotv_b, .tp-fldv_b, .tp-coltxtv_ms {
|
|
2348
|
+
color: var(--text-color) !important;
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2311
2351
|
.tp-lblv_v {
|
|
2312
2352
|
width: 185px !important;
|
|
2313
2353
|
}
|
|
@@ -1,130 +1,147 @@
|
|
|
1
1
|
@charset "utf-8";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
:root {
|
|
4
|
+
/* System Colors */
|
|
5
|
+
|
|
6
|
+
--system-red: rgb(255, 56, 60);
|
|
7
|
+
--system-orange: rgb(255, 141, 40);
|
|
8
|
+
--system-yellow: rgb(255, 204, 0);
|
|
9
|
+
--system-green: rgb(52, 199, 89);
|
|
10
|
+
--system-mint: rgb(0, 200, 179);
|
|
11
|
+
--system-teal: rgb(0, 195, 208);
|
|
12
|
+
--system-cyan: rgb(0, 192, 232);
|
|
13
|
+
--system-blue: rgb(0, 136, 255);
|
|
14
|
+
--system-indigo: rgb(88, 86, 214);
|
|
15
|
+
--system-purple: rgb(203, 48, 224);
|
|
16
|
+
--system-pink: rgb(255, 45, 85);
|
|
17
|
+
--system-brown: rgb(172, 127, 94);
|
|
18
|
+
|
|
19
|
+
--system-gray0: rgb(72, 72, 77);
|
|
20
|
+
--system-gray1: rgb(142, 142, 147);
|
|
21
|
+
--system-gray2: rgb(174, 174, 178);
|
|
22
|
+
--system-gray3: rgb(199, 199, 204);
|
|
23
|
+
--system-gray4: rgb(209, 209, 214);
|
|
24
|
+
--system-gray5: rgb(229, 229, 234);
|
|
25
|
+
--system-gray6: rgb(242, 242, 247);
|
|
26
|
+
--system-gray7: rgb(249, 249, 255);
|
|
27
|
+
--system-gray8: rgb(255, 255, 255);
|
|
13
28
|
|
|
14
|
-
|
|
15
|
-
font-family: "Roboto";
|
|
16
|
-
src: url(../fonts/Roboto/Roboto-Italic-VariableFont_wdth\,wght.ttf);
|
|
17
|
-
font-display: swap;
|
|
18
|
-
font-weight: 100 900;
|
|
19
|
-
font-stretch: 75% 125%;
|
|
20
|
-
font-style: italic;
|
|
21
|
-
font-optical-sizing: auto;
|
|
22
|
-
font-variation-settings: "wdth" 100;
|
|
23
|
-
}
|
|
29
|
+
/* Colors */
|
|
24
30
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
font-variation-settings: "wdth" 100;
|
|
34
|
-
}
|
|
31
|
+
--background-color: var(--system-gray6);
|
|
32
|
+
--text-color: var(--system-gray0);
|
|
33
|
+
--highlight-color: black;
|
|
34
|
+
--text-disabled: var(--system-gray2);
|
|
35
|
+
--border-color: var(--system-gray3);
|
|
36
|
+
--expander-color: var(--system-gray1);
|
|
37
|
+
--accent-color: var(--system-red);
|
|
38
|
+
--separator-color: var(--system-gray3);
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
font-stretch: 75% 125%;
|
|
42
|
-
font-style: italic;
|
|
43
|
-
font-optical-sizing: auto;
|
|
44
|
-
font-variation-settings: "wdth" 100;
|
|
45
|
-
}
|
|
40
|
+
--selection-color: black;
|
|
41
|
+
--selection-background-color: rgb(246, 196, 197);
|
|
42
|
+
--selection-range: rgba(0, 0, 0, 0.05);
|
|
43
|
+
--scrollbar-thumb-color: rgba(0, 0, 0, 0.2);
|
|
44
|
+
--scrollbar-thumb-color-hover: rgba(0, 0, 0, 0.4);
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
:
|
|
49
|
-
|
|
46
|
+
--secondary-toolbar-color: hsl(214, 35%, 90%);
|
|
47
|
+
--sidebar-background-color: hsl(211, 46%, 86%);
|
|
48
|
+
--tint-color1: rgba(255, 255, 255, 0.4);
|
|
49
|
+
--tint-color2: rgba(255, 255, 255, 0.6);
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
--system-teal: rgb(0, 195, 208);
|
|
57
|
-
--system-cyan: rgb(0, 192, 232);
|
|
58
|
-
--system-blue: rgb(0, 136, 255);
|
|
59
|
-
--system-indigo: rgb(88, 86, 214);
|
|
60
|
-
--system-purple: rgb(203, 48, 224);
|
|
61
|
-
--system-pink: rgb(255, 45, 85);
|
|
62
|
-
--system-brown: rgb(172, 127, 94);
|
|
63
|
-
|
|
64
|
-
--system-gray0: rgb(72, 72, 77);
|
|
65
|
-
--system-gray1: rgb(142, 142, 147);
|
|
66
|
-
--system-gray2: rgb(174, 174, 178);
|
|
67
|
-
--system-gray3: rgb(199, 199, 204);
|
|
68
|
-
--system-gray4: rgb(209, 209, 214);
|
|
69
|
-
--system-gray5: rgb(229, 229, 234);
|
|
70
|
-
--system-gray6: rgb(242, 242, 247);
|
|
71
|
-
--system-gray7: rgb(249, 249, 255);
|
|
72
|
-
--system-gray8: rgb(255, 255, 255);
|
|
73
|
-
|
|
74
|
-
--selection-color: black;
|
|
75
|
-
--selection-background-color: rgb(246, 196, 197);
|
|
76
|
-
--selection-range: rgba(0, 0, 0, 0.05);
|
|
77
|
-
--scrollbar-thumb-color: rgba(0, 0, 0, 0.2);
|
|
78
|
-
--scrollbar-thumb-color-hover: rgba(0, 0, 0, 0.4);
|
|
51
|
+
--tabs-background-color: white;
|
|
52
|
+
--tabs-text-color: var(--text-color);
|
|
53
|
+
--tabs-highlight-color: var(--accent-color);
|
|
54
|
+
--tabs-height: 26px;
|
|
55
|
+
--window-tabs-height: 34px;
|
|
79
56
|
|
|
80
|
-
|
|
57
|
+
--topbar-height: 8px;
|
|
58
|
+
--toolbar-outer-radius: 15px;
|
|
59
|
+
--toolbar-inner-radius: calc(var(--toolbar-outer-radius) / 3 * 2);
|
|
60
|
+
--toolbar-size: 30px;
|
|
61
|
+
--icon-size: 23px;
|
|
62
|
+
--medium-icon-size: 18px;
|
|
63
|
+
--large-icon-size: 28px;
|
|
81
64
|
|
|
82
|
-
|
|
83
|
-
--filter-system-gray0: invert(36%) sepia(72%) saturate(11%) hue-rotate(222deg) brightness(95%) contrast(90%);
|
|
84
|
-
--filter-system-gray1: invert(63%) sepia(4%) saturate(334%) hue-rotate(201deg) brightness(89%) contrast(86%);
|
|
65
|
+
/* Filter Colors */
|
|
85
66
|
|
|
86
|
-
|
|
67
|
+
--filter-text-color: var(--filter-system-gray0);
|
|
68
|
+
--filter-highlight-color: var(--filter-system-grayZ);
|
|
69
|
+
--filter-accent-color: var(--filter-system-red);
|
|
87
70
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
--tint-color2: rgba(255, 255, 255, 0.6);
|
|
92
|
-
--tabs-icon-color: white;
|
|
71
|
+
--filter-system-red: invert(31%) sepia(82%) saturate(3000%) hue-rotate(344deg) brightness(115%) contrast(105%);
|
|
72
|
+
--filter-system-gray0: invert(36%) sepia(72%) saturate(11%) hue-rotate(222deg) brightness(95%) contrast(90%);
|
|
73
|
+
--filter-system-gray1: invert(63%) sepia(4%) saturate(334%) hue-rotate(201deg) brightness(89%) contrast(86%);
|
|
93
74
|
|
|
94
|
-
|
|
75
|
+
/* Fonts */
|
|
95
76
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
77
|
+
--sans-serif: Roboto, sans-serif;
|
|
78
|
+
--monospace: Roboto Mono, monospace;
|
|
79
|
+
--font-size: 10pt;
|
|
80
|
+
--large-font-size: 18pt;
|
|
81
|
+
--small-font-size: 8pt;
|
|
82
|
+
|
|
83
|
+
/*Qtip */
|
|
84
|
+
|
|
85
|
+
--qtip-shadow: var(--tool-shadow);
|
|
86
|
+
--qtip-border-radius: 12px;
|
|
87
|
+
|
|
88
|
+
--qtip-background-color: white;
|
|
89
|
+
--qtip-border: 1px solid var(--system-gray1);
|
|
90
|
+
--qtip-highlight-color: black;
|
|
91
|
+
|
|
92
|
+
/* TweakPanel colors */
|
|
93
|
+
|
|
94
|
+
--tp-base-border-radius: 12px;
|
|
95
|
+
--tp-container-background-color: white;
|
|
96
|
+
--tp-container-background-color-active: white;
|
|
97
|
+
--tp-container-background-color-focus: white;
|
|
98
|
+
--tp-container-background-color-hover: white;
|
|
99
|
+
--tp-base-background-color: var(--system-gray7);
|
|
100
|
+
--tp-base-shadow-color: hsla(0, 0%, 0%, 0.2);
|
|
101
|
+
--tp-container-foreground-color: hsl(230, 7%, 17%);
|
|
102
|
+
--tp-groove-foreground-color: hsl(230, 7%, 17%);
|
|
103
|
+
--tp-input-background-color: hsl(230, 7%, 92%);
|
|
104
|
+
--tp-input-background-color-active: hsl(230, 7%, 94%);
|
|
105
|
+
--tp-input-background-color-focus: hsl(230, 7%, 94%);
|
|
106
|
+
--tp-input-background-color-hover: hsl(230, 7%, 94%);
|
|
107
|
+
--tp-input-foreground-color: hsl(230, 7%, 17%);
|
|
108
|
+
--tp-button-background-color: var(--tp-input-background-color);
|
|
109
|
+
--tp-button-background-color-active: var(--tp-input-background-color-active);
|
|
110
|
+
--tp-button-background-color-focus: var(--tp-input-background-color-focus);
|
|
111
|
+
--tp-button-background-color-hover: var(--tp-input-background-color-hover);
|
|
112
|
+
--tp-button-foreground-color: var(--tp-input-foreground-color);
|
|
113
|
+
--tp-label-foreground-color: hsl(230, 7%, 17%);
|
|
114
|
+
--tp-monitor-background-color: var(--tp-input-background-color);
|
|
115
|
+
--tp-monitor-background-color-readonly: transparent;
|
|
116
|
+
--tp-monitor-background-color-active: var(--tp-input-background-color-active);
|
|
117
|
+
--tp-monitor-background-color-focus: var(--tp-input-background-color-focus);
|
|
118
|
+
--tp-monitor-background-color-hover: var(--tp-input-background-color-hover);
|
|
119
|
+
--tp-monitor-foreground-color: var(--tp-input-foreground-color);
|
|
120
|
+
|
|
121
|
+
/* Tools */
|
|
122
|
+
|
|
123
|
+
--tool-backdrop-filter: blur(25px);
|
|
124
|
+
--tool-background-color: color-mix(in srgb, var(--sidebar-background-color), transparent 20%);
|
|
125
|
+
--tool-border-radius: 12px;
|
|
126
|
+
--tool-border: 1px solid var(--system-gray8);
|
|
127
|
+
--tool-shadow: 3px 3px 9px rgba(0, 0, 0, 0.6);
|
|
128
|
+
|
|
129
|
+
--background-disabled: repeating-linear-gradient(
|
|
130
|
+
-45deg,
|
|
131
|
+
var(--tint-color1),
|
|
132
|
+
var(--tint-color1) 10px,
|
|
133
|
+
transparent 10px,
|
|
134
|
+
transparent 20px
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
/* Route Graph */
|
|
138
|
+
|
|
139
|
+
--route-graph-background-color: white;
|
|
123
140
|
}
|
|
124
141
|
|
|
125
142
|
@media (prefers-color-scheme: dark) {
|
|
126
143
|
:root {
|
|
127
|
-
/* Colors */
|
|
144
|
+
/* System Colors */
|
|
128
145
|
|
|
129
146
|
--system-red: rgb(255, 66, 69);
|
|
130
147
|
--system-orange: rgb(255, 146, 48);
|
|
@@ -155,19 +172,35 @@
|
|
|
155
172
|
--scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
|
156
173
|
--scrollbar-thumb-color-hover: rgba(255, 255, 255, 0.4);
|
|
157
174
|
|
|
175
|
+
/* Colors */
|
|
176
|
+
|
|
177
|
+
--text-color: var(--system-gray1);
|
|
178
|
+
--highlight-color: var(--system-gray0);
|
|
179
|
+
--border-color: var(--system-gray8);
|
|
180
|
+
--expander-color: var(--system-gray8);
|
|
181
|
+
--filter-text-color: var(--filter-system-gray1);
|
|
182
|
+
--filter-highlight-color: var(--filter-system-gray0);
|
|
183
|
+
|
|
184
|
+
--secondary-toolbar-color: hsl(220, 9%, 17%);
|
|
185
|
+
--sidebar-background-color: hsl(217, 20%, 21%);
|
|
186
|
+
--tint-color1: rgba(0, 0, 0, 0.2);
|
|
187
|
+
--tint-color2: rgba(0, 0, 0, 0.4);
|
|
188
|
+
|
|
189
|
+
--tabs-background-color: var(--system-gray5);
|
|
190
|
+
--tabs-text-color: var(--text-color);
|
|
191
|
+
--tabs-highlight-color: var(--accent-color);
|
|
192
|
+
|
|
158
193
|
/* Filter Colors */
|
|
159
194
|
|
|
160
195
|
--filter-system-red: invert(69%) sepia(59%) saturate(6315%) hue-rotate(336deg) brightness(99%) contrast(108%);
|
|
161
196
|
--filter-system-gray0: invert(97%) sepia(2%) saturate(509%) hue-rotate(200deg) brightness(84%) contrast(94%);
|
|
162
197
|
--filter-system-gray1: invert(72%) sepia(0%) saturate(6315%) hue-rotate(205deg) brightness(81%) contrast(62%);
|
|
163
198
|
|
|
164
|
-
/*
|
|
199
|
+
/* Qtip */
|
|
165
200
|
|
|
166
|
-
--
|
|
167
|
-
--
|
|
168
|
-
--
|
|
169
|
-
--tint-color2: rgba(0, 0, 0, 0.4);
|
|
170
|
-
--tabs-icon-color: var(--system-gray6);
|
|
201
|
+
--qtip-background-color: black;
|
|
202
|
+
--qtip-border: 1px solid var(--system-gray4);
|
|
203
|
+
--qtip-highlight-color: white;
|
|
171
204
|
|
|
172
205
|
/* TweakPanel colors */
|
|
173
206
|
|
|
@@ -193,94 +226,6 @@
|
|
|
193
226
|
--tp-monitor-background-color-focus: var(--tp-input-background-color-focus);
|
|
194
227
|
--tp-monitor-background-color-hover: var(--tp-input-background-color-hover);
|
|
195
228
|
--tp-monitor-foreground-color: var(--tp-input-foreground-color);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
body {
|
|
200
|
-
/* Colors */
|
|
201
|
-
|
|
202
|
-
--background-color: var(--system-gray6);
|
|
203
|
-
--text-color: var(--system-gray0);
|
|
204
|
-
--highlight-color: black;
|
|
205
|
-
--text-disabled: var(--system-gray2);
|
|
206
|
-
--border-color: var(--system-gray3);
|
|
207
|
-
--expander-color: var(--system-gray1);
|
|
208
|
-
--accent-color: var(--system-red);
|
|
209
|
-
--separator-color: var(--system-gray3);
|
|
210
|
-
|
|
211
|
-
--window-tabs-background-color: hsl(206, 62%, 95%);
|
|
212
|
-
--window-tabs-text-color: var(--text-color);
|
|
213
|
-
--window-tabs-highlight-color: var(--accent-color);
|
|
214
|
-
|
|
215
|
-
--window-tabs-height: 34px;
|
|
216
|
-
--tabs-height: 26px;
|
|
217
|
-
|
|
218
|
-
--topbar-height: 8px;
|
|
219
|
-
--toolbar-outer-radius: 15px;
|
|
220
|
-
--toolbar-inner-radius: calc(var(--toolbar-outer-radius) / 3 * 2);
|
|
221
|
-
--toolbar-size: 30px;
|
|
222
|
-
--icon-size: 23px;
|
|
223
|
-
--medium-icon-size: 18px;
|
|
224
|
-
--large-icon-size: 28px;
|
|
225
|
-
|
|
226
|
-
/* Filter Colors */
|
|
227
|
-
|
|
228
|
-
--filter-text-color: var(--filter-system-gray0);
|
|
229
|
-
--filter-highlight-color: var(--filter-system-grayZ);
|
|
230
|
-
--filter-accent-color: var(--filter-system-red);
|
|
231
|
-
|
|
232
|
-
/* Fonts */
|
|
233
|
-
|
|
234
|
-
--sans-serif: Roboto, sans-serif;
|
|
235
|
-
--monospace: Roboto Mono, monospace;
|
|
236
|
-
--font-size: 10pt;
|
|
237
|
-
--large-font-size: 18pt;
|
|
238
|
-
--small-font-size: 8pt;
|
|
239
|
-
|
|
240
|
-
/* Tools */
|
|
241
|
-
|
|
242
|
-
--tool-backdrop-filter: blur(25px);
|
|
243
|
-
--tool-background-color: color-mix(in srgb, var(--sidebar-background-color), transparent 20%);
|
|
244
|
-
--tool-border-radius: 12px;
|
|
245
|
-
--tool-border: 1px solid var(--system-gray8);
|
|
246
|
-
--tool-shadow: 3px 3px 9px rgba(0, 0, 0, 0.6);
|
|
247
|
-
|
|
248
|
-
--background-disabled: repeating-linear-gradient(
|
|
249
|
-
-45deg,
|
|
250
|
-
var(--tint-color1),
|
|
251
|
-
var(--tint-color1) 10px,
|
|
252
|
-
transparent 10px,
|
|
253
|
-
transparent 20px
|
|
254
|
-
);
|
|
255
|
-
|
|
256
|
-
/*Qtip */
|
|
257
|
-
|
|
258
|
-
--qtip-shadow: var(--tool-shadow);
|
|
259
|
-
--qtip-border-radius: 12px;
|
|
260
|
-
|
|
261
|
-
--qtip-background-color: white;
|
|
262
|
-
--qtip-border: 1px solid var(--system-gray1);
|
|
263
|
-
--qtip-highlight-color: black;
|
|
264
|
-
|
|
265
|
-
/* Routing Editor */
|
|
266
|
-
|
|
267
|
-
--routes-background-color: white;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
@media (prefers-color-scheme: dark) {
|
|
271
|
-
body {
|
|
272
|
-
/* Colors */
|
|
273
|
-
|
|
274
|
-
--text-color: var(--system-gray1);
|
|
275
|
-
--highlight-color: var(--system-gray0);
|
|
276
|
-
--border-color: var(--system-gray8);
|
|
277
|
-
--expander-color: var(--system-gray8);
|
|
278
|
-
--filter-text-color: var(--filter-system-gray1);
|
|
279
|
-
--filter-highlight-color: var(--filter-system-gray0);
|
|
280
|
-
|
|
281
|
-
--window-tabs-background-color: var(--system-gray5);
|
|
282
|
-
--window-tabs-text-color: var(--text-color);
|
|
283
|
-
--window-tabs-highlight-color: var(--accent-color);
|
|
284
229
|
|
|
285
230
|
/* Tools */
|
|
286
231
|
|
|
@@ -288,14 +233,8 @@ body {
|
|
|
288
233
|
--tool-border: 1px solid var(--system-gray2);
|
|
289
234
|
--tool-shadow: 3px 3px 9px var(--system-gray8);
|
|
290
235
|
|
|
291
|
-
/*
|
|
292
|
-
|
|
293
|
-
--qtip-background-color: black;
|
|
294
|
-
--qtip-border: 1px solid var(--system-gray4);
|
|
295
|
-
--qtip-highlight-color: white;
|
|
296
|
-
|
|
297
|
-
/* Routing Editor */
|
|
236
|
+
/* Route Graph */
|
|
298
237
|
|
|
299
|
-
--
|
|
238
|
+
--route-graph-background-color: black;
|
|
300
239
|
}
|
|
301
240
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@charset "utf-8";
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: "Roboto";
|
|
5
|
+
src: url(../fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf);
|
|
6
|
+
font-display: swap;
|
|
7
|
+
font-weight: 100 900;
|
|
8
|
+
font-stretch: 75% 125%;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
font-optical-sizing: auto;
|
|
11
|
+
font-variation-settings: "wdth" 100;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: "Roboto";
|
|
16
|
+
src: url(../fonts/Roboto/Roboto-Italic-VariableFont_wdth\,wght.ttf);
|
|
17
|
+
font-display: swap;
|
|
18
|
+
font-weight: 100 900;
|
|
19
|
+
font-stretch: 75% 125%;
|
|
20
|
+
font-style: italic;
|
|
21
|
+
font-optical-sizing: auto;
|
|
22
|
+
font-variation-settings: "wdth" 100;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: "Roboto Mono";
|
|
27
|
+
src: url(../fonts/Roboto_Mono/RobotoMono-VariableFont_wght.ttf);
|
|
28
|
+
font-display: swap;
|
|
29
|
+
font-weight: 100 900;
|
|
30
|
+
font-stretch: 75% 125%;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-optical-sizing: auto;
|
|
33
|
+
font-variation-settings: "wdth" 100;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@font-face {
|
|
37
|
+
font-family: "Roboto Mono";
|
|
38
|
+
src: url(../fonts/Roboto_Mono/RobotoMono-VariableFont_wght.ttf);
|
|
39
|
+
font-display: swap;
|
|
40
|
+
font-weight: 100 900;
|
|
41
|
+
font-stretch: 75% 125%;
|
|
42
|
+
font-style: italic;
|
|
43
|
+
font-optical-sizing: auto;
|
|
44
|
+
font-variation-settings: "wdth" 100;
|
|
45
|
+
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
$ = require ("jquery"),
|
|
6
|
-
electron = require ("electron"),
|
|
7
|
-
Interface = require ("../Application/Interface"),
|
|
8
|
-
util = require ("util"),
|
|
9
|
-
_ = require ("../Application/GetText");
|
|
10
|
-
|
|
11
|
-
module .exports = class MediaRecorder extends Interface
|
|
12
|
-
{
|
|
13
|
-
constructor (element)
|
|
14
|
-
{
|
|
15
|
-
super (`Sunrize.MediaRecorder.${element .attr ("id")}.`);
|
|
16
|
-
|
|
17
|
-
this .recorder = element;
|
|
18
|
-
|
|
19
|
-
// Toolbar
|
|
20
|
-
|
|
21
|
-
this .toolbar = $("<div></div>")
|
|
22
|
-
.addClass (["toolbar", "vertical-toolbar", "secondary-toolbar", "media-recorder-toolbar"])
|
|
23
|
-
.appendTo (this .recorder);
|
|
24
|
-
|
|
25
|
-
this .setup ();
|
|
26
|
-
}
|
|
27
|
-
};
|