aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Service
Commit message (Collapse)AuthorAgeFilesLines
* fix: Apply enforce theme config for anonymous users as wellKostiantyn Miakshyn2025-01-081-1/+4
| | | | Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
* fix(theming): Return default theme if the user never selected a themefix/theming/default-theme-selectionprovokateurin2024-11-061-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-17/+8
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-4/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #48440 from nextcloud/refactor/background-serviceFerdinand Thiessen2024-10-031-34/+28
|\ | | | | refactor(theming): Reduce duplicated code in `BackgroundService`
| * refactor(theming): Reduce duplicated code in `BackgroundService`refactor/background-serviceFerdinand Thiessen2024-09-281-34/+28
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(theming): Use `AppConfig` for setting background imagefix/background-imageFerdinand Thiessen2024-09-281-1/+3
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-192-3/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Use migration instead of repair step for restoring custom colorFerdinand Thiessen2024-09-101-8/+18
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Allow to specify a userId manually in BackgroundServiceFerdinand Thiessen2024-09-101-18/+41
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-051-5/+5
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(theming): enforce theme should still provide dark as fallbackskjnldsv2024-07-131-1/+7
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(theming): Allow shipped backgrounds to have a dark variantFerdinand Thiessen2024-07-121-8/+16
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): also apply enforced theme for guestsskjnldsv2024-06-141-8/+22
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-314-80/+8
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(theming): Add some strict checking for userIdFerdinand Thiessen2024-05-211-1/+14
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(tests): Adjust theming test for new splitted background and primary colorsFerdinand Thiessen2024-05-211-2/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: cleanup theming app codeFerdinand Thiessen2024-05-212-7/+14
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Also apply new background colors to guest viewFerdinand Thiessen2024-05-211-1/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Also reset background color settings when updating global ↵Ferdinand Thiessen2024-05-211-14/+31
| | | | | | background image Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(theming): Allow to configure primary color separate from background in ↵Ferdinand Thiessen2024-05-212-48/+63
| | | | | | admin settings Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(theming): Separate background and primary colorFerdinand Thiessen2024-05-211-1/+1
| | | | | | | | | | | While the primary color is intended to highlight elements, it can not always be used as the background color. So now primary is independent from background a user set, the background color is, if not set directly, calculated as the mean color of the background image. That color is then used as a fallback if the background image could not be loaded and for calculating the color of the text used on the app menu and dashboard (they render directly on the background). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Also set default background color ("primary") for custom imagesFerdinand Thiessen2024-05-211-1/+65
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #32231 from nextcloud/feat/theming-scheme-metaJohn Molakvoæ2024-02-081-7/+44
|
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-081-44/+7
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* Support theme meta w3c standardJohn Molakvoæ2024-02-071-7/+44
| | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com> Signed-off-by: Simon L <szaimen@e.mail.de>
* fix(theming): The background is the primary color and must not be double ↵Ferdinand Thiessen2024-02-031-6/+6
| | | | | | inverted Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-234-35/+33
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* add descriptions for background picturesSimon L2023-11-031-0/+19
| | | | | Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(theming): Make changes on primary color less invasivFerdinand Thiessen2023-10-271-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Ensure all text colors have enough contrast for accessibilityFerdinand Thiessen2023-10-271-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Add distraction free backgrounds for Nextcloud 26Jan C. Borchardt2023-03-031-0/+22
| | | | Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
* Lighten default color slightly for increased contrastChristopher Ng2022-12-061-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Revert "Fix border color contrast"Christopher Ng2022-12-031-1/+1
| | | | | | This reverts commit a0266d1b1668fb2751c78057ffcfacca6f4b2ae8. Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Faster theming tests, better colours comparison and properly follow admin ↵John Molakvoæ2022-11-301-1/+1
| | | | | | theming changes Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* More theming cypress tests and some fixesJohn Molakvoæ2022-11-291-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Extract colour from custom backgroundJohn Molakvoæ2022-11-291-5/+6
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to remove the background and select a custom colourJohn Molakvoæ2022-11-291-11/+18
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix border color contrastChristopher Ng2022-11-221-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* generate user themed iconsSimon L2022-11-182-12/+7
| | | | | | Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* Improve cache buster for user backgroundsVincent Petry2022-10-141-4/+26
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Scope the appdata theming storage for global and usersJohn Molakvoæ2022-10-141-9/+19
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #34461 from nextcloud/fix/migrate-backgroundVincent Petry2022-10-131-5/+13
|\ | | | | Fix missing background on upgrade
| * graceful background image handlingArthur Schiwon2022-10-131-5/+13
| | | | | | | | | | | | | | - fallback to background image from old location - migrate background images to new location as insensitive job Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Use default system primaryJohn Molakvoæ (skjnldsv)2022-10-131-0/+1
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use brand color for background only and keep accessible color as color primaryChristopher Ng2022-10-051-2/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add preset primary colors for shipped backgroundsChristopher Ng2022-09-271-1/+17
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Refactor primary computation and fix a few missing theme parity variablesJohn Molakvoæ2022-09-231-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>