We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b38bc commit f54b283Copy full SHA for f54b283
1 file changed
apps/files/js/filelist.js
@@ -1662,6 +1662,10 @@
1662
tr.append(td);
1663
1664
var isDarkTheme = OCA.Accessibility && OCA.Accessibility.theme === 'dark'
1665
+ // Needed for public pages:
1666
+ if (!OCA.Accessibility && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
1667
+ var isDarkTheme = true;
1668
+ }
1669
1670
try {
1671
var maxContrastHex = window.getComputedStyle(document.documentElement)
0 commit comments