Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-05-11 10:28:58 +0300
committerGitHub <noreply@github.com>2022-05-11 10:28:58 +0300
commit5a0b28d603e142051967175f023b698ff7e262db (patch)
treec089d8787ef77b7e08a1fa110b49db5de6473cec /apps
parent18f2340a403554cde825d673d6bd5aa31283b4e5 (diff)
parentcb73fe26b818cfdb8fbf07116cd8e970a9cdc708 (diff)
Merge pull request #32326 from nextcloud/fix/icons-cacher
Diffstat (limited to 'apps')
-rw-r--r--apps/encryption/css/settings-personal.scss10
-rw-r--r--apps/files/css/files.scss4
-rw-r--r--apps/files_external/css/settings.scss2
-rw-r--r--apps/theming/src/UserThemes.vue15
4 files changed, 19 insertions, 12 deletions
diff --git a/apps/encryption/css/settings-personal.scss b/apps/encryption/css/settings-personal.scss
index d9846cc77f6..f7892c001df 100644
--- a/apps/encryption/css/settings-personal.scss
+++ b/apps/encryption/css/settings-personal.scss
@@ -2,14 +2,14 @@
This file is licensed under the Affero General Public License version 3 or later.
See the COPYING-README file. */
-#encryptAllError
-, #encryptAllSuccess
-, #recoveryEnabledError
-, #recoveryEnabledSuccess {
+#encryptAllError,
+#encryptAllSuccess,
+#recoveryEnabledError,
+#recoveryEnabledSuccess {
display: none;
}
/* icons for sidebar */
.nav-icon-basic-encryption-module {
- @include icon-color('app', 'encryption', $color-black);
+ background-image: var(--icon-encryption-dark);
} \ No newline at end of file
diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss
index 2c9be4ef3fe..87b4151078d 100644
--- a/apps/files/css/files.scss
+++ b/apps/files/css/files.scss
@@ -133,7 +133,7 @@
@include icon-color('recent', 'files', $color-black);
}
.nav-icon-favorites {
- @include icon-color('star-dark', 'actions', $color-black, 2, true);
+ @include icon-color('starred', 'actions', $color-black, 2, true);
}
.nav-icon-sharingin,
.nav-icon-sharingout,
@@ -157,7 +157,7 @@
@include icon-color('unshare', 'files', $color-black);
}
.nav-icon-favorites-starred {
- @include icon-color('star-dark', 'actions', $color-yellow, 2, true);
+ @include icon-color('starred', 'actions', $color-yellow, 2, true);
}
#app-navigation .nav-files a.nav-icon-files {
diff --git a/apps/files_external/css/settings.scss b/apps/files_external/css/settings.scss
index f11ea06c155..f4d8b677d96 100644
--- a/apps/files_external/css/settings.scss
+++ b/apps/files_external/css/settings.scss
@@ -150,5 +150,5 @@
}
.nav-icon-external-storage {
- @include icon-color('app-dark', 'files_external', $color-black);
+ background-image: var(--icon-external-dark);
}
diff --git a/apps/theming/src/UserThemes.vue b/apps/theming/src/UserThemes.vue
index 5128e2c6c8d..ee514f049a5 100644
--- a/apps/theming/src/UserThemes.vue
+++ b/apps/theming/src/UserThemes.vue
@@ -100,13 +100,12 @@ export default {
this.themes.forEach(theme => {
if (theme.id === id && enabled) {
theme.enabled = true
- document.body.setAttribute(`data-theme-${theme.id}`, true)
return
}
theme.enabled = false
- document.body.removeAttribute(`data-theme-${theme.id}`)
})
+ this.updateBodyAttributes()
this.selectItem(enabled, id)
},
changeFont({ enabled, id }) {
@@ -114,16 +113,24 @@ export default {
this.fonts.forEach(font => {
if (font.id === id && enabled) {
font.enabled = true
- document.body.setAttribute(`data-theme-${font.id}`, true)
return
}
font.enabled = false
- document.body.removeAttribute(`data-theme-${font.id}`)
})
+ this.updateBodyAttributes()
this.selectItem(enabled, id)
},
+ updateBodyAttributes() {
+ const enabledThemesIDs = this.themes.filter(theme => theme.enabled === true).map(theme => theme.id)
+ this.themes.forEach(theme => {
+ document.body.toggleAttribute(`data-theme-${theme.id}`, theme.enabled)
+ })
+
+ document.body.setAttribute('data-themes', enabledThemesIDs.join(','))
+ },
+
/**
* Commit a change and force reload css
* Fetching the file again will trigger the server update