Ferdinand Thiessen
d5dc6b2476
feat(theming): Allow shipped backgrounds to have a dark variant
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-12 13:00:07 +02:00
Andy Scherzinger
cc1686dba9
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-31 10:38:47 +02:00
Ferdinand Thiessen
538a04968a
fix(tests): Adjust theming test for new splitted background and primary colors
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-21 20:36:26 +02:00
Ferdinand Thiessen
85b64e15ad
fix: Always populate --image-background
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-21 20:36:26 +02:00
Ferdinand Thiessen
282f1b1fab
fix(theming): Also apply new background colors to guest view
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-21 20:36:21 +02:00
Ferdinand Thiessen
482395ba2f
fix(theming): Also reset background color settings when updating global background image
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-21 20:36:21 +02:00
Ferdinand Thiessen
705335e6a5
feat(theming): Allow to configure primary color separate from background in admin settings
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-21 20:36:21 +02:00
Ferdinand Thiessen
de938bb401
feat(theming): Separate background and primary color
...
While the primary color is intended to highlight elements,
it can not always be used as the background color.
So now primary is independent from background a user set,
the background color is, if not set directly, calculated as the mean color
of the background image. That color is then used as a fallback if the
background image could not be loaded and for calculating the color of the text used on the app menu and dashboard (they render directly on the background).
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-21 20:36:21 +02:00
Ferdinand Thiessen
0211feb946
fix(theming): Also set default background color ("primary") for custom images
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-21 20:36:21 +02:00
Ferdinand Thiessen
0f2b9b09ec
fix(theming): The background is the primary color and must not be double inverted
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-03 14:28:34 +01:00
Ferdinand Thiessen
3d8e2ec9b0
fix(theming): Invert filter should be based on primary-element
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-22 01:37:01 +01:00
Ferdinand Thiessen
74f6995bdb
fix(theming): Adjust dark high contrast to fulfill WCAG 2.1 AAA contrast
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-19 10:20:33 -06:00
Ferdinand Thiessen
84123b3910
fix(theming): Adjust primary text color calculation to also work with high contrast themes
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-15 21:09:39 +01:00
Ferdinand Thiessen
61f401da57
fix(theming): Adjust hover color to be accessible
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-15 21:09:14 +01:00
Ferdinand Thiessen
141d1e9026
enh(theming): Adjust color utils to work as specified by WCAG (color contrast and luma calculation)
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-15 21:09:14 +01:00
Joas Schilling
9c0ba1bab9
fix(theming): Fix color inverted icons based on theming and dark mode
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-29 16:38:41 +01:00
Joas Schilling
aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-23 10:36:13 +01:00
Ferdinand Thiessen
3378a73e99
fix(theming): Make changes on primary color less invasiv
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-10-27 12:56:23 +02:00
Ferdinand Thiessen
3676295f7b
fix(theming): Ensure all text colors have enough contrast for accessibility
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-10-27 12:56:23 +02:00
John Molakvoæ
4f4074452d
Fix background removal not applying to user default theming
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-10-19 12:01:29 +02:00
John Molakvoæ
a024ee1cfe
Fix background removal check
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-10-19 11:54:09 +02:00
julia.kirschenheuter
ddb808e136
Change color for primary element on hover
...
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-07-24 15:56:30 +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
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
9597036b72
delete the --image-background-size variable
...
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-05 11:44:19 +00: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
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æ (skjnldsv)
4b46c5a5a0
Use default system primary
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-10-13 12:13:39 +02:00
szaimen
9d4d95a94c
fix the tertiary button text
...
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-09-30 17:50:48 +02:00
John Molakvoæ
7a43559197
Refactor primary computation and fix a few missing theme parity variables
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-09-23 15:48:45 +02:00