From: Julius Härtl Date: Tue, 18 Aug 2020 13:27:16 +0000 (+0200) Subject: Only invert header buttons X-Git-Tag: v20.0.0beta1~35^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d288a11cee23ea5f251264b13aa39dd528811e9b;p=nextcloud-server.git Only invert header buttons Signed-off-by: Julius Härtl --- diff --git a/apps/dashboard/css/dashboard.scss b/apps/dashboard/css/dashboard.scss index a320b3e3c99..9edf00a2420 100644 --- a/apps/dashboard/css/dashboard.scss +++ b/apps/dashboard/css/dashboard.scss @@ -40,7 +40,7 @@ body.dashboard-inverted:not(.dashboard-dark) { filter: invert(0); } #appmenu .icon-more-white, - .header-right > div:not(#settings) > * { + .header-right > div:not(#settings) > *:first-child { filter: invert(1) hue-rotate(180deg); } } @@ -62,10 +62,10 @@ body.dashboard-dark:not(.dashboard-inverted) { color: #000; } #appmenu svg { - filter: invert(1) !important; + filter: invert(1) hue-rotate(180deg) !important; } #appmenu .icon-more-white, - .header-right > div:not(#settings) > * { - filter: invert(1) hue-rotate(180deg); + .header-right > div:not(#settings) > *:first-child { + filter: invert(1) hue-rotate(180deg) !important; } } diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue index a2cccfce3ff..8a5daf904c4 100644 --- a/apps/dashboard/src/App.vue +++ b/apps/dashboard/src/App.vue @@ -275,6 +275,7 @@ export default { this.updateGlobalStyles() }, updateGlobalStyles() { + document.body.setAttribute('data-dashboard-background', this.background) if (window.OCA.Theming.inverted) { document.body.classList.add('dashboard-inverted') }