diff --git a/pw_web/docs.rst b/pw_web/docs.rst index 3d7d27fbc8..8c24df416b 100644 --- a/pw_web/docs.rst +++ b/pw_web/docs.rst @@ -345,11 +345,11 @@ Material Icon Font (Subsetting) ------------------------------- .. inclusive-language: disable -Log Viewer uses a subset of Material Icons Rounded hosted on `GitHub `_ -with codepoints listed in the `codepoints `_ file +The Log Viewer uses a subset of the Material Symbols Rounded icon font fetched via the `Google Fonts API `_. However, we also provide a subset of this font for offline usage at `GitHub `_ +with codepoints listed in the `codepoints `_ file. (It's easiest to look up the codepoints at `fonts.google.com `_ e.g. see -the sidebar shows the Codepoint for `"home" `_ is e88a) +the sidebar shows the Codepoint for `"home" `_ is e88a). The following icons with codepoints are curently used: diff --git a/pw_web/log-viewer/src/components/log-list/log-list.ts b/pw_web/log-viewer/src/components/log-list/log-list.ts index 2616f8af6d..b4ea051a77 100644 --- a/pw_web/log-viewer/src/components/log-list/log-list.ts +++ b/pw_web/log-viewer/src/components/log-list/log-list.ts @@ -551,10 +551,10 @@ export class LogList extends LitElement { if (field.key == 'severity') { const severityIcons = new Map([ - [Severity.WARNING, 'warning'], - [Severity.ERROR, 'cancel'], - [Severity.CRITICAL, 'brightness_alert'], - [Severity.DEBUG, 'bug_report'], + [Severity.WARNING, '\uf083'], + [Severity.ERROR, '\ue888'], + [Severity.CRITICAL, '\uf5cf'], + [Severity.DEBUG, '\ue868'], ]); const severityValue: Severity = field.value @@ -624,7 +624,7 @@ export class LogList extends LitElement { leading-icon data-visible="${this._autoscrollIsEnabled ? 'false' : 'true'}" > - + Jump to Bottom `; diff --git a/pw_web/log-viewer/src/components/log-view-controls/log-view-controls.ts b/pw_web/log-viewer/src/components/log-view-controls/log-view-controls.ts index d2a8b7d986..1b2a01dc83 100644 --- a/pw_web/log-viewer/src/components/log-view-controls/log-view-controls.ts +++ b/pw_web/log-viewer/src/components/log-view-controls/log-view-controls.ts @@ -271,33 +271,21 @@ export class LogViewControls extends LitElement {
- - - - - delete_sweep + - wrap_text + - view_column +
diff --git a/pw_web/log-viewer/src/index.css b/pw_web/log-viewer/src/index.css index e351973205..d114ef0de6 100644 --- a/pw_web/log-viewer/src/index.css +++ b/pw_web/log-viewer/src/index.css @@ -16,13 +16,7 @@ @import url('https://fonts.googleapis.com/css2?family=Roboto+Flex&family=Roboto+Mono:wght@400;500&display=block'); -@font-face { - font-family: 'Material Symbols Rounded'; - font-style: normal; - font-display: block; - src: url('./pw_web/log-viewer/src/assets/material_symbols_rounded_subset.woff2') format('woff2'), - url('./assets/material_symbols_rounded_subset.woff2') format('woff2'); -} +@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&text=%EE%97%9B%EF%97%8F%EE%A1%A8%EE%A2%88%EE%97%8D%EE%85%AC%EF%82%90%EE%97%93%EE%97%94%EE%86%A2%EF%99%B6%EF%99%B4%EE%A3%AC%EF%82%83%EE%89%9B&display=block'); :root { background-color: #fff;