Commit graph

413 commits

Author SHA1 Message Date
Robin Appelman
51984dc273
fix loading custom logo image
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-22 15:10:54 +02:00
Ferdinand Thiessen
b30bfb57f3 feat(theming): Add border radius rounded css variable so body-container-radius can be used on mobile devices
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-16 19:47:10 +02:00
Ferdinand Thiessen
4f9472a323 feat(css): Add css variables for info colors (--color-info)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-16 09:31:33 +00:00
Simon L
eb8770584e use brighten and darken instead of grey
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-10 16:35:11 +02:00
Joas Schilling
b70b1f66c9
fix(theming): Cut of the brightness into both directions if unknown
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-10 15:41:32 +02:00
John Molakvoæ
4c71d8f8a4
fix(theming): replace elementColor dark value with better contrast #8c8c8c
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-05-04 14:41:19 +02:00
John Molakvoæ
9ab7a19b09
fix(theming): remove unnecessary color-primary-element-default-hover variable
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-05-04 13:04:15 +02:00
John Molakvoæ
4d3b49b09a
fix(theming): replace color-primary-text-dark with color-primary-element-text-dark
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-05-04 13:02:53 +02:00
John Molakvoæ
74461a9479
fix(theming): ensure image background is not defined if admin disabled it
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-05-04 13:02:49 +02:00
John Molakvoæ
c6ebb0d786
fix(theming): calc primary element from current main background
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-05-04 13:02:49 +02:00
Jan C. Borchardt
8c9a9195b9
Add distraction free backgrounds for Nextcloud 26
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2023-03-03 17:55:19 +09:00
Ferdinand Thiessen
2ca1153ff6 fix(themeing): Add error handling to ImageManager
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-02-20 14:57:50 +01:00
Ferdinand Thiessen
7e1152603f 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>
2023-02-20 13:11:19 +01:00
rakekniven
9d10607551
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-02-11 21:54:06 +01:00
Julius Härtl
ecccff8bd2
fix(theming): Fix query for configvalue as CLOB on OCI
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-01-31 11:57:54 +01:00
Valdnet
928f62610b
l10n: Change administrator to administration
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2023-01-30 18:40:29 +01:00
Valdnet
927821e363
l10n: Change admin to administrator
Spelling unification.

Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2023-01-30 18:21:33 +01:00
Joas Schilling
a192641808
Use the default color and matching text color for the federation invite
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-01-30 09:12:49 +01:00
rakekniven
34824e2f8d fix(l10n): fix admin images migration
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-23 09:09:46 +00:00
John Molakvoæ (skjnldsv)
e5977a19ab fix(theming): fix admin images migration
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2023-01-23 09:09:46 +00:00
Vincent Petry
6e75931412
Limit key names when uploading theme images
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2023-01-11 16:16:44 +01:00
Côme Chilliet
09099cfaec
Fix theming migration repair step by passing correct type for argument
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-10 14:59:43 +01:00
John Molakvoæ
1acd42e10c
Invert header if primary is bright and background disabled
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-12-08 17:52:50 +01:00
Simon L
8124f683ba
Merge pull request #35547 from nextcloud/enh/noid/delete-background-size-variable
delete the --image-background-size variable
2022-12-06 14:04:30 +01:00
Christopher Ng
1c753c2b15 Lighten default color slightly for increased contrast
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-12-06 01:13:55 +00:00
Christopher Ng
24ffe32845 Add new border color variable for increased contrast
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-12-06 01:13:44 +00:00
Simon L
9597036b72 delete the --image-background-size variable
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-05 11:44:19 +00:00
Christopher Ng
3db3d75bb9 Revert "Fix border color contrast"
This reverts commit a0266d1b16.

Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-12-03 00:48:49 +00:00
John Molakvoæ
f26ee9c69d
Faster theming tests, better colours comparison and properly follow admin theming changes
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-11-30 18:39:57 +01:00
John Molakvoæ
a869259e41
More theming cypress tests and some fixes
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-11-29 11:26:27 +01:00
John Molakvoæ
064fa10ecf
Extract colour from custom background
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-11-29 11:23:05 +01:00
John Molakvoæ
cedae7c6d7
Allow to remove the background and select a custom colour
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-11-29 11:22:13 +01:00
Christopher Ng
a0266d1b16 Fix border color contrast
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-11-22 18:42:56 +00:00
Arthur Schiwon
9892bdc3c3
rename placeholder
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-18 22:30:03 +01:00
Arthur Schiwon
0297a03698
fix const visibility
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-18 22:24:59 +01:00
blizzz
df8ed46cce
use const
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
2022-11-18 22:24:59 +01:00
blizzz
9bdf4c2254
use const
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
2022-11-18 22:24:59 +01:00
blizzz
a2bce2c6fc
use .json extentions
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
2022-11-18 22:24:59 +01:00
Arthur Schiwon
dbd573e1b0
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-18 22:24:59 +01:00
Arthur Schiwon
a7ffdcd3dd
remove dashboard check, as fallback did not consider it either
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-18 22:24:59 +01:00
Arthur Schiwon
b725c777aa
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-18 22:24:58 +01:00
Simon L
04b236e320 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:03:41 +01:00
John Molakvoæ
e6b7fa6cae
Fix logo invert
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-11-16 09:46:20 +01:00
Christopher Ng
4a2bbc7af9 Rewrite admin theming in Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-10-28 00:18:47 +00:00
Christopher Ng
58abed2059 Invert header icons on bright preset backgrounds
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-10-19 19:12:56 +00:00
John Molakvoæ
d89da9b898
Simplify variable names
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-19 12:59:16 +02:00
John Molakvoæ
ef760e0337
Add admin user customization kill switch
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-19 12:57:35 +02:00
Christopher Ng
3ead19d997 Add a repair step to cleanup old theming cache
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-10-18 01:19:47 +00:00
Vincent Petry
19f35f42bc
Improve cache buster for user backgrounds
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-10-14 16:18:41 +02:00
John Molakvoæ
ac21c631a6
Fix migration
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-14 16:18:40 +02:00