Update to Material Symbols and switch to class names for icons
The switch to class names is for accessibility. Class names are not translated by browser translation plugins and not read by screen readers.
This commit is contained in:
1 parent
672a19f8f6
commit
5788f5a8b4
71 files changed
+403
-266
No files matched your search
@@ -119,34 +119,34 @@ const video_keydown = (e: KeyboardEvent) => {
|
||||
<div class="controls">
|
||||
<div class="spacer"></div>
|
||||
<button onclick={() => open_sibling(-1)}>
|
||||
<i class="icon">skip_previous</i>
|
||||
<i class="icon i_skip_previous"></i>
|
||||
</button>
|
||||
<button onclick={() => seek(-10)}>
|
||||
<i class="icon">replay_10</i>
|
||||
<i class="icon i_replay_10"></i>
|
||||
</button>
|
||||
<button onclick={toggle_playback} class="button_highlight">
|
||||
{#if playing}
|
||||
<i class="icon">pause</i>
|
||||
<i class="icon i_pause"></i>
|
||||
{:else}
|
||||
<i class="icon">play_arrow</i>
|
||||
<i class="icon i_play_arrow"></i>
|
||||
{/if}
|
||||
</button>
|
||||
<button onclick={() => seek(10)}>
|
||||
<i class="icon">forward_10</i>
|
||||
<i class="icon i_forward_10"></i>
|
||||
</button>
|
||||
<button onclick={() => open_sibling(1)}>
|
||||
<i class="icon">skip_next</i>
|
||||
<i class="icon i_skip_next"></i>
|
||||
</button>
|
||||
<div style="width: 16px; height: 8px;"></div>
|
||||
<button onclick={toggle_mute} class:button_red={player && player.muted}>
|
||||
{#if player && player.muted}
|
||||
<i class="icon">volume_off</i>
|
||||
<i class="icon i_volume_off"></i>
|
||||
{:else}
|
||||
<i class="icon">volume_up</i>
|
||||
<i class="icon i_volume_up"></i>
|
||||
{/if}
|
||||
</button>
|
||||
<button onclick={toggle_fullscreen}>
|
||||
<i class="icon">fullscreen</i>
|
||||
<i class="icon i_fullscreen"></i>
|
||||
</button>
|
||||
<div class="spacer"></div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user