Skip to content

Commit

Permalink
Add icons and rename logs (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Nov 11, 2021
1 parent 4f2fa22 commit 5e30f3b
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions src/install-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,30 @@ class EwtInstallDialog extends LitElement {
let allowClosing = true;

content = html`
<div class="device-info">
${this._info!.firmware}&nbsp;${this._info!.version}
</div>
<table>
<tr>
<td>
<svg viewBox="0 0 24 24">
<path
fill="currentColor"
d="M9.5,8.5L11,10L8,13L11,16L9.5,17.5L5,13L9.5,8.5M14.5,17.5L13,16L16,13L13,10L14.5,8.5L19,13L14.5,17.5M21,2H3A2,2 0 0,0 1,4V20A2,2 0 0,0 3,22H21A2,2 0 0,0 23,20V4A2,2 0 0,0 21,2M21,20H3V6H21V20Z"
/>
</svg>
</td>
<td>${this._info!.firmware}&nbsp;${this._info!.version}</td>
</tr>
<tr>
<td>
<svg viewBox="0 0 24 24">
<path
fill="currentColor"
d="M6,4H18V5H21V7H18V9H21V11H18V13H21V15H18V17H21V19H18V20H6V19H3V17H6V15H3V13H6V11H3V9H6V7H3V5H6V4M11,15V18H12V15H11M13,15V18H14V15H13M15,15V18H16V15H15Z"
/>
</svg>
</td>
<td>${this._info!.chipFamily}</td>
</tr>
</table>
<div class="dashboard-buttons">
${!this._isSameVersion
? html`
Expand Down Expand Up @@ -218,7 +239,7 @@ class EwtInstallDialog extends LitElement {
</div>
<div>
<ewt-button
label="Logs"
label="Logs & Console"
@click=${async () => {
const client = this._client;
if (client) {
Expand Down Expand Up @@ -716,6 +737,14 @@ class EwtInstallDialog extends LitElement {
right: 4px;
top: 10px;
}
table {
border-spacing: 0;
color: rgba(0, 0, 0, 0.6);
}
table svg {
width: 20px;
margin-right: 8px;
}
ewt-textfield {
display: block;
margin-top: 16px;
Expand Down

0 comments on commit 5e30f3b

Please sign in to comment.