mwalbeck / nextcloud-breeze-dark

A Breeze Dark theme for Nextcloud
GNU Affero General Public License v3.0
321 stars 56 forks source link

Breeze Dark theme not applying on Nextcloud 22.2.3 #286

Closed pacholoamit closed 2 years ago

pacholoamit commented 2 years ago

Describe the bug I deployed the latest official Nextcloud docker image and I tried enabling Breeze dark both Globally & on the Personal configuration... Please see attached images below

However

I may be an idiot and didn't enable it properly

To Reproduce Steps to reproduce the behavior:

  1. Install the Nextcloud Breeze Dark theme through the app store
  2. enable Breeze dark globally via Admin settings > Theming > Breeze Dark and/or;
  3. enable it Personally through Personal settings > Accessibility > Breeze Dark

Expected behavior I expect the Nextcloud theme to be adjusted to Breeze Dark

Screenshots

Global

Admin settings > Theming > Breeze Dark

image

Personal

Personal settings > Accessibility > Breeze Dark

image

Setup (please complete the following information):

Additional context

I've successfully configured Nextcloud for use with both MariaDB & Redis

pacholoamit commented 2 years ago

Linking this already posted issue #94 I just checked the console and am seeing this:

image

mwalbeck commented 2 years ago

The theme not activating is a combination of Chrome and the automated activation option being enabled. When that option is enabled the theme relies on the prefers-color-scheme CSS feature to enable or disable the theme and at least from my testing Chrome isn't that great at necessarily report that correct based on the current desktop theme, at least on Linux. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

If you just want the theme to be enabled at all times you can just disable that option, and it will stay enable or disabled based on the toggled option in either personal or admin settings.

mwalbeck commented 2 years ago

The second issue is pretty much as described in the issue you linked. You can try doing a Ctrl+F5 or running the occ command I referenced in the other issue, as that is most likely just a caching issue.

pacholoamit commented 2 years ago

Yeah this is definitely a chrome-related issue... Everything works well on firefox/brave

image

I've done the occ maintenance:repair command. I've also restarted the container as well as cleared redis. Did a CTRL + F5 and removed application cache in the chromium inspector. No longer see 404s but seeing warning logs

image

mwalbeck commented 2 years ago

Great!

Those warnings are currently expected and not an indication of something being wrong. The shipped version of jQuery in Nextcloud is deprecated and not all core components and apps have been ported to the new system. From what I can see all of those warnings are coming from Nextcloud itself.

pacholoamit commented 2 years ago

Closing this issue. Definitely something up with chrome related browsers