Ferdinand Thiessen
a2a8555473
fix(themeing): Add error handling to ImageManager
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2024-01-18 15:30:49 +00:00
Ferdinand Thiessen
5e881ace31
feat(theming): Only convert a background image if it benefits from it
...
* 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>
2024-01-18 15:30:49 +00:00
Simon L
b7cd824090
generate user themed favicon and touchicon
...
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-06-16 11:41:05 +00:00
Simon L
cf20825a71
Merge pull request #38433 from nextcloud/fix/theming-invert-25
...
[stable25] fix(theming): fix header primary invert if background disabled
2023-06-12 15:20:27 +02:00
John Molakvoæ
328fa1819c
fix(theming): fix header primary invert if background disabled
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-05-24 11:40:57 +02:00
Robin Appelman
9a60c16f08
fix loading custom logo image
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-23 07:26:37 +00:00
Julius Härtl
4ee9deea00
fix(theming): Fix query for configvalue as CLOB on OCI
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-07 13:15:43 +00:00
Simon L
c32f35328d
Merge pull request #36283 from nextcloud/rakekniven-patch-1
...
[stable25] l10n: Fixed grammar
2023-01-29 20:02:02 +01:00
John Molakvoæ
13fdb06737
Merge pull request #36394 from nextcloud/stable25-fix-theming-bg-disabled
...
[stable25] fix admin-disabled background and user pristine theming settings
2023-01-29 11:25:10 +01:00
John Molakvoæ
88b5f7e340
fix(theming): fix admin-disabled background and user pristine theming settings
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-26 19:58:42 +01:00
rakekniven
e203c8f5a2
Update apps/theming/lib/Migration/MigrateAdminConfig.php
...
Co-authored-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2023-01-22 18:27:21 +01:00
rakekniven
6660bc8aa7
l10n: Fixed grammar
...
Reported at Transifex.
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2023-01-22 18:26:27 +01:00
rakekniven
fd2aa9c4d9
l10n: Fixed grammar
...
Reported at Transifex.
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2023-01-21 15:09:18 +01:00
John Molakvoæ (skjnldsv)
2bdbd7fa82
fix(theming): fix admin images migration
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2023-01-20 12:09:04 +01:00
Vincent Petry
630cab2002
Limit key names when uploading theme images
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2023-01-11 18:54:45 +00:00
Vincent Petry
e127a927af
Remove "mixed" argument to make psalm happy
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2023-01-11 10:06:41 +01:00
Côme Chilliet
c5eb39b8ff
Fix theming migration repair step by passing correct type for argument
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-11 09:53:14 +01:00
John Molakvoæ
c007a3a670
Fix default primary for user theming
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-12-21 15:13:56 +01:00
Christopher Ng
bf0af98e09
Lighten default color slightly for increased contrast
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 1c753c2b15 )
2022-12-13 23:01:55 +00:00
Christopher Ng
2e68e8e8b5
Add new border color variable for increased contrast
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 24ffe32845 )
2022-12-13 23:01:55 +00:00
Simon L
5cfeec8f5d
Revert "[stable25] Fix border color contrast"
...
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-11-28 11:24:05 +01:00
blizzz
5efabd1fa9
Merge pull request #35346 from nextcloud/backport/35315/stable25
...
[stable25] Fix border color contrast
2022-11-23 10:46:34 +01:00
Christopher Ng
5a8fca96cb
Fix border color contrast
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-11-22 23:27:20 +00:00
Arthur Schiwon
6916a311e7
rename placeholder
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-22 13:51:28 +01:00
Arthur Schiwon
2f8ff76061
fix const visibility
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-22 13:51:24 +01:00
blizzz
5eb5d39d9f
use const
...
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
2022-11-22 13:51:21 +01:00
blizzz
8992ba85c7
use const
...
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
2022-11-22 13:51:18 +01:00
blizzz
300148b21d
use .json extentions
...
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
2022-11-22 13:51:13 +01:00
Arthur Schiwon
854bfcc38d
do not store state in appconfig
...
- and use count over isset for better understanding
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-22 13:51:09 +01:00
Arthur Schiwon
266426f5e4
remove dashboard check, as fallback did not consider it either
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-22 13:51:00 +01:00
Arthur Schiwon
20859a3f3f
optimize background image migration job
...
- 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>
2022-11-22 13:50:54 +01:00
Simon L
7339e49105
Merge pull request #35261 from nextcloud/backport/35182/stable25
...
[stable25] generate user themed icons
2022-11-19 00:46:05 +01:00
John Molakvoæ
49a4aa4089
Fix default theming variables
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-11-18 17:06:26 +01:00
Simon L
c36511dc23
generate user themed icons
...
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>
2022-11-18 15:15:12 +00:00
John Molakvoæ
23b188f61c
Fix logo invert
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-11-16 15:47:14 +00:00
Simon L
5bb1d81c71
Merge pull request #34686 from nextcloud/backport/34665/stable25
...
[stable25] Invert header icons on bright preset backgrounds
2022-10-21 00:10:03 +02:00
Pytal
271ceb0e6c
Merge pull request #34647 from nextcloud/backport/34620/stable25
...
[stable25] Add a repair step to cleanup old theming cache
2022-10-20 10:04:35 -07:00
Christopher Ng
4fc531bd03
Invert header icons on bright preset backgrounds
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-10-20 06:47:29 +00:00
Christopher Ng
cdf6e03215
Add a repair step to cleanup old theming cache
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-10-20 00:18:33 +00:00
John Molakvoæ
7a96c80afb
Simplify variable names
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-10-19 23:47:58 +00:00
John Molakvoæ
40e2b11a68
Add admin user customization kill switch
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-19 23:36:44 +00:00
Vincent Petry
d094884057
Improve cache buster for user backgrounds
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-10-14 16:19:44 +02:00
John Molakvoæ
98a95fb986
Fix migration
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-14 16:19:38 +02:00
John Molakvoæ
6690df39dc
Properly use user background cachebuster
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-14 16:19:34 +02:00
John Molakvoæ
f4a14cfe69
Scope the appdata theming storage for global and users
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-14 16:19:32 +02:00
Pytal
7f498d0fa0
Merge pull request #34587 from nextcloud/backport/34461/stable25
...
[stable25] Fix missing background on upgrade
2022-10-13 11:26:44 -07:00
John Molakvoæ
08227ca28d
Adjust testing
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-10-13 18:04:01 +02:00
Arthur Schiwon
1309459fee
graceful background image handling
...
- 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>
2022-10-13 18:01:48 +02:00
John Molakvoæ
f17f24ffad
Fix primary and debounce to avoid infinite loop
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-13 18:00:01 +02:00
John Molakvoæ (skjnldsv)
b3832bcd05
Allow to pick custom colour
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-10-13 17:59:57 +02:00