aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/ThemingDefaults.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Use `IAppConfig` instead of `IConfig->getAppValue`Ferdinand Thiessen2024-09-101-4/+6
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Allow to specify a userId manually in BackgroundServiceFerdinand Thiessen2024-09-101-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(styles): Make sure footer with legal links is shown correctlyFerdinand Thiessen2024-07-261-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(theming): Allow shipped backgrounds to have a dark variantFerdinand Thiessen2024-07-121-2/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Don't reset the cachebuster value when we reset themingMarcel Müller2024-07-101-0/+4
| | | | Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-311-38/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(settings): Return mean color of background image on setFerdinand Thiessen2024-05-211-7/+8
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: cleanup theming app codeFerdinand Thiessen2024-05-211-13/+10
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Also apply new background colors to guest viewFerdinand Thiessen2024-05-211-2/+8
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Also reset background color settings when updating global ↵Ferdinand Thiessen2024-05-211-38/+19
| | | | | | background image Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(theming): Separate background and primary colorFerdinand Thiessen2024-05-211-16/+60
| | | | | | | | | | | 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>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-8/+8
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(theming): Make sure the footer is hidden if not content is renderedFerdinand Thiessen2023-11-021-5/+10
| | | | | | | Previously the footer was empty, but the backdrop was still shown. This hides the footer if no text content was defined. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Fix background removal not applying to user default themingJohn Molakvoæ2023-10-191-1/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix background removal checkJohn Molakvoæ2023-10-191-0/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* add getDocBaseUrl that exted defaultLorenzo Tanganelli2023-06-191-0/+6
| | | | Signed-off-by: Lorenzo Tanganelli <lorenzo.tanganelli@hotmail.it>
* Refactors "strpos" calls in /apps/theming to improve code readability.Faraz Samapoor2023-06-021-1/+1
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Use the default color and matching text color for the federation inviteJoas Schilling2023-01-301-0/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Faster theming tests, better colours comparison and properly follow admin ↵John Molakvoæ2022-11-301-2/+10
| | | | | | theming changes Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* More theming cypress tests and some fixesJohn Molakvoæ2022-11-291-3/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Extract colour from custom backgroundJohn Molakvoæ2022-11-291-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to remove the background and select a custom colourJohn Molakvoæ2022-11-291-13/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* generate user themed iconsSimon L2022-11-181-1/+1
| | | | | | 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>
* Rewrite admin theming in VueChristopher Ng2022-10-281-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add admin user customization kill switchJohn Molakvoæ2022-10-191-0/+11
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Adjust testingJohn Molakvoæ2022-10-131-14/+10
| | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix primary and debounce to avoid infinite loopJohn Molakvoæ2022-10-131-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to pick custom colourJohn Molakvoæ (skjnldsv)2022-10-131-14/+19
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use default system primaryJohn Molakvoæ (skjnldsv)2022-10-131-3/+26
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix excessive increase of cachebuster valueChristopher Ng2022-10-111-3/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Use brand color for background only and keep accessible color as color primaryChristopher Ng2022-10-051-5/+5
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Use color preset of shipped background as primary colorChristopher Ng2022-10-051-40/+43
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add better error handlingCarl Schwan2022-01-271-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix registerEventListener issuesCarl Schwan2022-01-271-1/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix psalm issues in theming appCarl Schwan2022-01-261-2/+6
| | | | | | | | After this change, we are down to only one psalm warning for this app and related to the Application.php. This also make composer psam:update-baseline not silently ignore new errors. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Don't setup the filesystem to check for a favicon we don't use anywayJoas Schilling2021-10-131-8/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* improve webmanifestszaimen2021-08-241-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #26481 from ghost/fdroidJulius Härtl2021-07-131-0/+9
|\
| * Add F-DroidHouraisanNEET2021-07-041-0/+9
| | | | | | | | Signed-off-by: HouraisanNEET <HouraisanNEET@users.noreply.github.com>
* | Validate the theming color also on CLIJoas Schilling2021-06-251-1/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix default product name for old themesMorris Jobke2021-06-161-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Add dedicated product name to OCP\DefaultsJulius Härtl2021-06-161-0/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-3/+2
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Store scss variables under a different prefix for each theming config versionJulius Härtl2020-11-301-2/+3
| | | | | | | | | The main issue with using the general theming- prefix is that with APCu caching the cache is not shared between processes, so when trying to reset the cache through the CLI, e.g. when updating the theming config the old cache is never invalidated. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* override default dashboard background with theming oneJulien Veyssier2020-11-131-3/+3
| | | | | | | | fix getAppValue default value in theming app fix cacheBuster value injection Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Shortcut to avoid file system setup when generating the logo URLMorris Jobke2020-11-091-5/+14
| | | | | | If an SVG is requested and the app config value for logoMime is set then the logo is there. Otherwise we need to check it and maybe also generate a PNG from the SVG (that's done in getImage() which needs to be called then). Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add occ command to set theming valuesJulius Härtl2020-09-241-2/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>