Simon Hunt

GUI -- Minor fixes to themed coloring of device icons.

Change-Id: I4084b7c640f70d43a57953749f11a78530620c17
...@@ -275,7 +275,12 @@ ...@@ -275,7 +275,12 @@
275 275
276 #ov-topo svg .node.device.fixed rect { 276 #ov-topo svg .node.device.fixed rect {
277 stroke-width: 1.5; 277 stroke-width: 1.5;
278 - stroke: #ccc; 278 +}
279 +.light #ov-topo svg .node.device.fixed rect {
280 + stroke: #aaa;
281 +}
282 +.dark #ov-topo svg .node.device.fixed rect {
283 + stroke: #555;
279 } 284 }
280 285
281 /* note: device is offline without the 'online' class */ 286 /* note: device is offline without the 'online' class */
......
...@@ -386,6 +386,7 @@ ...@@ -386,6 +386,7 @@
386 black: '#000', 386 black: '#000',
387 paleblue: '#acf', 387 paleblue: '#acf',
388 offwhite: '#ddd', 388 offwhite: '#ddd',
389 + darkgrey: '#444',
389 midgrey: '#888', 390 midgrey: '#888',
390 lightgrey: '#bbb', 391 lightgrey: '#bbb',
391 orange: '#f90' 392 orange: '#f90'
...@@ -394,8 +395,9 @@ ...@@ -394,8 +395,9 @@
394 // note: these are the device icon colors without affinity 395 // note: these are the device icon colors without affinity
395 var dColTheme = { 396 var dColTheme = {
396 light: { 397 light: {
398 + rfill: dCol.offwhite,
397 online: { 399 online: {
398 - glyph: dCol.black, 400 + glyph: dCol.darkgrey,
399 rect: dCol.paleblue 401 rect: dCol.paleblue
400 }, 402 },
401 offline: { 403 offline: {
...@@ -403,15 +405,15 @@ ...@@ -403,15 +405,15 @@
403 rect: dCol.lightgrey 405 rect: dCol.lightgrey
404 } 406 }
405 }, 407 },
406 - // TODO: theme
407 dark: { 408 dark: {
409 + rfill: dCol.midgrey,
408 online: { 410 online: {
409 - glyph: dCol.black, 411 + glyph: dCol.darkgrey,
410 rect: dCol.paleblue 412 rect: dCol.paleblue
411 }, 413 },
412 offline: { 414 offline: {
413 glyph: dCol.midgrey, 415 glyph: dCol.midgrey,
414 - rect: dCol.lightgrey 416 + rect: dCol.darkgrey
415 } 417 }
416 } 418 }
417 }; 419 };
...@@ -434,7 +436,7 @@ ...@@ -434,7 +436,7 @@
434 r = dCol.orange; 436 r = dCol.orange;
435 } else if (tis.isVisible()) { 437 } else if (tis.isVisible()) {
436 g = o ? a : c.glyph; 438 g = o ? a : c.glyph;
437 - r = o ? dCol.offwhite : a; 439 + r = o ? c.rfill : a;
438 } else { 440 } else {
439 g = c.glyph; 441 g = c.glyph;
440 r = c.rect; 442 r = c.rect;
......