diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-15 16:16:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 16:16:13 +0200 |
commit | d82ef721611654aa3a3aab0ea3c8c85c7e0187d6 (patch) | |
tree | 2b75f2c5bad51beeec55f1da359a01abf1608048 /lib/public | |
parent | a0496b2a7802d7605063056999ab0f3d465957af (diff) | |
parent | 543188d0cb2f03e661ba937dcef5f56f739ea582 (diff) | |
download | nextcloud-server-d82ef721611654aa3a3aab0ea3c8c85c7e0187d6.tar.gz nextcloud-server-d82ef721611654aa3a3aab0ea3c8c85c7e0187d6.zip |
Merge pull request #9197 from nextcloud/fix-avatar-center
Fix avatar generator centering
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IAvatar.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/IAvatar.php b/lib/public/IAvatar.php index a6731b63be9..85863357069 100644 --- a/lib/public/IAvatar.php +++ b/lib/public/IAvatar.php @@ -8,6 +8,7 @@ * @author Robin Appelman <robin@icewind.nl> * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Thomas Müller <thomas.mueller@tmit.eu> + * @author John Molakvoæ <skjnldsv@protonmail.com> * * @license AGPL-3.0 * @@ -26,6 +27,7 @@ */ namespace OCP; + use OCP\Files\File; use OCP\Files\NotFoundException; @@ -79,6 +81,13 @@ interface IAvatar { public function getFile($size); /** + * @param string $text + * @return Color Object containting r g b int in the range [0, 255] + * @since 14.0.0 + */ + public function avatarBackgroundColor(string $text); + + /** * Handle a changed user * @since 13.0.0 */ |