Skip to content

Commit

Permalink
Merge pull request #48356 from nextcloud/bugfix/noid/document-icon-re…
Browse files Browse the repository at this point in the history
…quirements

fix(icons): Document icon requirements for notifications and activities
  • Loading branch information
nickvergessen authored Sep 25, 2024
2 parents 6befdd6 + 1f188c3 commit c98206b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/public/Activity/IEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ public function getObjectName(): string;
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
Expand All @@ -319,6 +323,10 @@ public function getLink(): string;
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
*/
Expand Down
8 changes: 8 additions & 0 deletions lib/public/Notification/INotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ public function setLink(string $link): 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
Expand All @@ -258,6 +262,10 @@ public function getLink(): string;
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
*/
Expand Down

0 comments on commit c98206b

Please sign in to comment.