-
Notifications
You must be signed in to change notification settings - Fork 3
/
colorschemenight.ts
53 lines (51 loc) · 1.09 KB
/
colorschemenight.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/** Standard dark mode Cytoscape color scheme.*/
import { EDGE } from "../edge";
const colorschemenight = [
{
selector: "node",
css: {
color: "white",
"border-color": "white",
},
},
{
selector: "node:selected",
css: { "background-color": "rgb(255,255,0)" },
},
{
selector: "node.source",
css: { "border-color": "rgb(128,255,128)" },
},
{
selector: "node.target",
css: { "border-color": "rgb(255,90,90)" },
},
{
selector: "edge:unselected",
css: {
"line-color": function (edge) {
// highlight skos interlinks
if (String(edge.data(EDGE.PROPERTY)).substring(0, 36) === "http://www.w3.org/2004/02/skos/core#") {
return "rgb(255,255,190)";
}
return "rgb(252,252,252)";
},
},
},
{
selector: "edge.starmode",
css: {
color: "rgb(128,128,128)", // label color
"mid-target-arrow-color": "rgb(128,128,128)",
},
},
{
selector: "edge:selected,edge.highlighted",
css: {
color: "rgb(255,255,128)", // label color
"line-color": "rgb(255,255,128)",
"mid-target-arrow-color": "rgb(255,255,128)",
},
},
];
export { colorschemenight };