-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace vaadin-icons with more suitable svg icons
- Loading branch information
Showing
5 changed files
with
88 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import '@polymer/iron-iconset-svg/iron-iconset-svg.js'; | ||
|
||
const template = document.createElement('template'); | ||
|
||
template.innerHTML = `<iron-iconset-svg name="vcf-erte-extra-icons" size="24"> | ||
<svg><defs> | ||
<g id="align-center-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-align-center" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="var(--rte-extra-icons-stroke-color)" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/> | ||
<line x1="4" y1="6" x2="20" y2="6" /> | ||
<line x1="8" y1="12" x2="16" y2="12" /> | ||
<line x1="6" y1="18" x2="18" y2="18" /> | ||
</svg></g> | ||
<g id="align-justify-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-align-justified" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="var(--rte-extra-icons-stroke-color)" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/> | ||
<line x1="4" y1="6" x2="20" y2="6" /> | ||
<line x1="4" y1="12" x2="20" y2="12" /> | ||
<line x1="4" y1="18" x2="20" y2="18" /> | ||
</svg></g> | ||
<g id="align-left-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-align-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="var(--rte-extra-icons-stroke-color)" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/> | ||
<line x1="4" y1="6" x2="20" y2="6" /> | ||
<line x1="4" y1="12" x2="14" y2="12" /> | ||
<line x1="4" y1="18" x2="18" y2="18" /> | ||
</svg></g> | ||
<g id="align-right-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-align-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="var(--rte-extra-icons-stroke-color)" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/> | ||
<line x1="4" y1="6" x2="20" y2="6" /> | ||
<line x1="10" y1="12" x2="20" y2="12" /> | ||
<line x1="6" y1="18" x2="20" y2="18" /> | ||
</svg></g> | ||
<g id="deindent-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-indent-decrease" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="var(--rte-extra-icons-stroke-color)" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/> | ||
<line x1="20" y1="6" x2="13" y2="6" /> | ||
<line x1="20" y1="12" x2="11" y2="12" /> | ||
<line x1="20" y1="18" x2="13" y2="18" /> | ||
<path d="M8 8l-4 4l4 4" /> | ||
</svg></g> | ||
<g id="indent-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-indent-increase" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="var(--rte-extra-icons-stroke-color)" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/> | ||
<line x1="20" y1="6" x2="9" y2="6" /> | ||
<line x1="20" y1="12" x2="13" y2="12" /> | ||
<line x1="20" y1="18" x2="9" y2="18" /> | ||
<path d="M4 8l4 4l-4 4" /> | ||
</svg></g> | ||
<g id="lock-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-lock" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="var(--rte-extra-icons-stroke-color)" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/> | ||
<rect x="5" y="11" width="14" height="10" rx="2" /> | ||
<circle cx="12" cy="16" r="1" /> | ||
<path d="M8 11v-4a4 4 0 0 1 8 0v4" /> | ||
</svg></g> | ||
</defs></svg> | ||
</iron-iconset-svg>`; | ||
|
||
document.head.appendChild(template.content); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters