-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add icons for play/pause/sync actions #944
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file was reformatted by Prettier, but is otherwise unchanged.
There are some lint errors I need to resolve:
Edit: Resolved by copying a lint override from the hypothesis/frontend-shared repo. |
d561174
to
b307139
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
- Import SVG icons for Play, Pause and Sync actions from the interactive mock at https://hypothesis-video-transcriptions.netlify.app - Use Prettier to format SVG files, treating them as HTML
These were generated using the `generate-icons.js` script from the hypothesis/frontend-shared repo using: ``` cd via/static/ node ~/hypothesis/frontend-shared/scripts/generate-icons.js images/icons/ scripts/video_player/components/icons/ ``` Where `~/hypothesis/frontend-shared` is the location where the `hypothesis/frontend-shared` repo is checked out.
This was copied from src/components in the @hypothesis/frontend-shared project.
Replace emojis with SVG icons taken from the UI prototype at https://hypothesis-video-transcriptions.netlify.app. Also adjust the layout of the top bar to more closely match that prototype.
b307139
to
03189ce
Compare
Replace the placeholder emoji "icons" for play/pause actions with proper SVG icons, and add an icon for the sync button.
The SVG files were taken from the UI prototype at https://hypothesis-video-transcriptions.netlify.app and converted to Preact components using the
generate-icons.js
script in the hypothesis/frontend-shared repo (see also hypothesis/frontend-shared#1064).The layout of the top bar has also been modified to more closely match the prototype. I'm not sure that we'll want to have the search bar always be visible and whether it should be above/below the buttons, but it is useful for it to have its own row where it constrained for horizontal space by the buttons around it.
Before:
(nb. Appearance of play/pause button varied by platform)
After (Paused state):
After (Playing state):