]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only invert header buttons
authorJulius Härtl <jus@bitgrid.net>
Tue, 18 Aug 2020 13:27:16 +0000 (15:27 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 19 Aug 2020 15:07:29 +0000 (17:07 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/dashboard/css/dashboard.scss
apps/dashboard/src/App.vue

index a320b3e3c99629b762435c5aac966b50ddc5c0fb..9edf00a24206541d4aa2c1f363854bc23a996de8 100644 (file)
@@ -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;
        }
 }
index a2cccfce3ff6dca7ce32493b7f8052b012df60c8..8a5daf904c48d8ebcf96b36887cd46a6e6f554bb 100644 (file)
@@ -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')
                        }