Skip to content

Commit 57a1e6d

Browse files
committed
📝 [2.1.80] Hint about "USB" envs
1 parent e8d6212 commit 57a1e6d

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The following enhancements and changes have been made to ***Auto Build Marlin***.
44

5+
## 2.1.80
6+
- Build: Fix 'reveal' for old Windows shell
7+
- ABM Panel: Show hints on "USB" and Maple envs
8+
59
## 2.1.79
610
- Config Editor: Fix true/false slider controls
711
- Docs Panel: Show on first run

abm/css/abmview.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ body.vscode-dark, body.vscode-high-contrast {
2525
--abm-text-color-pale: #8A8;
2626
--abm-text-color-good: #6E6;
2727
--abm-text-color-limbo: #DB6;
28+
--abm-text-color-limbo-maple: #D6B;
2829
--abm-text-color-busy: #FA0;
2930
--abm-text-color-error: #C44;
31+
--abm-text-color-hey: rgb(0, 233, 233);
3032
--abm-text-color-caption: #58A;
3133
--abm-color-progress-border: #FFF;
3234
}
@@ -46,8 +48,10 @@ body.vscode-light, body.vscode-high-contrast-light {
4648
--abm-text-color-pale: #45F;
4749
--abm-text-color-good: #00D000;
4850
--abm-text-color-limbo: #A80;
51+
--abm-text-color-limbo-maple: #A08;
4952
--abm-text-color-busy: #A05900;
5053
--abm-text-color-error: #C00;
54+
--abm-text-color-hey: #0096aa;
5155
--abm-text-color-caption: #005B98;
5256
--abm-color-progress-border: #000;
5357
}
@@ -307,6 +311,7 @@ table#info>tbody>tr>td#info-envs { padding: 0; } /* Envs Cell */
307311

308312
/* Environment Name Colors */
309313
#info-envs .env-name { color: var(--abm-text-color-limbo); }
314+
#info-envs .maple .env-name { color: var(--abm-text-color-limbo-maple); }
310315
#info-envs .exists .env-name { color: var(--abm-text-color-good); }
311316

312317
#info-envs .busy .env-name,
@@ -410,6 +415,8 @@ div.subtabs button.active {
410415

411416
a.reveal { font-size: small; color: var(--abm-text-color-link); }
412417

418+
div#usb-note { padding: 1em 0; font-size: small; color: var(--abm-text-color-hey); }
419+
413420
form#showy { position: fixed; right: calc(var(--abm-social-width) + 20px); }
414421
form#showy label { display: block; padding: 2px 0; }
415422
form#showy input[type="checkbox"] { position: relative; top: 0.2em; }

abm/js/abmview.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@ var ABM = (() => {
150150
$env_rows_src = $('#env-rows-src'),
151151
$envs_table = $('<table>');
152152

153-
let has_progress = false;
153+
let has_progress = false, has_usb = false;
154154
$.each(m.val, function(i,v) {
155+
// If the name ends with USB set the flag
156+
if (v.name.match(/.+_USB.*/)) has_usb = true;
157+
155158
// Copy the template <table>, merging the env name. The <span> is allowed here!
156159
const $env_table_copy = $($env_rows_src.html().replace(/<env>/g, v.name));
157160
let $erows = $env_table_copy.find('tr').addClass(`env-${v.name}`);
@@ -161,6 +164,7 @@ var ABM = (() => {
161164

162165
// Set env row classes and env caption
163166
let caption = '';
167+
if (v.name.match(/.+maple.*/)) $erows.addClass('maple');
164168
if (v.debug) $erows.addClass('debug');
165169
if (v.native) $erows.addClass('native');
166170
if (v.busy) {
@@ -188,6 +192,8 @@ var ABM = (() => {
188192
$envs_table.append($erows);
189193
});
190194

195+
if (has_usb) $env_td.append($('<div id="usb-note">* "USB" Environments allow mounting the SD Card on the Host PC.</div>'));
196+
191197
if (ptimer) { clearInterval(ptimer); ptimer = null; }
192198
if (has_progress) {
193199
ptimer = setInterval(() => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "auto-build",
33
"displayName": "Auto Build Marlin",
44
"description": "Provides an interface to configure, build, and upload Marlin Firmware.",
5-
"version": "2.1.79",
5+
"version": "2.1.80",
66
"preview": false,
77
"publisher": "marlinfirmware",
88
"icon": "icon.png",

0 commit comments

Comments
 (0)