Signed-off-by: Paul Donald <newtwen+github@gmail.com>
border-bottom: 1px solid var(--border-color-medium, rgba(0, 0, 0, 0.1));
}
+[data-darkmode="true"] {
+ /* invert black SVG line drawings in dark mode */
+ .Dashboard .svgmonotone {
+ filter: invert(.5);
+ }
+}
+
/**
* Responsive
**/
'src': L.resource('view/dashboard/icons/' + icon + '.svg'),
'width': 'router' == type ? 64 : 54,
'title': title,
- 'class': 'middle'
+ 'class': (type == 'router' || icon == 'not-internet') ? 'middle svgmonotone' : 'middle'
}),
E('h3', title)
]));
release: {
title: _('Firmware Version'),
- value: boardinfo.release.description
+ value: boardinfo?.release?.description
}
};
'src': L.resource('view/dashboard/icons/devices.svg'),
'width': 55,
'title': this.title,
- 'class': 'middle'
+ 'class': 'middle svgmonotone'
}),
E('h3', this.title)
]));
'src': L.resource('view/dashboard/icons/wireless.svg'),
'width': 55,
'title': this.title,
- 'class': 'middle'
+ 'class': 'middle svgmonotone'
}),
E('h3', this.title)
]));