Skip to content

Commit

Permalink
IBX-8142: removed deprecated code (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM authored May 20, 2024
1 parent 8542913 commit 410dd34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/bundle/Controller/DefaultProfileImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ public function initialsAction(Request $request): Response

return $this->render('@IbexaUser/profile_image/initials.svg.twig', [
'initials' => $initials,
/** @deprecated text is deprecated since 4.1, use text_color instead */
'text' => $colors['text'],
'text_color' => $colors['text'],
'border_color' => $colors['text'],
/** @deprecated background is deprecated since 4.1, use background_color instead */
'background' => $colors['background'],
'background_color' => $colors['background'],
], $response);
}
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Resources/views/profile_image/initials.svg.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<symbol id="profile_image" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
<ellipse ry="15" rx="15" cy="16" cx="16" fill="{{ background_color|default(background) }}" stroke="{{ border_color|default(text) }}" stroke-width="1" />
<text x="50%" y="50%" dominant-baseline="central" text-anchor="middle" font-size="17px" fill="{{ text_color|default(text) }}">
<ellipse ry="15" rx="15" cy="16" cx="16" fill="{{ background_color }}" stroke="{{ border_color }}" stroke-width="1" />
<text x="50%" y="50%" dominant-baseline="central" text-anchor="middle" font-size="17px" fill="{{ text_color }}">
{{ initials }}
</text>
</symbol>

0 comments on commit 410dd34

Please sign in to comment.