-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui/control): optimize and restructure templates for controls
- Loading branch information
1 parent
52cf755
commit 63946ae
Showing
34 changed files
with
240 additions
and
332 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
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 was deleted.
Oops, something went wrong.
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,13 @@ | ||
<div class="${props.styles.buttonWrapper}"> | ||
<button class="${props.styles.downloadButton} ${props.styles.controlButton}" data-playable-hook="download-button" aria-label="${props.texts.label}" type="button" tabindex="0"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26" class="${props.styles.icon_small}" width="100%"> | ||
<g fill-rule="evenodd" class="${props.themeStyles.downloadSvgFill}"> | ||
<path d="M6 18h14v2H6v-2zm3.586-8.328L13 13.025v2.708l-4.828-4.647 1.414-1.414zM13 13.123l3.618-3.655 1.414 1.414L13 15.749v-2.626z"/> | ||
<path d="M12 6h2v8l-1 2-1-2V6z"/> | ||
</g> | ||
</svg> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 35" class="${props.styles.icon_big}" width="100%"> | ||
<path d="M16.5 17.586V7h2v10.825L23.571 13l1.414 1.414-7.085 6.743-.329.328-7.071-7.07L11.914 13l4.586 4.586zM5.5 26h24v2h-24v-2z" fill-rule="evenodd"/> | ||
</svg> | ||
</button> | ||
</div> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
export { default as buttonTemplate } from './button.dot'; | ||
export { default as controlTemplate } from './control.dot'; |
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
11 changes: 0 additions & 11 deletions
11
src/modules/ui/controls/full-screen/templates/enterFullScreenIcon.dot
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/modules/ui/controls/full-screen/templates/exitFullScreenIcon.dot
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1 @@ | ||
export { | ||
default as enterFullScreenIconTemplate, | ||
} from './enterFullScreenIcon.dot'; | ||
export { | ||
default as exitFullScreenIconTemplate, | ||
} from './exitFullScreenIcon.dot'; | ||
export { default as controlTemplate } from './control.dot'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,8 @@ | ||
<button class="${props.styles.logoButton} ${props.styles.controlButton}" | ||
aria-label="${props.texts.label}" | ||
type="button" | ||
tabindex="0"> | ||
<svg xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 26 26" | ||
class="${props.styles.icon_small}" | ||
preserveAspectRatio="xMidYMin slice" | ||
width="100%"> | ||
<path fill-rule="evenodd" | ||
class="${props.themeStyles.logoButtonSvgFill}" | ||
d="M 8 20 L 6 20 L 6 6 L 10 6 L 10 8 L 8 8 L 8 18 L 18 18 L 18 16 L 20 16 L 20 20 L 8 20 Z M 18 9.485 L 13.414 14.071 L 12 12.657 L 16.657 8 L 15.004 8 L 15.004 6 L 20 6 L 20 11.005 L 18 11.005 L 18 9.485 Z"/> | ||
<button class="${props.styles.logoButton} ${props.styles.controlButton}" aria-label="${props.texts.label}" type="button" tabindex="0"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26" class="${props.styles.icon_small}" preserveAspectRatio="xMidYMin slice" width="100%"> | ||
<path fill-rule="evenodd" class="${props.themeStyles.logoButtonSvgFill}" d="M8 20H6V6h4v2H8v10h10v-2h2v4H8zM18 9.485l-4.586 4.586L12 12.657 16.657 8h-1.653V6H20v5.005h-2v-1.52z"/> | ||
</svg> | ||
<svg xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 35 35" | ||
class="${props.styles.icon_big}" | ||
preserveAspectRatio="xMidYMin slice" | ||
width="100%"> | ||
<path fill-rule="evenodd" | ||
class="${props.themeStyles.logoButtonSvgFill}" | ||
d="M 9 28 L 7 28 L 7 7 L 14.071 7 L 14.071 9 L 9 9 L 9 26 L 26 26 L 26 21 L 28 21 L 28 28 L 9 28 Z M 26 10.02 L 17.414 18.607 L 16 17.192 L 24.192 9 L 22.008 9 L 22.008 7 L 28 7 L 28 13.012 L 26 13.012 L 26 10.02 Z"/> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 35" class="${props.styles.icon_big}" preserveAspectRatio="xMidYMin slice" width="100%"> | ||
<path fill-rule="evenodd" class="${props.themeStyles.logoButtonSvgFill}" d="M9 28H7V7h7.071v2H9v17h17v-5h2v7H9zm17-17.98l-8.586 8.587L16 17.192 24.192 9h-2.184V7H28v6.012h-2V10.02z"/> | ||
</svg> | ||
</button> |
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
27 changes: 0 additions & 27 deletions
27
src/modules/ui/controls/picture-in-picture/templates/enterPictureInPicture.dot
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.