Add caption icons (#1799)

* Add caption icons

* Add subtitle category

* Changed corner radius to 2px

* Fixed metadata for caption icons

* Took suggestions to heart

* Removed trailing spaces

* Fixed captions-off violations

* Fixed name and added aliases

* Removed subtitles svg and json

* Removed alias from captions-off

* format

---------

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
This commit is contained in:
DefaultLP
2024-02-05 19:34:34 +01:00
committed by GitHub
parent 5c494962e1
commit b9fdde2d09
5 changed files with 60 additions and 19 deletions

18
icons/captions-off.json Normal file
View File

@@ -0,0 +1,18 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"DefaultLP"
],
"tags": [
"closed captions",
"subtitles",
"subhead",
"transcription",
"transcribe",
"dialogue",
"accessibility"
],
"categories": [
"multimedia"
]
}

18
icons/captions-off.svg Normal file
View File

@@ -0,0 +1,18 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10.5 5H19a2 2 0 0 1 2 2v8.5" />
<path d="M17 11h-.5" />
<path d="M19 19H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2" />
<path d="m2 2 20 20" />
<path d="M7 11h4" />
<path d="M7 15h2.5" />
</svg>

After

Width:  |  Height:  |  Size: 406 B

21
icons/captions.json Normal file
View File

@@ -0,0 +1,21 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"DefaultLP"
],
"tags": [
"closed captions",
"subtitles",
"subhead",
"transcription",
"transcribe",
"dialogue",
"accessibility"
],
"categories": [
"multimedia"
],
"aliases": [
"subtitles"
]
}

View File

@@ -9,9 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M7 13h4" />
<path d="M15 13h2" />
<path d="M7 9h2" />
<path d="M13 9h4" />
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z" />
</svg>
<rect width="18" height="14" x="3" y="5" rx="2" ry="2" />
<path d="M7 15h4M15 15h2M7 11h2M13 11h4" />
</svg>

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 313 B

View File

@@ -1,13 +0,0 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"it-is-not",
"karsa-mistmere"
],
"tags": [
"captions",
"closed captions",
"accessibility"
],
"categories": []
}