Simon Hunt
Committed by Gerrit Code Review

GUI -- [TV-tweak] - moved green/red to end of color palette.

 - icon rect fill on 'no-affinity' now pale blue (not off-white).
 - dark theme masthead title now brighter.

Change-Id: I6f0818e0c70fec0a3400855257ebe5950351a940
...@@ -122,10 +122,11 @@ ...@@ -122,10 +122,11 @@
122 // --- Ordinal scales for 7 values. 122 // --- Ordinal scales for 7 values.
123 // TODO: tune colors for light and dark themes 123 // TODO: tune colors for light and dark themes
124 124
125 - var lightNorm = ['#1f77b4', '#2ca02c', '#d62728', '#9467bd', '#e377c2', '#bcbd22', '#17becf'], 125 + // blue purple pink mustard cyan green red
126 - lightMute = ['#aec7e8', '#98df8a', '#ff9896', '#c5b0d5', '#f7b6d2', '#dbdb8d', '#9edae5'], 126 + var lightNorm = ['#1f77b4', '#9467bd', '#e377c2', '#bcbd22', '#17becf', '#2ca02c', '#d62728'],
127 - darkNorm = ['#1f77b4', '#2ca02c', '#d62728', '#9467bd', '#e377c2', '#bcbd22', '#17becf'], 127 + lightMute = ['#aec7e8', '#c5b0d5', '#f7b6d2', '#dbdb8d', '#9edae5', '#98df8a', '#ff9896'],
128 - darkMute = ['#aec7e8', '#98df8a', '#ff9896', '#c5b0d5', '#f7b6d2', '#dbdb8d', '#9edae5']; 128 + darkNorm = ['#1f77b4', '#9467bd', '#e377c2', '#bcbd22', '#17becf', '#2ca02c', '#d62728'],
129 + darkMute = ['#aec7e8', '#c5b0d5', '#f7b6d2', '#dbdb8d', '#9edae5', '#98df8a', '#ff9896'];
129 130
130 function cat7() { 131 function cat7() {
131 var colors = { 132 var colors = {
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
51 color: #369; 51 color: #369;
52 } 52 }
53 .dark #mast span.title { 53 .dark #mast span.title {
54 - color: #78a; 54 + color: #acf;
55 } 55 }
56 56
57 #mast span.right { 57 #mast span.right {
......
...@@ -1799,27 +1799,36 @@ ...@@ -1799,27 +1799,36 @@
1799 network.force.resume(); 1799 network.force.resume();
1800 } 1800 }
1801 1801
1802 + var dCol = {
1803 + black: '#000',
1804 + paleblue: '#acf',
1805 + offwhite: '#ddd',
1806 + midgrey: '#888',
1807 + lightgrey: '#bbb',
1808 + orange: '#f90'
1809 + };
1810 +
1802 // note: these are the device icon colors without affinity 1811 // note: these are the device icon colors without affinity
1803 - var deviceColor = { 1812 + var dColTheme = {
1804 - sel: '#f90',
1805 light: { 1813 light: {
1806 online: { 1814 online: {
1807 - glyph: '#000', 1815 + glyph: dCol.black,
1808 - rect: '#ddd', 1816 + rect: dCol.paleblue
1809 }, 1817 },
1810 offline: { 1818 offline: {
1811 - glyph: '#888', 1819 + glyph: dCol.midgrey,
1812 - rect: '#bbb' 1820 + rect: dCol.lightgrey
1813 } 1821 }
1814 }, 1822 },
1823 + // TODO: theme
1815 dark: { 1824 dark: {
1816 online: { 1825 online: {
1817 - glyph: '#000', 1826 + glyph: dCol.black,
1818 - rect: '#ddd' 1827 + rect: dCol.paleblue
1819 }, 1828 },
1820 offline: { 1829 offline: {
1821 - glyph: '#888', 1830 + glyph: dCol.midgrey,
1822 - rect: '#bbb' 1831 + rect: dCol.lightgrey
1823 } 1832 }
1824 } 1833 }
1825 }; 1834 };
...@@ -1827,7 +1836,7 @@ ...@@ -1827,7 +1836,7 @@
1827 function devBaseColor(d) { 1836 function devBaseColor(d) {
1828 var t = network.view.getTheme(), 1837 var t = network.view.getTheme(),
1829 o = d.online ? 'online' : 'offline'; 1838 o = d.online ? 'online' : 'offline';
1830 - return deviceColor[t][o]; 1839 + return dColTheme[t][o];
1831 } 1840 }
1832 1841
1833 function setDeviceColor(d) { 1842 function setDeviceColor(d) {
...@@ -1840,10 +1849,10 @@ ...@@ -1840,10 +1849,10 @@
1840 1849
1841 if (s) { 1850 if (s) {
1842 g = c.glyph; 1851 g = c.glyph;
1843 - r = deviceColor.sel; 1852 + r = dColTheme.sel;
1844 } else if (colorAffinity) { 1853 } else if (colorAffinity) {
1845 g = o ? a : c.glyph; 1854 g = o ? a : c.glyph;
1846 - r = o ? c.rect : a; 1855 + r = o ? dCol.offwhite : a;
1847 } else { 1856 } else {
1848 g = c.glyph; 1857 g = c.glyph;
1849 r = c.rect; 1858 r = c.rect;
......