Skip to content

Commit c2d4af5

Browse files
authored
Merge pull request #558 from processing/apple-silicon-indicator
2 parents 3dce82c + 5847adc commit c2d4af5

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

i18n/react-intl/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"raspberryPi32AssetTooltip": "Latest version of Raspberry Pi OS is recommended.",
8282
"raspberryPi64AssetTooltip": "Latest version of Raspberry Pi OS is recommended. The 64-bit release Raspberry Pi OS is newer, so if you have issues, try the 32-bit version.",
8383
"publishedOn": "Published on",
84-
"macOsIntelWarning": "Got an M1 or M2 CPU? Download the <a href='{0}'>Apple Silicon</a> version instead.",
84+
"macOsIntelWarning": "Got an M1 or above? Download the <a href='{0}'>Apple Silicon</a> version instead.",
8585
"otherVersions": "Need another version?",
8686
"olderVersions": "Looking for older versions?",
8787
"githubEarlierReleases": "Head over to GitHub for <a href='https://github.com/processing/processing4/releases'>earlier releases of Processing 4</a>.",
@@ -435,4 +435,4 @@
435435
"Background Image": "Background Image",
436436
"Datatype Conversion": "Datatype Conversion",
437437
" ": ""
438-
}
438+
}

src/styles/templates/download.module.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020

2121
margin: var(--vertical-margin-large) 0;
2222
}
23+
.mainDownloadButtonContainer>div>p.appleSiliconWarning {
24+
color: black;
25+
a{
26+
color: var(--processing-blue);
27+
}
28+
}
29+
2330

2431
a.mainDownloadButton {
2532
background-color: var(--processing-blue);
@@ -449,6 +456,7 @@ a.mainDownloadButton {
449456
font-size: var(--text-medium);
450457
}
451458

459+
452460
.osSectionList {
453461
gap: calc(2 * var(--margin-double));
454462

src/templates/download.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ const MainDownloadSection = memo(({ release, onAfterDownload }) => {
205205
appleSiliconAsset && (
206206
<div>
207207
<p
208+
className={css.appleSiliconWarning}
208209
dangerouslySetInnerHTML={{
209210
__html: intl
210211
.formatMessage({ id: 'macOsIntelWarning' })

0 commit comments

Comments
 (0)