@@ -5,12 +5,13 @@ import { useDispatch } from 'react-redux';
55import { openPreferences } from '../actions/ide' ;
66import { setPreferencesTab } from '../actions/preferences' ;
77import { prop } from '../../../theme' ;
8- import EditIcon from '../../../images/preferences .svg' ;
8+ import EditIcon from '../../../images/pencil .svg' ;
99
1010import { useP5Version } from '../hooks/useP5Version' ;
1111
1212const VersionPickerButton = styled . button `
1313 color: ${ prop ( 'Button.primary.default.foreground' ) } ;
14+ margin-right: 1rem;
1415
1516 &:hover {
1617 color: ${ prop ( 'Button.primary.hover.background' ) } !important;
@@ -19,9 +20,8 @@ const VersionPickerButton = styled.button`
1920 & svg {
2021 vertical-align: middle;
2122 margin-bottom: 2px;
22- margin-left: 0.5rem;
23- width: 1rem;
24- height: 1rem;
23+ width: 1.5rem;
24+ height: 1.5rem;
2525 }
2626
2727 &:hover path {
@@ -61,22 +61,21 @@ const VersionIndicator = () => {
6161 window . localStorage . setItem ( CLICKED_LIBRARY_VERSION_KEY , true ) ;
6262 } , [ ] ) ;
6363
64- const label = t ( 'Toolbar.LibraryVersion' ) ;
65- const currentVersion =
66- versionInfo ?. version || t ( 'Toolbar.CustomLibraryVersion' ) ;
64+ const currentVersion = versionInfo ?. version
65+ ? `p5.js ${ versionInfo . version } `
66+ : t ( 'Toolbar.CustomLibraryVersion' ) ;
6767 const description = t (
6868 showNotificationDot
6969 ? 'Toolbar.NewVersionPickerARIA'
7070 : 'Toolbar.VersionPickerARIA'
7171 ) ;
72- const ariaLabel = `${ label } : ${ currentVersion } - ${ description } ` ;
72+ const ariaLabel = `${ currentVersion } - ${ description } ` ;
7373
7474 return (
7575 < VersionPickerButton onClick = { openVersionSettings } ariaLabel = { ariaLabel } >
76- { label } :
7776 { currentVersion }
78- { showNotificationDot && < NotificationDot /> }
7977 < EditIcon focusable = "false" aria-hidden = "true" />
78+ { showNotificationDot && < NotificationDot /> }
8079 </ VersionPickerButton >
8180 ) ;
8281} ;
0 commit comments