aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-04-22 12:32:14 +0200
committerGitHub <noreply@github.com>2022-04-22 12:32:14 +0200
commit9a76f06ecadf05ef1d26bd735df1bea0dfb15d59 (patch)
treeebdd458b0969c07d5ce77b21684a8bdf1db8434d /apps/files/js
parente1cb1bdce94fa2a6395b2d3a35556944111e66b1 (diff)
parent850d8ac1cd9e5b28e37668469237d8daa5c5d51d (diff)
downloadnextcloud-server-9a76f06ecadf05ef1d26bd735df1bea0dfb15d59.tar.gz
nextcloud-server-9a76f06ecadf05ef1d26bd735df1bea0dfb15d59.zip
Merge pull request #31751 from nextcloud/theming-providers
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 69322273a11..85b9e883ac6 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1781,7 +1781,8 @@
td.append(linkElem);
tr.append(td);
- var isDarkTheme = OCA.Accessibility && OCA.Accessibility.theme === 'dark'
+ var enabledThemes = window.OCA?.Theming?.enabledThemes || []
+ var isDarkTheme = enabledThemes.join('').indexOf('dark') !== -1
try {
var maxContrastHex = window.getComputedStyle(document.documentElement)