Visual overhaul, dark mode only

This commit is contained in:
Ian Gulliver
2019-07-01 20:27:51 +00:00
parent efdf06c2fc
commit a0bfb28106
2 changed files with 32 additions and 52 deletions

View File

@@ -15,7 +15,7 @@ class Architype {
this.container_.classList.add('architype');
// TODO: make theme selectable
this.container_.classList.add('google');
this.container_.classList.add('dark');
this.container_.addEventListener('keydown', (e) => { this.onKeyDown(e); });
@@ -905,7 +905,7 @@ class Node extends EditorEntryBase {
constructor() {
super();
this.elem_.innerText = 'Node: ';
this.elem_.innerText = 'Node:';
this.elem_.classList.add('node');
this.input_ = document.createElement('input');
@@ -938,7 +938,6 @@ class Node extends EditorEntryBase {
clear() {
super.clear();
this.elem_.classList.remove('error');
this.links = [];
this.groups = [];
this.affinity = [];
@@ -946,10 +945,6 @@ class Node extends EditorEntryBase {
this.subgraph = null;
}
setError() {
this.elem_.classList.add('error');
}
getLabel() {
return this.input_.value;
}
@@ -1046,7 +1041,7 @@ class Group extends EditorEntryBase {
constructor() {
super();
this.elem_.innerText = 'Group: ';
this.elem_.innerText = 'Group:';
this.elem_.classList.add('group');
this.input_ = document.createElement('input');
@@ -1097,11 +1092,6 @@ class Group extends EditorEntryBase {
clear() {
super.clear();
this.elem_.classList.remove('error');
}
setError() {
this.elem_.classList.add('error');
}
getNodes() {
@@ -1195,7 +1185,7 @@ class Link extends EditorEntryBase {
constructor() {
super();
this.elem_.innerText = 'Link: ';
this.elem_.innerText = 'Link:';
this.elem_.classList.add('link');
this.input_ = document.createElement('input');
@@ -1250,11 +1240,6 @@ class Link extends EditorEntryBase {
clear() {
super.clear();
this.elem_.classList.remove('error');
}
setError() {
this.elem_.classList.add('error');
}
getFrom() {