summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add distraction free backgrounds for Nextcloud 26Jan C. Borchardt2023-03-031-0/+22
| | | | Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
* fix(themeing): Add error handling to ImageManagerFerdinand Thiessen2023-02-201-23/+41
| | | | Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* feat(theming): Only convert a background image if it benefits from itFerdinand Thiessen2023-02-201-2/+31
| | | | | | | | | * WebP images are generally quite small, converting to pngs would increase the filesize a lot. * Small JPEG and PNG images do not benefit from any conversion, so skip it. * JPEG images will get quite bigger when converted to PNG so instead convert to progressive JPEG Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* l10n: Fixed grammarrakekniven2023-02-111-1/+1
| | | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* fix(theming): Fix query for configvalue as CLOB on OCIJulius Härtl2023-01-311-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* l10n: Change administrator to administrationValdnet2023-01-301-5/+5
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* l10n: Change admin to administratorValdnet2023-01-301-5/+5
| | | | | Spelling unification. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.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>
* fix(l10n): fix admin images migrationrakekniven2023-01-231-1/+1
| | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* fix(theming): fix admin images migrationJohn Molakvoæ (skjnldsv)2023-01-232-76/+101
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Limit key names when uploading theme imagesVincent Petry2023-01-111-1/+14
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix theming migration repair step by passing correct type for argumentCôme Chilliet2023-01-101-6/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Invert header if primary is bright and background disabledJohn Molakvoæ2022-12-082-10/+17
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #35547 from ↵Simon L2022-12-061-7/+0
|\ | | | | | | | | nextcloud/enh/noid/delete-background-size-variable delete the --image-background-size variable
| * delete the --image-background-size variableSimon L2022-12-051-7/+0
| | | | | | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* | Lighten default color slightly for increased contrastChristopher Ng2022-12-061-1/+1
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Add new border color variable for increased contrastChristopher Ng2022-12-062-0/+2
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Revert "Fix border color contrast"Christopher Ng2022-12-033-5/+5
| | | | | | 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-304-3/+33
| | | | | | theming changes Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* More theming cypress tests and some fixesJohn Molakvoæ2022-11-296-13/+9
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Extract colour from custom backgroundJohn Molakvoæ2022-11-295-15/+20
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to remove the background and select a custom colourJohn Molakvoæ2022-11-299-64/+111
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix border color contrastChristopher Ng2022-11-223-5/+5
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* rename placeholderArthur Schiwon2022-11-181-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix const visibilityArthur Schiwon2022-11-181-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* use constblizzz2022-11-181-1/+1
| | | | Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
* use constblizzz2022-11-181-1/+1
| | | | Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
* use .json extentionsblizzz2022-11-181-1/+1
| | | | Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
* do not store state in appconfigArthur Schiwon2022-11-181-14/+83
| | | | | | - and use count over isset for better understanding Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove dashboard check, as fallback did not consider it eitherArthur Schiwon2022-11-181-9/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* optimize background image migration jobArthur Schiwon2022-11-182-26/+70
| | | | | | | | | | | | | | | - separate in two stages: to prepare, and to actually migrate - in step one, prepare a list of users to be migrated, and store it compressed as app config - gzcompress can be used, because we already require zlib - upon the next calls (step two), slice off the first 5000 users and migrate them. Re-add job if necessary to repeat. - downside is that an app config value will in the beginning use the RAM with any request, until it thins out. Examples: 2m UUIDs (75 MiB) result in ~40 MiB compressed data, while 0.2Mib for 10 000 UUIDs, 0.4MiB for 20 000 and 4.1 MiB for 200 000. Acceptable. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* generate user themed iconsSimon L2022-11-185-16/+29
| | | | | | 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-162-9/+9
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Rewrite admin theming in VueChristopher Ng2022-10-286-29/+34
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Invert header icons on bright preset backgroundsChristopher Ng2022-10-192-2/+4
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Simplify variable namesJohn Molakvoæ2022-10-193-64/+100
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add admin user customization kill switchJohn Molakvoæ2022-10-196-7/+31
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add a repair step to cleanup old theming cacheChristopher Ng2022-10-181-0/+76
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Improve cache buster for user backgroundsVincent Petry2022-10-144-13/+31
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix migrationJohn Molakvoæ2022-10-141-6/+22
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Properly use user background cachebusterJohn Molakvoæ2022-10-142-1/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Scope the appdata theming storage for global and usersJohn Molakvoæ2022-10-144-24/+42
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #34461 from nextcloud/fix/migrate-backgroundVincent Petry2022-10-133-5/+168
|\ | | | | Fix missing background on upgrade
| * graceful background image handlingArthur Schiwon2022-10-133-5/+168
| | | | | | | | | | | | | | - 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>
* | Merge pull request #34437 from nextcloud/feat/theming-default-system-valueSimon L2022-10-135-13/+44
|\ \ | | | | | | Use default system primary
| * | 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-132-5/+6
| | | | | | | | | | | | 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-135-7/+36
| |/ | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #34546 from nextcloud/improve-hight-contrastJohn Molakvoæ2022-10-132-0/+9
|\ \ | |/ |/| Add seperator in high contrast mode