Skip to content
Snippets Groups Projects
Commit 74133331 authored by Andre Maroneze's avatar Andre Maroneze Committed by Maxime Jacquemin
Browse files

[Ivette] increase gutter bullets size and improve contrast

parent 0bb13e29
No related branches found
No related tags found
No related merge requests found
......@@ -435,18 +435,18 @@ function createPropertiesNodes(): Editor.Aspect<Property[]> {
// Bullet colors.
function getBulletColor(status: States.Tag): string {
switch (status.name) {
case 'unknown': return '#FF8300';
case 'unknown': return '#FFE62E';
case 'invalid':
case 'invalid_under_hyp': return '#FF0000';
case 'valid':
case 'valid_under_hyp': return '#00B900';
case 'valid_under_hyp': return '#499E00';
case 'considered_valid': return '#73bbbb';
case 'invalid_but_dead':
case 'valid_but_dead':
case 'unknown_but_dead': return '#000000';
case 'never_tried': return '#FFFFFF';
case 'inconsistent': return '#FF00FF';
default: return '#FF8300';
default: return '#FFE62E';
}
}
......@@ -457,10 +457,11 @@ class PropertyBullet extends Editor.GutterMarker {
constructor(status?: States.Tag) {
super();
this.bullet = document.createElement('div');
this.bullet.innerHTML = '';
this.bullet.innerHTML = '';
if (status) {
this.bullet.style.color = getBulletColor(status);
this.bullet.style.textAlign = 'center';
this.bullet.style.webkitTextStroke = 'thin black';
if (status.descr) this.bullet.title = status.descr;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment