server
server copied to clipboard
fix(theming): unwanted variables and colours calc fixes
Fix https://github.com/nextcloud/server/issues/37656
If the admin previously uploaded an image, it is not being deleted when the background is set to color only. Meaning
--image-background
was being defined anyway Now it is being defined but we ensure it is set tono
, an invalid value, when the bg is deleted
Fix https://github.com/nextcloud/server/issues/38061
We were not passing the current main background to the
elementColor
function, meaning we were not benefiting from the max/min contrast. Now we do. If a value is too bright or too dark, the color will be replaced to ensure proper contrast.
We were not passing the current main background to the
elementColor
function, meaning we were not benefiting from the max/min contrast. Now we do. If a value is too bright or too dark, the color will be replaced to ensure proper contrast.
Doesnt seem to fix the problem in my testing:
If the admin previously uploaded an image, it is not being deleted when the background is set to color only. Meaning
--image-background
was being defined anyway Now it is being defined but we ensure it is set tono
, an invalid value, when the bg is deleted
seems to work but when the admin uploads a background image and then clicks on delete (so that only the background color stays) the by the admin uploaded image will still be shown as standard background even though it was removed:
the by the admin uploaded image will still be shown as standard background even though it was removed
Nice catch! Let me fix too
Doesnt seem to fix the problem in my testing:
What should I see in your screenshot?
What should I see in your screenshot?
The buttons should have a more greyish color to better distinguish them from the background even if the primary color is set to black?
What should I see in your screenshot?
The buttons should have a more greyish color to better distinguish them from the background even if the primary color is set to black?
Well, those buttons uses primary css variables that are not made for elements
That needs to be fixed in the vue components then :)
/backport to stable26