From df6249931d23116f391ec898a363a417e2a23e30 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini <16690124+samelhusseini@users.noreply.github.com> Date: Mon, 7 May 2018 14:59:29 -0700 Subject: [PATCH] Update download dialog (#589) --- docs/static/download/firmware.png | Bin 0 -> 4635 bytes docs/static/download/firmware.svg | 529 ++++++++++++++++-------------- editor/extension.ts | 77 +++-- theme/style.less | 8 +- 4 files changed, 329 insertions(+), 285 deletions(-) create mode 100644 docs/static/download/firmware.png diff --git a/docs/static/download/firmware.png b/docs/static/download/firmware.png new file mode 100644 index 0000000000000000000000000000000000000000..6c9e6f44ca47a124edb8dff0bc701c0f5dbfb3a7 GIT binary patch literal 4635 zcmV+$66EcPP)%xKL7v`%}GQ-RCt{2oqKRpRi4K`-F>@nchcQSfItWV0)$t1Vm=7` zOhWJ&lMp<{Bm|E!3BhBGFrGw}Co0)pwi~zGt#)}P3|U!O+`YpPwTOU+YXRZC~<`C+!k#zy}Bx4*Ogf%S@fDHgo)M5U~~_*>VrxHw;_ zy9q(w^(E}u_#yRGHN)(Ujg2@Q4(#^GE1BXLK3W*LTE!kDw?zK)IeHw5{3II97^7*y z-TiKk?KwzCOMASFq8j7srNj!+EK*l_n!O)>hRH0FId>Lwa_5sdXBM`!lz10!TxeQw zfVJyy=dBlB!PD=iuCkiC%4z^?sdh5w&LVT}EV6SKAexnR&*FvV1-GT8u&{6`RfoSG zW_NZws5<=hCHqILSXau5b=StHkP6Ur3-LA z(tNfd?6nIEmrj_Nt~tTo{ciSd-4PN(#$qCbl0h^jct=Y+AN=WUJpGZ+(TuF!9WCwD zRh}O5{xVI~e$5CTPV9w+OUce%0Kms@z8AEQtlfLJ?idz^I$GMf<&k@%P~!2S3BjFR zJ)?@9ojae>+t&@NrP;ajsjIA(jopLY$U*8VtLbQIXUg=c(fa@j&_pj~*X9pH#5S2l zzV*nx-15l1vZ9*IqHOH8rKOOaJAat1>dbg^^p8f3%_Gwdjp^}50B|~;`M|dUGBPr5Xl-qcSp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6Q(AZ^X;Cjd<(d_JG-$s4kQYenpdjMwXx z6a0wK+1a@Tc#}?$;k@t>UX88c|PGc z5xd8b2(2;dc@FOb8x^e3cc7 z*qy~^7VZCtly>Ip9f?23A`pdV6p&0Id>a=m-7E(V}e zf~gVuidgWh8Cm4a%L%b}c6M^|)JaNKmQZ)Dj+3VbZts{eV+PBY4s2g5KTuA|O8GOV z)ILBs8vK_{$DwY46l*f*Of)vOk(HH>qo)%P__xByPw7|ugBeXAr_)LH>};Bvns7KB zWMvLK4za1ZY1lP`s~~o}ecUI+#gcu=67z2^q3rejy!7&)c=5$w;c&QUY&_4ZRjZjf za~7SA9}wwo7sa1=WKHet?4~14r>i zd2m*jUWiaYPVn%m^5ipFwA_DiCFOJGu6QwI~rb} zmrp+ny+_mOa8iDtTsDo<5&1@+tAUtw6TCjz1y#)xuuP@y`QL}VE)}>avs5XE_WNaV z#OL>OQDvWr`S2JcTf-$u3O*|*!T69QN!Bhacu#i^ZLP|WtWIzlpVudAmlfP>Hn+C6 zMRs&u0(sJ>rppdLWd&coYW2VN_4O^NsHm6|-C|vxOrJiz_pUqcx* literal 0 HcmV?d00001 diff --git a/docs/static/download/firmware.svg b/docs/static/download/firmware.svg index 417e3d1f..28a76614 100644 --- a/docs/static/download/firmware.svg +++ b/docs/static/download/firmware.svg @@ -1,252 +1,279 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/editor/extension.ts b/editor/extension.ts index b26075f2..f0a7d6bf 100644 --- a/editor/extension.ts +++ b/editor/extension.ts @@ -25,41 +25,55 @@ pxt.editor.initExtensionsAsync = function (opts: pxt.editor.ExtensionOptions): P const saveAs = pxt.BrowserUtils.hasSaveAs(); const htmlBody = ` -
-
-
-
- -
-
-
- 1 - ${lf("Connect the EV3 brick to your computer with a USB cable.")} +
+
+
${lf("First time here?")}
+ ${lf("You must have version 1.10 or above of the firmware")} +
+ +
+ ${lf("Check your firmware version here and update if needed")} +
+
+
+
+
+
+
+
+
+ +
+
+
+ 1 + ${lf("Connect the EV3 to your computer with a USB cable")} +
+ ${lf("Use the miniUSB port on the top of the EV3 brick")} +
+
+
+
+
+
+
+ +
+
+
+ 2 + ${lf("Move the .uf2 file to the EV3 brick")} +
+ ${lf("Locate the downloaded .uf2 file and drag it to the EV3 USB drive")} +
+
+
+
+
-
-
-
- -
-
-
- 2 - ${lf("Locate the downloaded .uf2 file and drag it to the EV3 drive")} -
-
-
-
-
- `; return confirmAsync({ @@ -69,6 +83,7 @@ pxt.editor.initExtensionsAsync = function (opts: pxt.editor.ExtensionOptions): P hideCancel: true, hideAgree: false, agreeLbl: lf("I got it"), + className: 'downloaddialog', buttons: [downloadAgain ? { label: fn, icon: "download", diff --git a/theme/style.less b/theme/style.less index 3252573c..69a407f7 100644 --- a/theme/style.less +++ b/theme/style.less @@ -111,9 +111,11 @@ } /* Editor download dialog */ -.ui.button.troubleshoot { - background: none !important; - color: @blue; +.ui.downloaddialog.modal>.content { + padding: 1rem; +} +.ui.downloaddialog.modal>.actions { + background-color: #FAFAFA; } /* Tutorial */