Skip to content

Commit 9d2444f

Browse files
committed
Use gear icon
1 parent 3f9c28b commit 9d2444f

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

client/modules/IDE/components/VersionIndicator.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useDispatch } from 'react-redux';
55
import { openPreferences } from '../actions/ide';
66
import { setPreferencesTab } from '../actions/preferences';
77
import { prop } from '../../../theme';
8-
import EditIcon from '../../../images/pencil.svg';
8+
import EditIcon from '../../../images/preferences.svg';
99

1010
import { useP5Version } from '../hooks/useP5Version';
1111

@@ -19,6 +19,9 @@ const VersionPickerButton = styled.button`
1919
& svg {
2020
vertical-align: middle;
2121
margin-bottom: 2px;
22+
margin-left: 0.5rem;
23+
width: 1rem;
24+
height: 1rem;
2225
}
2326
2427
&:hover path {
@@ -41,11 +44,7 @@ const VersionIndicator = () => {
4144
{t('Toolbar.LibraryVersion')}
4245
 
4346
{versionInfo?.version || t('Toolbar.CustomLibraryVersion')}
44-
<EditIcon
45-
className="editable-input__icon"
46-
focusable="false"
47-
aria-hidden="true"
48-
/>
47+
<EditIcon focusable="false" aria-hidden="true" />
4948
</VersionPickerButton>
5049
);
5150
};

client/modules/IDE/components/VersionPicker.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const VersionDropdownMenu = styled(DropdownMenu)`
3838
padding: 0;
3939
}
4040
41-
margin-bottom: 1rem;
41+
margin-bottom: 0.5rem;
4242
`;
4343

4444
const VersionPicker = React.forwardRef(({ onChangeVersion }, ref) => {

translations/locales/en-US/translations.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@
222222
"CustomVersionInfo": "The version of p5.js is currently being managed in the code of index.html. This means it can't be adjusted from this tab.",
223223
"CustomVersionReset": "If you'd like to use the default libraries, you can replace the script tags in index.html with the following:",
224224
"SoundAddon": "p5.sound.js Addon",
225-
"PreloadAddon": "p5.js 1.x Compatibility Add-on — Preload",
226-
"ShapesAddon": "p5.js 1.x Compatibility Add-on — Shapes",
227-
"DataAddon": "p5.js 1.x Compatibility Add-on — Data Structures",
225+
"PreloadAddon": "p5.js 1.x Compatibility Addon — Preload",
226+
"ShapesAddon": "p5.js 1.x Compatibility Addon — Shapes",
227+
"DataAddon": "p5.js 1.x Compatibility Addon — Data Structures",
228228
"AddonOnARIA": "on",
229229
"AddonOffARIA": "off",
230230
"UndoSoundVersion": "Want to use p5.sound.js again? Turning it back on will restore the version you were using before.",

0 commit comments

Comments
 (0)