aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
Commit message (Collapse)AuthorAgeFilesLines
* Limit key names when uploading theme imagesVincent Petry2023-01-111-0/+30
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* More theming cypress tests and some fixesJohn Molakvoæ2022-11-292-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Extract colour from custom backgroundJohn Molakvoæ2022-11-293-15/+22
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to remove the background and select a custom colourJohn Molakvoæ2022-11-292-5/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix theming tests for PHP 8.2Côme Chilliet2022-11-241-0/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* generate user themed iconsSimon L2022-11-181-1/+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>
* Fix logo invertJohn Molakvoæ2022-11-165-6/+13
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix themings tests and get rid of deprecated at matcherCôme Chilliet2022-11-151-28/+30
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix some more problems with tests under PHP 8.2Côme Chilliet2022-11-152-2/+22
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix errors from PHP 8.2 testingCôme Chilliet2022-11-142-2/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Rewrite admin theming in VueChristopher Ng2022-10-281-54/+12
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix testsJohn Molakvoæ2022-10-196-10/+51
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix testsJohn Molakvoæ2022-10-141-11/+21
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix primary and debounce to avoid infinite loopJohn Molakvoæ2022-10-131-3/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to pick custom colourJohn Molakvoæ (skjnldsv)2022-10-136-3/+91
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix excessive increase of cachebuster valueChristopher Ng2022-10-111-0/+5
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Use color preset of shipped background as primary colorChristopher Ng2022-10-055-7/+31
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix highcontrast theme iconsszaimen2022-09-273-9/+9
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Move background settings from dashboard app to Appearance and accessibility ↵greta2022-09-142-5/+8
| | | | | | | settings Signed-off-by: greta <gretadoci@gmail.com> Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix theming testsJohn Molakvoæ2022-08-191-0/+7
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Automatically enable plain background if primary colour is setJohn Molakvoæ2022-08-161-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Revert "Fix unit tests for the theming app"John Molakvoæ2022-08-162-19/+2
| | | | This reverts commit 13ca01ee1256dba54d1e2793bd409d3b7c8d6058.
* Fix unit tests for the theming appCarl Schwan2022-08-112-2/+19
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove deprecated expectException from theming testsCôme Chilliet2022-06-201-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove deprecated at matcher from theming testsCôme Chilliet2022-06-164-134/+138
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix theming setEnabledThemes unique arrayJohn Molakvoæ2022-04-301-0/+32
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to override the default themeJohn Molakvoæ2022-04-303-2/+255
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add system/light themesJohn Molakvoæ2022-04-283-3/+17
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix mix factorJohn Molakvoæ2022-04-261-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix dyslexia font loadingJohn Molakvoæ2022-04-224-36/+165
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add default theming disabled fallbackJohn Molakvoæ2022-04-222-1/+147
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* PhpunitJohn Molakvoæ2022-04-217-106/+431
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Improve caching policyCarl Schwan2022-02-161-1/+1
| | | | | | | | | | | | | | * Cache css with version in url. This makes most js and css requests to be cached by the browser * Force caching previews, the etag is in the url so that if the propfind gives a new etag, we will refresh it otherwise it's no use to try to fetch the new etag and do tons of DB queries Tested with firefox and 'debug' => false (important so that the js/css urls are generated with ?v= parameter) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Avoid file system access on checking if an image existsJulius Härtl2022-02-021-13/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix tests on PHP 8.1 for encryption, files_sharing, files_version,Côme Chilliet2021-12-162-0/+5
| | | | | | files_trashbin and theming apps Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix theming tests on PHP 8.1Côme Chilliet2021-12-161-0/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* improve webmanifestszaimen2021-08-241-1/+5
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0410-22/+12
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-163-1/+2
| | | | 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>
* Optimize chek if background is themedJulius Härtl2020-11-231-18/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Shortcut to avoid file system setup when generating the logo URLMorris Jobke2020-11-091-6/+0
| | | | | | 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>
* Remove ISection in favor of IIconSectionMorris Jobke2020-10-281-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix theming manifest testsJohn Molakvoæ (skjnldsv)2020-10-201-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-053-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix testsJulius Härtl2020-09-242-90/+91
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-126-38/+38
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix PHP CSJoas Schilling2020-06-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Precalculate the primary element color for dark mode tooJoas Schilling2020-06-262-2/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>