aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/ThemingDefaults.php
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Provide the proper language to the mailerRoeland Jago Douma2020-04-161-2/+2
| | | | | | | Else we can't properly translate the footer in the recipients e-mail language. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-9/+10
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use themed favicon-fbJulius Härtl2020-01-211-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersChristoph Wurst2019-12-051-1/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove some whitespaceDaniel Kesselberg2019-11-241-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* add var for theming images , advanced optionsGuillaume COMPAGNON2019-11-241-3/+3
| | | | Signed-off-by: Guillaume COMPAGNON <gcompagnon@outlook.com>
* Cleanup theming messRoeland Jago Douma2019-10-251-4/+1
| | | | | | | | | | * Do not do translations in the constructor. This gets called to early so there is no user yet. Which means we can't obtain the locale. Which means we store the wrong translation instance. * Same for the theming app magic. Just use the parent call when needed. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* make sure that the urls for theming images are validRobin Appelman2019-10-181-4/+10
| | | | | | | | In some circumstances the url generation seems to fail, resulting in an empty image url which causes the browser to load the main page multiple times, leading to issues with state tokens Signed-off-by: Robin Appelman <robin@icewind.nl>
* Only return link to themed icon if file existsJulius Härtl2019-06-261-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>