nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.63k stars 3.99k forks source link

[Bug]: Custom CSS applied only when Dark theme is enabled #37822

Closed jesmh closed 1 year ago

jesmh commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Bug description

When using custom CSS while Dark theme is disabled, the custom CSS isn't loaded.

Steps to reproduce

  1. Put some custom CSS under Admin ConfigTheming, hit save.
  2. make sure Dark theme is disabled under ConfigAppearance.
  3. reload page

Expected behavior

Saved custom CSS should be applied.

Installation method

None

Nextcloud Server version

26

Operating system

Debian/Ubuntu

PHP engine version

Other

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

php occ app:list
The current PHP memory limit is below the recommended value of 512MB.
{"reqId":"N673bGFdQCI7ZHF1L2lE","level":0,"time":"2023-04-19T12:33:12+00:00","remoteAddr":"","user":"--","app":"encryption","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"26.0.0.11","data":{"app":"encryption"}}
Enabled:
  - apporder: 0.15.0
  - breezedark: 25.0.2
  - bruteforcesettings: 2.6.0
  - calendar: 4.3.3
  - circles: 26.0.0
  - cloud_federation_api: 1.9.0
  - co2clock: 0.1.3
  - comments: 1.16.0
  - contacts: 5.2.0
  - dashboard: 7.6.0
  - dav: 1.25.0
  - deck: 1.9.0
  - encryption: 2.14.0
  - external: 5.1.0
  - federatedfilesharing: 1.16.0
  - federation: 1.16.0
  - files: 1.21.1
  - files_external: 1.18.0
  - files_pdfviewer: 2.7.0
  - files_rightclick: 1.5.0
  - files_sharing: 1.18.0
  - files_trashbin: 1.16.0
  - files_versions: 1.19.1
  - firstrunwizard: 2.15.0
  - flowupload: 1.1.3
  - forms: 3.2.0
  - groupfolders: 14.0.1
  - guests: 2.4.0
  - logreader: 2.11.0
  - lookup_server_connector: 1.14.0
  - mail: 3.1.0
  - maps: 1.0.0
  - notifications: 2.14.0
  - oauth2: 1.14.0
  - occweb: 0.1.0
  - password_policy: 1.16.0
  - photos: 2.2.0
  - polls: 5.0.2
  - privacy: 1.10.0
  - provisioning_api: 1.16.0
  - ransomware_protection: 1.14.0
  - recommendations: 1.5.0
  - related_resources: 1.1.0-alpha1
  - serverinfo: 1.16.0
  - settings: 1.8.0
  - sharebymail: 1.16.0
  - spreed: 16.0.2
  - survey_client: 1.14.0
  - systemtags: 1.16.0
  - tasks: 0.14.5
  - telephoneprovider: 1.0.3
  - text: 3.7.2
  - theming: 2.1.1
  - twofactor_backupcodes: 1.15.0
  - unroundedcorners: 1.0.8
  - updatenotification: 1.16.0
  - user_status: 1.6.0
  - viewer: 1.10.0
  - weather_status: 1.6.0
  - workflowengine: 2.8.0
Disabled:
  - activity: 2.18.0 (installed 2.12.0)
  - admin_audit: 1.16.0
  - contactsinteraction: 1.7.0 (installed 1.2.0)
  - metadata: 0.18.0 (installed 0.18.0)
  - nextcloud_announcements: 1.15.0 (installed 1.3.0)
  - snowflakestheme: 1.0.0 (installed 1.0.0)
  - support: 1.9.0 (installed 1.0.0)
  - suspicious_login: 4.4.0
  - twofactor_totp: 8.0.0-alpha.0
  - user_ldap: 1.16.0 (installed 1.9.1)

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

PHP 8.2.4

szaimen commented 1 year ago

Hi, please report this to https://github.com/juliushaertl/theming_customcss/issues. Thanks!

jesmh commented 1 year ago

but the app Custom CSS isn't activated. But the input is only for dark theme. :/ Sorry for confusing that

joshtrichards commented 4 months ago

@jesmh Our default theming doesn't have any custom css functionality in it. It appears you're using the Breeze Dark app so maybe that's what you're seeing: https://apps.nextcloud.com/apps/breezedark