@bitpoolos/edge-theme 1.0.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/LICENSE.txt +7 -0
- package/README.md +64 -0
- package/bitpool-theme.css +131 -0
- package/bitpool.js +97 -0
- package/package.json +50 -0
- package/resources/bitpool-icon.svg +16 -0
- package/resources/bitpool-logo-white.svg +32 -0
- package/resources/favicon.ico +0 -0
- package/theme.js +25 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2022, Bitpool
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<h3>BITPOOL EDGE THEME (Node-RED 5)</h3>
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## About
|
|
6
|
+
|
|
7
|
+
A Node-RED **5** theme plugin that layers the Bitpool look on top of Node-RED's
|
|
8
|
+
own light and dark themes — **purely additive**, so NR's palettes stay intact
|
|
9
|
+
and the Appearance (Light/Dark) toggle keeps working. It adds:
|
|
10
|
+
|
|
11
|
+
- Bitpool **cyan** accents (deploy button, links, selection, form controls)
|
|
12
|
+
- Soft **cyan glows** on node hover, palette hover and focus
|
|
13
|
+
- A gentle **glowing cyan line** along the header
|
|
14
|
+
- An **animated connection highlight**: select a node and its full logic path
|
|
15
|
+
(upstream + downstream) lights up with flowing cyan "data pips" and glowing nodes
|
|
16
|
+
|
|
17
|
+
Requires Node-RED **5.0+** on Node.js **22.9+** (that's where the built-in
|
|
18
|
+
light/dark themes and the Appearance toggle live).
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
Install into your Node-RED user directory (the folder holding `settings.js`):
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
$ cd ~/.node-red
|
|
26
|
+
$ npm install @bitpoolos/edge-theme
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Then set the `editorTheme` block in `settings.js`. Only the theme name is
|
|
30
|
+
required; the `page`/`header` entries add the Bitpool branding (Node-RED only
|
|
31
|
+
allows these in `settings.js`). Replace `<userDir>` with your Node-RED user
|
|
32
|
+
directory (e.g. `/home/bitpool/.node-red`).
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
editorTheme: {
|
|
36
|
+
theme: "bitpool-theme",
|
|
37
|
+
|
|
38
|
+
page: {
|
|
39
|
+
title: "Bitpool Edge",
|
|
40
|
+
favicon: "<userDir>/node_modules/@bitpoolos/edge-theme/resources/favicon.ico",
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
header: {
|
|
44
|
+
// "Bitpool" is real title text (not baked into the SVG) so it takes the
|
|
45
|
+
// editor's header text colour and stays readable in light AND dark.
|
|
46
|
+
title: "Bitpool Edge",
|
|
47
|
+
image: "<userDir>/node_modules/@bitpoolos/edge-theme/resources/bitpool-icon.svg",
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Restart Node-RED. The CSS, animation and glow all ship inside the package —
|
|
53
|
+
only the lines above go in `settings.js`.
|
|
54
|
+
|
|
55
|
+
Switch Light/Dark from the editor: menu → Settings → Appearance → Theme.
|
|
56
|
+
|
|
57
|
+
## Resources
|
|
58
|
+
- [bitpool.com](https://www.bitpool.com/)
|
|
59
|
+
- [app.bitpool.com](https://app.bitpool.com/)
|
|
60
|
+
- [wiki.bitpool.com](https://wiki.bitpool.com/)
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
MIT — see the LICENSE file.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Bitpool Edge — animated connection highlight.
|
|
3
|
+
The ONLY addition to the original theme: selecting a node traces its
|
|
4
|
+
connected wires with flowing cyan "data pips". Class `bp-link-live` is
|
|
5
|
+
toggled by bitpool.js. Everything else is the untouched original theme.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
--bp-accent: #00ADEF;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:root { --bp-glow: rgba(0, 173, 239, 0.35); }
|
|
13
|
+
|
|
14
|
+
/* ============================================================
|
|
15
|
+
Accent recolour — swap Node-RED's red accent for Bitpool cyan.
|
|
16
|
+
Only ACCENT variables are touched (not backgrounds/text), so both
|
|
17
|
+
the light and dark palettes stay intact — just cyan instead of red.
|
|
18
|
+
============================================================ */
|
|
19
|
+
:root {
|
|
20
|
+
--red-ui-text-color-link: #00ADEF;
|
|
21
|
+
--red-ui-deploy-button-background: #00ADEF;
|
|
22
|
+
--red-ui-deploy-button-background-hover: #0095cf;
|
|
23
|
+
--red-ui-deploy-button-background-active: #007db0;
|
|
24
|
+
--red-ui-workspace-button-background-primary: #00ADEF;
|
|
25
|
+
--red-ui-workspace-button-background-primary-hover: #0095cf;
|
|
26
|
+
/* selection → cyan, to match the animated wires */
|
|
27
|
+
--red-ui-node-selected-color: #00ADEF;
|
|
28
|
+
--red-ui-port-selected-color: #00ADEF;
|
|
29
|
+
--red-ui-view-lasso-stroke: #00ADEF;
|
|
30
|
+
/* native form controls (checkboxes/radios) */
|
|
31
|
+
accent-color: #00ADEF;
|
|
32
|
+
}
|
|
33
|
+
/* NR5 dark sets accent-color:#e84a4a on the root — override for dark too */
|
|
34
|
+
html.nr-theme-dark { accent-color: #00ADEF; }
|
|
35
|
+
|
|
36
|
+
@keyframes bp-wire-flow { to { stroke-dashoffset: -56; } }
|
|
37
|
+
|
|
38
|
+
g.red-ui-flow-link-selected .red-ui-flow-link-line,
|
|
39
|
+
g.red-ui-flow-link.bp-link-live .red-ui-flow-link-line {
|
|
40
|
+
stroke: var(--bp-accent) !important;
|
|
41
|
+
stroke-width: 2px !important;
|
|
42
|
+
stroke-dasharray: 2 12 !important;
|
|
43
|
+
stroke-linecap: round !important;
|
|
44
|
+
animation: bp-wire-flow 1.3s linear infinite;
|
|
45
|
+
filter: drop-shadow(0 0 3px var(--bp-accent));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* ============================================================
|
|
49
|
+
Cyan glow layer — purely ADDITIVE (glows / accents only).
|
|
50
|
+
No --red-ui palette overrides, so NR's light & dark themes
|
|
51
|
+
stay 100% intact underneath. Looks best in dark; harmless in light.
|
|
52
|
+
============================================================ */
|
|
53
|
+
|
|
54
|
+
/* Nodes: soft rounding + cyan lift-glow on hover */
|
|
55
|
+
.red-ui-flow-node { rx: 5px; ry: 5px; }
|
|
56
|
+
g.red-ui-flow-node-group { transition: filter .18s ease; }
|
|
57
|
+
g.red-ui-flow-node-group:hover {
|
|
58
|
+
filter: drop-shadow(0 3px 11px var(--bp-glow));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Selected node — cyan halo */
|
|
62
|
+
g.red-ui-flow-node-selected .red-ui-flow-node {
|
|
63
|
+
stroke: var(--bp-accent) !important;
|
|
64
|
+
filter: drop-shadow(0 0 6px var(--bp-glow));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Nodes along the selected node's highlighted path — cyan glow (class from bitpool.js) */
|
|
68
|
+
g.red-ui-flow-node-group.bp-node-live .red-ui-flow-node {
|
|
69
|
+
stroke: var(--bp-accent) !important;
|
|
70
|
+
filter: drop-shadow(0 0 6px var(--bp-glow));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Deploy button — Bitpool cyan with a breathing glow */
|
|
74
|
+
#red-ui-header-button-deploy:not(.disabled) {
|
|
75
|
+
background: var(--bp-accent) !important;
|
|
76
|
+
border-color: transparent !important;
|
|
77
|
+
animation: bp-deploy-breathe 3.2s ease-in-out infinite;
|
|
78
|
+
}
|
|
79
|
+
#red-ui-header-button-deploy:not(.disabled):hover {
|
|
80
|
+
background: #0095cf !important;
|
|
81
|
+
box-shadow: 0 0 16px var(--bp-glow) !important;
|
|
82
|
+
animation: none;
|
|
83
|
+
}
|
|
84
|
+
@keyframes bp-deploy-breathe {
|
|
85
|
+
0%, 100% { box-shadow: 0 0 3px rgba(0,173,239,0.25); }
|
|
86
|
+
50% { box-shadow: 0 0 13px var(--bp-glow); }
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Header — size the logo (no top-bar colour override) + glowing cyan underline */
|
|
90
|
+
#red-ui-header { position: relative; }
|
|
91
|
+
#red-ui-header > span > img {
|
|
92
|
+
height: 32px !important;
|
|
93
|
+
width: auto !important;
|
|
94
|
+
vertical-align: middle;
|
|
95
|
+
}
|
|
96
|
+
/* "Bitpool" as bold brand text before the "Edge" title. Set header.title="Edge".
|
|
97
|
+
Uses the editor's own text colour, so it's readable in light and dark. */
|
|
98
|
+
#red-ui-header > span > span::before,
|
|
99
|
+
#red-ui-header > span > a > span::before {
|
|
100
|
+
content: "Bitpool\00A0";
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
font-family: "Inter", "Segoe UI", system-ui, sans-serif;
|
|
103
|
+
}
|
|
104
|
+
#red-ui-header::after {
|
|
105
|
+
content: "";
|
|
106
|
+
position: absolute;
|
|
107
|
+
left: 0; right: 0; bottom: 0;
|
|
108
|
+
height: 2px;
|
|
109
|
+
background: linear-gradient(90deg,
|
|
110
|
+
transparent, var(--bp-accent) 35%, #5cd0ff 50%, var(--bp-accent) 65%, transparent);
|
|
111
|
+
background-size: 200% 100%;
|
|
112
|
+
box-shadow: 0 0 8px var(--bp-glow);
|
|
113
|
+
animation: bp-sheen 9s linear infinite;
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
}
|
|
116
|
+
@keyframes bp-sheen { to { background-position: -200% 0; } }
|
|
117
|
+
|
|
118
|
+
/* Palette node hover — cyan glow lift */
|
|
119
|
+
.red-ui-palette-node { transition: box-shadow .18s ease, transform .18s ease; }
|
|
120
|
+
.red-ui-palette-node:hover {
|
|
121
|
+
box-shadow: 0 0 0 2px #5cd0ff, 0 4px 10px var(--bp-glow) !important;
|
|
122
|
+
transform: translateY(-1px);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Form inputs — cyan focus ring */
|
|
126
|
+
.red-ui-editor input[type="text"]:focus,
|
|
127
|
+
.red-ui-editor textarea:focus,
|
|
128
|
+
.red-ui-typedInput-container.red-ui-typedInput-focus {
|
|
129
|
+
border-color: var(--bp-accent) !important;
|
|
130
|
+
box-shadow: 0 0 0 3px var(--bp-glow) !important;
|
|
131
|
+
}
|
package/bitpool.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Bitpool Edge — connection highlight.
|
|
3
|
+
Additive, defensive editor JS loaded via the theme plugin's `scripts`.
|
|
4
|
+
Selecting a node highlights its full lineage (upstream ancestors +
|
|
5
|
+
downstream descendants) so the logic path is easy to follow. Wrapped so a
|
|
6
|
+
failure here can never break the editor.
|
|
7
|
+
*/
|
|
8
|
+
(function () {
|
|
9
|
+
"use strict";
|
|
10
|
+
|
|
11
|
+
function ready(fn) {
|
|
12
|
+
if (typeof RED === "undefined" || !RED.events) {
|
|
13
|
+
var tries = 0;
|
|
14
|
+
var t = setInterval(function () {
|
|
15
|
+
if (typeof RED !== "undefined" && RED.events) {
|
|
16
|
+
clearInterval(t);
|
|
17
|
+
try { fn(); } catch (e) {}
|
|
18
|
+
} else if (++tries > 100) {
|
|
19
|
+
clearInterval(t);
|
|
20
|
+
}
|
|
21
|
+
}, 100);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
try { fn(); } catch (e) {}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
ready(function () {
|
|
28
|
+
try {
|
|
29
|
+
var highlightConnected = function () {
|
|
30
|
+
try {
|
|
31
|
+
var selectedIds = {};
|
|
32
|
+
var sel = (RED.view && RED.view.selection) ? RED.view.selection() : null;
|
|
33
|
+
var nodes = (sel && sel.nodes) || [];
|
|
34
|
+
nodes.forEach(function (n) { if (n && n.id) selectedIds[n.id] = true; });
|
|
35
|
+
|
|
36
|
+
// Gather every link with its SVG group and source/target node ids.
|
|
37
|
+
var links = [];
|
|
38
|
+
var groups = document.querySelectorAll("g.red-ui-flow-link");
|
|
39
|
+
groups.forEach(function (g) {
|
|
40
|
+
var d = g.__data__;
|
|
41
|
+
if (!d || !d.source || !d.target) { if (g.classList) g.classList.remove("bp-link-live"); return; }
|
|
42
|
+
links.push({ g: g, s: d.source.id, t: d.target.id });
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
var allNodeGroups = document.querySelectorAll("g.red-ui-flow-node-group");
|
|
46
|
+
|
|
47
|
+
if (!Object.keys(selectedIds).length) {
|
|
48
|
+
links.forEach(function (l) { if (l.g.classList) l.g.classList.remove("bp-link-live"); });
|
|
49
|
+
allNodeGroups.forEach(function (g) { if (g.classList) g.classList.remove("bp-node-live"); });
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Directed lineage: walk downstream (source→target) and upstream
|
|
54
|
+
// (target→source) from the selected node(s), marking only the edges
|
|
55
|
+
// actually traversed (siblings sharing a downstream node excluded).
|
|
56
|
+
var live = {};
|
|
57
|
+
var pathNodes = {};
|
|
58
|
+
var walk = function (forward) {
|
|
59
|
+
var seen = {}, q = [];
|
|
60
|
+
Object.keys(selectedIds).forEach(function (id) { seen[id] = true; q.push(id); pathNodes[id] = true; });
|
|
61
|
+
while (q.length) {
|
|
62
|
+
var cur = q.shift();
|
|
63
|
+
links.forEach(function (l, i) {
|
|
64
|
+
var from = forward ? l.s : l.t;
|
|
65
|
+
var to = forward ? l.t : l.s;
|
|
66
|
+
if (from === cur) {
|
|
67
|
+
live[i] = true;
|
|
68
|
+
if (!seen[to]) { seen[to] = true; pathNodes[to] = true; q.push(to); }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
walk(true);
|
|
74
|
+
walk(false);
|
|
75
|
+
|
|
76
|
+
links.forEach(function (l, i) {
|
|
77
|
+
if (l.g.classList) l.g.classList.toggle("bp-link-live", !!live[i]);
|
|
78
|
+
});
|
|
79
|
+
allNodeGroups.forEach(function (g) {
|
|
80
|
+
var id = (g.__data__ && g.__data__.id) ? g.__data__.id : g.id;
|
|
81
|
+
if (g.classList) g.classList.toggle("bp-node-live", !!(id && pathNodes[id]));
|
|
82
|
+
});
|
|
83
|
+
} catch (e) {}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
["view:selection-changed", "nodes:change", "flows:change"].forEach(function (ev) {
|
|
87
|
+
try { RED.events.on(ev, highlightConnected); } catch (e) {}
|
|
88
|
+
});
|
|
89
|
+
try {
|
|
90
|
+
var chart = document.getElementById("red-ui-workspace-chart");
|
|
91
|
+
if (chart) chart.addEventListener("mouseup", function () {
|
|
92
|
+
setTimeout(highlightConnected, 20);
|
|
93
|
+
});
|
|
94
|
+
} catch (e) {}
|
|
95
|
+
} catch (e) {}
|
|
96
|
+
});
|
|
97
|
+
})();
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitpoolos/edge-theme",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Bitpool Edge theme for Node-RED 5 — cyan accents, glow & animated connection highlight (light + dark)",
|
|
5
|
+
"files": [
|
|
6
|
+
"bitpool-theme.css",
|
|
7
|
+
"bitpool.js",
|
|
8
|
+
"theme.js",
|
|
9
|
+
"resources/"
|
|
10
|
+
],
|
|
11
|
+
"node-red": {
|
|
12
|
+
"version": ">=5.0.0",
|
|
13
|
+
"plugins": {
|
|
14
|
+
"bitpool-theme": "theme.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"node-red",
|
|
19
|
+
"node-red-theme",
|
|
20
|
+
"bitpool",
|
|
21
|
+
"bitpoolos",
|
|
22
|
+
"edge",
|
|
23
|
+
"theme",
|
|
24
|
+
"dark theme",
|
|
25
|
+
"light theme"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=22.9.0"
|
|
32
|
+
},
|
|
33
|
+
"author": {
|
|
34
|
+
"name": "bitpool-dev",
|
|
35
|
+
"email": "dev@bitpool.com"
|
|
36
|
+
},
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public",
|
|
40
|
+
"registry": "https://registry.npmjs.org/"
|
|
41
|
+
},
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/bitpool/bitpool-edge-theme/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/bitpool/bitpool-edge-theme#readme",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/bitpool/bitpool-edge-theme.git"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 171.04 192.79">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-2 {
|
|
6
|
+
fill: url(#linear-gradient);
|
|
7
|
+
stroke-width: 0px;
|
|
8
|
+
}
|
|
9
|
+
</style>
|
|
10
|
+
<linearGradient id="linear-gradient" x1="0" y1="96.39" x2="171.04" y2="96.39" gradientUnits="userSpaceOnUse">
|
|
11
|
+
<stop offset="0" stop-color="#83d7f7"/>
|
|
12
|
+
<stop offset="1" stop-color="#00adef"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
</defs>
|
|
15
|
+
<path class="cls-2" d="M85.52,192.79c-2.6,0-5.1-.62-7.03-1.74L7.04,149.8C3.02,147.49,0,142.25,0,137.61V55.11C0,50.48,3.02,45.24,7.04,42.93L78.48,1.68c3.88-2.24,10.19-2.24,14.07,0l71.45,41.25c4.01,2.32,7.04,7.55,7.04,12.19v82.5c0,4.63-3.02,9.87-7.04,12.19l-71.45,41.25c-1.94,1.12-4.44,1.74-7.04,1.74ZM85.52,8.09c-1.16,0-2.26.24-2.96.65L11.11,49.98c-1.5.86-2.96,3.41-2.96,5.13v82.5c0,1.73,1.47,4.27,2.96,5.13l71.45,41.25c1.4.81,4.53.81,5.93,0l71.45-41.25c1.5-.86,2.96-3.4,2.96-5.13V55.11c0-1.73-1.47-4.27-2.96-5.13L88.48,8.73c-.7-.4-1.81-.65-2.96-.65ZM85.69,165.46h0s59.76-34.67,59.76-34.67v-19.74l-59.76,34.64-25.62-14.79v19.75l25.62,14.81h0s0,0,0,0h0ZM111.28,81.34l-25.6-14.83-25.6,14.83v29.74l25.58,14.8v.03l.02-.02.02.02v-.03l25.58-14.8v-29.61M145.45,61.72l-59.71-34.61-17.07,9.86,59.71,34.62v29.67l17.07-9.87v-29.67ZM25.9,61.77v68.85l17.07,9.88v-68.87l25.77-15.05-17.08-9.86-25.77,15.05Z"/>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 617.93 192.79">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #ffffff;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cls-1, .cls-2 {
|
|
10
|
+
stroke-width: 0px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cls-2 {
|
|
14
|
+
fill: url(#linear-gradient);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
<linearGradient id="linear-gradient" x1="0" y1="96.39" x2="171.04" y2="96.39" gradientUnits="userSpaceOnUse">
|
|
18
|
+
<stop offset="0" stop-color="#83d7f7"/>
|
|
19
|
+
<stop offset="1" stop-color="#00adef"/>
|
|
20
|
+
</linearGradient>
|
|
21
|
+
</defs>
|
|
22
|
+
<g>
|
|
23
|
+
<path class="cls-1" d="M255.61,94.18c14.39,1.25,19.23,10.24,19.23,25.46,0,19.64-8.99,24.9-31.27,24.9-17.43,0-26.56-.14-38.04-1.1V47.97c10.24-.97,18.54-1.11,33.76-1.11,24.07,0,32.65,5.26,32.65,24.9,0,13.7-4.7,20.75-16.32,21.86v.55ZM239.84,87.68c11.62,0,15.49-2.77,15.49-13.7s-4.15-13.14-16.88-13.14h-15.91v26.84h17.29ZM240.67,130.57c12.87,0,16.88-2.63,16.88-14.11,0-12.73-4.29-16.05-17.43-16.19h-17.57v30.16l18.12.14Z"/>
|
|
24
|
+
<path class="cls-1" d="M295.64,46.17c3.32,0,4.84,1.8,4.84,4.84v7.61c0,3.18-1.52,4.84-4.84,4.84h-7.75c-3.18,0-4.84-1.66-4.84-4.84v-7.61c0-3.04,1.66-4.84,4.84-4.84h7.75ZM283.46,143.43v-67.79h16.74v67.79h-16.74Z"/>
|
|
25
|
+
<path class="cls-1" d="M337.38,122.27c0,5.95,2.07,7.88,8.16,7.88h9.27l1.8,12.45c-4.7,1.52-13.28,2.35-17.43,2.35-11.9,0-18.4-7.19-18.4-19.78v-37.35h-12.31v-11.48l12.17-.69v-19.51h16.74v19.51h19.92v12.17h-19.92v34.45Z"/>
|
|
26
|
+
<path class="cls-1" d="M380.95,85.74c6.36-7.06,17.85-11.9,27.81-11.9,16.46,0,23.1,13.28,23.1,36.25,0,26.56-8.85,35-26.01,35-8.3,0-16.6-1.94-23.52-6.64.41,4.7.55,9.27.41,14.11v17.85h-16.74v-94.76h13.83l1.11,10.1ZM382.75,128.49c6.78,1.52,11.62,2.9,18.12,2.9,9.96,0,13.69-3.46,13.69-21.44s-3.32-22.27-12.03-22.27c-6.5,0-11.9,3.04-19.78,8.44v32.37Z"/>
|
|
27
|
+
<path class="cls-1" d="M505.18,109.54c0,26.01-8.99,35.69-33.34,35.69s-33.62-9.68-33.62-35.69,9.13-35.83,33.62-35.83,33.34,9.82,33.34,35.83ZM455.8,109.54c0,17.43,3.6,22.27,16.05,22.27s15.91-4.84,15.91-22.27-3.74-22.41-15.91-22.41-16.05,4.84-16.05,22.41Z"/>
|
|
28
|
+
<path class="cls-1" d="M578.64,109.54c0,26.01-8.99,35.69-33.34,35.69s-33.62-9.68-33.62-35.69,9.13-35.83,33.62-35.83,33.34,9.82,33.34,35.83ZM529.25,109.54c0,17.43,3.6,22.27,16.05,22.27s15.91-4.84,15.91-22.27-3.74-22.41-15.91-22.41-16.05,4.84-16.05,22.41Z"/>
|
|
29
|
+
<path class="cls-1" d="M602.16,122.27c-.14,5.39,2.63,7.88,8.02,7.88h5.81l1.94,12.45c-3.04,1.52-10.52,2.35-14.39,2.35-11.21,0-18.26-6.64-18.26-18.54V46.59h16.88v75.67Z"/>
|
|
30
|
+
</g>
|
|
31
|
+
<path class="cls-2" d="M85.52,192.79c-2.6,0-5.1-.62-7.03-1.74L7.04,149.8C3.02,147.49,0,142.25,0,137.61V55.11C0,50.48,3.02,45.24,7.04,42.93L78.48,1.68c3.88-2.24,10.19-2.24,14.07,0l71.45,41.25c4.01,2.32,7.04,7.55,7.04,12.19v82.5c0,4.63-3.02,9.87-7.04,12.19l-71.45,41.25c-1.94,1.12-4.44,1.74-7.04,1.74ZM85.52,8.09c-1.16,0-2.26.24-2.96.65L11.11,49.98c-1.5.86-2.96,3.41-2.96,5.13v82.5c0,1.73,1.47,4.27,2.96,5.13l71.45,41.25c1.4.81,4.53.81,5.93,0l71.45-41.25c1.5-.86,2.96-3.4,2.96-5.13V55.11c0-1.73-1.47-4.27-2.96-5.13L88.48,8.73c-.7-.4-1.81-.65-2.96-.65ZM85.69,165.46h0s59.76-34.67,59.76-34.67v-19.74l-59.76,34.64-25.62-14.79v19.75l25.62,14.81h0s0,0,0,0h0ZM111.28,81.34l-25.6-14.83-25.6,14.83v29.74l25.58,14.8v.03l.02-.02.02.02v-.03l25.58-14.8v-29.61M145.45,61.72l-59.71-34.61-17.07,9.86,59.71,34.62v29.67l17.07-9.87v-29.67ZM25.9,61.77v68.85l17.07,9.88v-68.87l25.77-15.05-17.08-9.86-25.77,15.05Z"/>
|
|
32
|
+
</svg>
|
|
Binary file
|
package/theme.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
MIT License Copyright 2021-2026 - Bitpool Pty Ltd
|
|
3
|
+
|
|
4
|
+
Bitpool Edge theme for Node-RED 5.
|
|
5
|
+
Purely ADDITIVE: it layers Bitpool cyan accents, glows and the animated
|
|
6
|
+
connection-highlight on top of Node-RED's own light/dark themes, without
|
|
7
|
+
overriding NR's palette. NR's built-in light & dark both work (with the
|
|
8
|
+
Appearance toggle, thanks to `schemes`).
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
module.exports = function(RED) {
|
|
12
|
+
RED.plugins.registerPlugin("bitpool-theme", {
|
|
13
|
+
// Tells Node-RED this is a theme plugin
|
|
14
|
+
type: "node-red-theme",
|
|
15
|
+
|
|
16
|
+
// Supports both colour schemes → the Appearance toggle stays available.
|
|
17
|
+
schemes: ["light", "dark"],
|
|
18
|
+
|
|
19
|
+
// Additive styling only (glows, cyan accents, wire/node highlight, logo sizing).
|
|
20
|
+
css: ["bitpool-theme.css"],
|
|
21
|
+
|
|
22
|
+
// Connection-highlight behaviour (selecting a node traces its wires).
|
|
23
|
+
scripts: ["bitpool.js"],
|
|
24
|
+
});
|
|
25
|
+
};
|