File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
translations/locales/en-US Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,26 @@ import { useTranslation } from 'react-i18next';
4
4
import { useDispatch } from 'react-redux' ;
5
5
import { openPreferences } from '../actions/ide' ;
6
6
import { setPreferencesTab } from '../actions/preferences' ;
7
- import { remSize , prop } from '../../../theme' ;
7
+ import { prop } from '../../../theme' ;
8
+ import EditIcon from '../../../images/pencil.svg' ;
8
9
9
10
import { useP5Version } from '../hooks/useP5Version' ;
10
11
11
12
const VersionPickerButton = styled . button `
12
13
color: ${ prop ( 'Button.primary.default.foreground' ) } ;
14
+
13
15
&:hover {
14
16
color: ${ prop ( 'Button.primary.hover.background' ) } !important;
15
17
}
18
+
19
+ & svg {
20
+ vertical-align: middle;
21
+ margin-bottom: 2px;
22
+ }
23
+
24
+ &:hover path {
25
+ fill: currentColor !important;
26
+ }
16
27
` ;
17
28
18
29
const VersionIndicator = ( ) => {
@@ -30,6 +41,11 @@ const VersionIndicator = () => {
30
41
{ t ( 'Toolbar.LibraryVersion' ) }
31
42
32
43
{ versionInfo ?. version || t ( 'Toolbar.CustomLibraryVersion' ) }
44
+ < EditIcon
45
+ className = "editable-input__icon"
46
+ focusable = "false"
47
+ aria-hidden = "true"
48
+ />
33
49
</ VersionPickerButton >
34
50
) ;
35
51
} ;
Original file line number Diff line number Diff line change 157
157
"EditSketchARIA" : " Edit sketch name" ,
158
158
"NewSketchNameARIA" : " New sketch name" ,
159
159
"By" : " by " ,
160
- "LibraryVersion" : " p5.js Version :" ,
160
+ "LibraryVersion" : " p5.js version :" ,
161
161
"CustomLibraryVersion" : " Custom"
162
162
},
163
163
"Console" : {
You can’t perform that action at this time.
0 commit comments