From 96a686327e24c70fbb8ce510add05354dea9af8b Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 8 Nov 2023 12:52:20 +0100 Subject: [PATCH] build: change icons in dev app based on state Minor UX improvement to the dev app that makes it so the icons in the toolbar change depending on the state. This makes it easier to tell when the value has changed. --- src/dev-app/dev-app/dev-app-layout.html | 36 ++++++++++++++++++++----- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/src/dev-app/dev-app/dev-app-layout.html b/src/dev-app/dev-app/dev-app-layout.html index 56eb8f7a8fa9..62bbfa434256 100644 --- a/src/dev-app/dev-app/dev-app-layout.html +++ b/src/dev-app/dev-app/dev-app-layout.html @@ -55,37 +55,61 @@

Angular Material Demos

mat-icon-button (click)="toggleM3()" [matTooltip]="state.m3Enabled ? 'Use M2 theme' : 'Use M3 theme'"> - brush + @if (state.m3Enabled) { + invert_colors_off + } @else { + invert_colors + }