aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-09-25 16:47:23 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-25 15:16:59 +0000
commite756dff41953350752406730c828b30942a3127c (patch)
tree705bcf6fb1a54b161f7ef2c7848d7e724da6cbb7
parentcfb8f1289eebb77784f4d29896083f30b0f337ae (diff)
downloadnextcloud-server-backport/48356/stable30.tar.gz
nextcloud-server-backport/48356/stable30.zip
fix(icons): Document icon requirements for notifications and activitiesbackport/48356/stable30
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/public/Activity/IEvent.php8
-rw-r--r--lib/public/Notification/INotification.php8
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/public/Activity/IEvent.php b/lib/public/Activity/IEvent.php
index f204de599b9..524ecd0c767 100644
--- a/lib/public/Activity/IEvent.php
+++ b/lib/public/Activity/IEvent.php
@@ -310,6 +310,10 @@ interface IEvent {
public function getLink(): string;
/**
+ * Set the absolute url for the icon (should be colored black or not have a color)
+ *
+ * It's automatically color inverted by clients when needed
+ *
* @param string $icon
* @return $this
* @throws InvalidValueException if the icon is invalid
@@ -319,6 +323,10 @@ interface IEvent {
public function setIcon(string $icon): self;
/**
+ * Get the absolute url for the icon (should be colored black or not have a color)
+ *
+ * It's automatically color inverted by clients when needed
+ *
* @return string
* @since 11.0.0
*/
diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php
index 28d2d6bff5a..4e9a68beccf 100644
--- a/lib/public/Notification/INotification.php
+++ b/lib/public/Notification/INotification.php
@@ -249,6 +249,10 @@ interface INotification {
public function getLink(): string;
/**
+ * Set the absolute url for the icon (should be colored black or not have a color)
+ *
+ * It's automatically color inverted by clients when needed
+ *
* @param string $icon
* @return $this
* @throws InvalidValueException if the icon is invalid
@@ -258,6 +262,10 @@ interface INotification {
public function setIcon(string $icon): INotification;
/**
+ * Get the absolute url for the icon (should be colored black or not have a color)
+ *
+ * It's automatically color inverted by clients when needed
+ *
* @return string
* @since 11.0.0
*/