From d7ac67d528c75517cf2b533259567dd197aea465 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 15 Apr 2020 01:51:20 -0700 Subject: [PATCH] Improved night mode. --- package.json | 2 +- public/images/icon-relay - Copy.png | Bin 0 -> 340 bytes public/images/icon-relay.png | Bin 340 -> 367 bytes public/styles/style.css | 70 +++++++++++++++++++++++----- views/default.handlebars | 15 +++--- 5 files changed, 69 insertions(+), 18 deletions(-) create mode 100644 public/images/icon-relay - Copy.png diff --git a/package.json b/package.json index 75fb8c49..3979ebb5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.5.1-t", + "version": "0.5.1-u", "keywords": [ "Remote Management", "Intel AMT", diff --git a/public/images/icon-relay - Copy.png b/public/images/icon-relay - Copy.png new file mode 100644 index 0000000000000000000000000000000000000000..b514f6511df70442ee3820de763cd002694236e8 GIT binary patch literal 340 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL5ULAh?3y^w370~qEv>0#LT=By}Z;C1rt33 zJW2;=^(r^?1HP%hUT1oNfDYSn3LHol!}Zh_o}CS-eD47wLnt*#D^m%e^0nH(fWVn z>HMy%Z@&sCs*xu367o=e^B8}XMx e*58<8n!oc8GenBcuqF&R^lCCauLo5ZbL7KaY;oq{VZ?1Br-)e@%QL6kP&Q83Xa zG(<`o*fo4Xizq{L<@*#GA{X>-4e=XJlpVVq=NCv%Ne$uxT{i##002ovPDHLkV1m;I Bgu?&; delta 276 zcmV+v0qg$n0@MPKNq@rt01m?e$8V@)0000ObVXQnQ*UN;cVTj60B~VxZgehgWpp4k zE-)@RY%_jN0002RNkl'; r += '
'; r += '
'; - r += '
' + name + '
'; + r += '
' + name + '
'; r += '' + getUserShortStr(node); r += '' + (node.ip != null ? node.ip : ''); r += '' + states.join(' + '); @@ -7526,7 +7526,7 @@ x += ''; for (var i in network.netif) { var m = network.netif[i]; - x += '';//
'; + x += '
'; x += '
' + EscapeHtml(m.name + (m.dnssuffix?(', ' + m.dnssuffix):'')) + '
'; if (m.desc) { x += addDetailItem("Description", EscapeHtml(m.desc).split('(R)').join('®')); } //if (m.dnssuffix) { x += addDetailItem("DNS Suffix", m.dnssuffix); } @@ -7591,7 +7591,7 @@ for (var i in hardware.windows.memory) { var m = hardware.windows.memory[i]; x += '
' - x += '
'; + x += '
'; x += '
' + EscapeHtml(m.BankLabel) + '
'; if (m.Capacity) { x += addDetailItem("Capacity / Speed", format("{0} Mb, {1} Mhz", (m.Capacity / 1024 / 1024), m.Speed), s); } if (m.PartNumber) { x += addDetailItem("Part Number", EscapeHtml((m.Manufacturer && m.Manufacturer != 'Undefined')?(m.Manufacturer + ', '):'') + EscapeHtml(m.PartNumber), s); } @@ -9489,9 +9489,10 @@ // Highlights the device being hovered function eventMouseHover(e, over) { e.children[1].classList.remove('g1s'); - e.children[2].style['background-color'] = ((over == 0) ? '#c9c9c9' : '#b9b9b9'); + e.children[2].classList.remove('style10s'); + //e.children[2].style['background-color'] = ((over == 0) ? '#c9c9c9' : '#b9b9b9'); e.children[3].classList.remove('g2s'); - if (over == 1) { e.children[1].classList.add('g1s'); e.children[3].classList.add('g2s'); } + if (over == 1) { e.children[1].classList.add('g1s'); e.children[2].classList.add('style10s'); e.children[3].classList.add('g2s'); } } function eventsUpdate() { @@ -9778,13 +9779,15 @@ // Highlights the user being hovered function userMouseHover(element, over) { var e = element.children[0].children[0].children[1]; + element.children[0].children[0].classList.remove('sbar'); e.children[1].classList.remove('g1s'); e.children[2].classList.remove('g2s'); if (over == 1) { e.children[1].classList.add('g1s'); e.children[2].classList.add('g2s'); + element.children[0].children[0].classList.add('sbar'); } - element.children[0].children[0].style['background-color'] = ((over == 0) ? '#c9c9c9' : '#b9b9b9'); + //element.children[0].children[0].style['background-color'] = ((over == 0) ? '#c9c9c9' : '#b9b9b9'); } // Highlights the user being hovered