|
32 | 32 | > |
33 | 33 | <mat-form-field> |
34 | 34 | <input |
35 | | - [(colorPicker)]="demoService.config.fgsColor" |
36 | 35 | matInput |
37 | 36 | placeholder="Foreground Spinner Color (fgsColor)" |
38 | 37 | [(ngModel)]="demoService.config.fgsColor" |
| 38 | + readonly |
39 | 39 | /> |
40 | | - <mat-icon |
| 40 | + <button |
| 41 | + mat-icon-button |
41 | 42 | matSuffix |
42 | | - [style.color]="demoService.config.fgsColor" |
43 | | - fontIcon="mdi-palette" |
44 | | - fontSet="mdi" |
45 | | - ></mat-icon> |
| 43 | + [(colorPicker)]="demoService.config.fgsColor" |
| 44 | + [cpPosition]="'bottom'" |
| 45 | + [cpUseRootViewContainer]="true" |
| 46 | + (click)="$event.stopPropagation()" |
| 47 | + type="button" |
| 48 | + > |
| 49 | + <mat-icon |
| 50 | + [style.color]="demoService.config.fgsColor" |
| 51 | + fontIcon="mdi-palette" |
| 52 | + fontSet="mdi" |
| 53 | + ></mat-icon> |
| 54 | + </button> |
46 | 55 | </mat-form-field> |
47 | 56 |
|
48 | 57 | <mat-form-field> |
|
95 | 104 |
|
96 | 105 | <mat-form-field> |
97 | 106 | <input |
98 | | - [(colorPicker)]="demoService.config.overlayColor" |
99 | | - cpOutputFormat="rgba" |
100 | 107 | matInput |
101 | 108 | placeholder="Overlay Color (overlayColor)" |
102 | 109 | [(ngModel)]="demoService.config.overlayColor" |
| 110 | + readonly |
103 | 111 | /> |
104 | | - <mat-icon |
| 112 | + <button |
| 113 | + mat-icon-button |
105 | 114 | matSuffix |
106 | | - [style.color]="demoService.config.overlayColor" |
107 | | - fontIcon="mdi-palette" |
108 | | - fontSet="mdi" |
109 | | - ></mat-icon> |
| 115 | + [(colorPicker)]="demoService.config.overlayColor" |
| 116 | + cpOutputFormat="rgba" |
| 117 | + [cpPosition]="'bottom'" |
| 118 | + [cpUseRootViewContainer]="true" |
| 119 | + (click)="$event.stopPropagation()" |
| 120 | + type="button" |
| 121 | + > |
| 122 | + <mat-icon |
| 123 | + [style.color]="demoService.config.overlayColor" |
| 124 | + fontIcon="mdi-palette" |
| 125 | + fontSet="mdi" |
| 126 | + ></mat-icon> |
| 127 | + </button> |
110 | 128 | </mat-form-field> |
111 | 129 |
|
112 | 130 | <div style="margin-top: 21px; margin-bottom: 20px"> |
|
119 | 137 |
|
120 | 138 | <mat-form-field *ngIf="demoService.config.hasProgressBar"> |
121 | 139 | <input |
122 | | - [(colorPicker)]="demoService.config.pbColor" |
123 | 140 | matInput |
124 | 141 | placeholder="Progress Bar Color (pbColor)" |
125 | 142 | [(ngModel)]="demoService.config.pbColor" |
| 143 | + readonly |
126 | 144 | /> |
127 | | - <mat-icon |
| 145 | + <button |
| 146 | + mat-icon-button |
128 | 147 | matSuffix |
129 | | - [style.color]="demoService.config.pbColor" |
130 | | - fontIcon="mdi-palette" |
131 | | - fontSet="mdi" |
132 | | - ></mat-icon> |
| 148 | + [(colorPicker)]="demoService.config.pbColor" |
| 149 | + [cpPosition]="'bottom'" |
| 150 | + [cpUseRootViewContainer]="true" |
| 151 | + (click)="$event.stopPropagation()" |
| 152 | + type="button" |
| 153 | + > |
| 154 | + <mat-icon |
| 155 | + [style.color]="demoService.config.pbColor" |
| 156 | + fontIcon="mdi-palette" |
| 157 | + fontSet="mdi" |
| 158 | + ></mat-icon> |
| 159 | + </button> |
133 | 160 | </mat-form-field> |
134 | 161 |
|
135 | 162 | <div style="margin-top: 21px; margin-bottom: 20px"> |
|
176 | 203 | > |
177 | 204 | <mat-form-field> |
178 | 205 | <input |
179 | | - [(colorPicker)]="demoService.config.bgsColor" |
180 | 206 | matInput |
181 | 207 | placeholder="Background Spinner Color (bgsColor)" |
182 | 208 | [(ngModel)]="demoService.config.bgsColor" |
| 209 | + readonly |
183 | 210 | /> |
184 | | - <mat-icon |
| 211 | + <button |
| 212 | + mat-icon-button |
185 | 213 | matSuffix |
186 | | - [style.color]="demoService.config.bgsColor" |
187 | | - fontIcon="mdi-palette" |
188 | | - fontSet="mdi" |
189 | | - ></mat-icon> |
| 214 | + [(colorPicker)]="demoService.config.bgsColor" |
| 215 | + [cpPosition]="'bottom'" |
| 216 | + [cpUseRootViewContainer]="true" |
| 217 | + (click)="$event.stopPropagation()" |
| 218 | + type="button" |
| 219 | + > |
| 220 | + <mat-icon |
| 221 | + [style.color]="demoService.config.bgsColor" |
| 222 | + fontIcon="mdi-palette" |
| 223 | + fontSet="mdi" |
| 224 | + ></mat-icon> |
| 225 | + </button> |
190 | 226 | </mat-form-field> |
191 | 227 |
|
192 | 228 | <mat-form-field> |
|
300 | 336 |
|
301 | 337 | <mat-form-field *ngIf="demoService.config.text"> |
302 | 338 | <input |
303 | | - [(colorPicker)]="demoService.config.textColor" |
304 | 339 | matInput |
305 | 340 | placeholder="Loading Text Color (textColor)" |
306 | 341 | [(ngModel)]="demoService.config.textColor" |
| 342 | + readonly |
307 | 343 | /> |
308 | | - <mat-icon |
| 344 | + <div |
309 | 345 | matSuffix |
310 | | - [style.color]="demoService.config.textColor" |
311 | | - fontIcon="mdi-palette" |
312 | | - fontSet="mdi" |
313 | | - ></mat-icon> |
| 346 | + [(colorPicker)]="demoService.config.textColor" |
| 347 | + [cpPosition]="'bottom'" |
| 348 | + [cpUseRootViewContainer]="true" |
| 349 | + (click)="$event.stopPropagation()" |
| 350 | + > |
| 351 | + <button mat-icon-button type="button"> |
| 352 | + <mat-icon |
| 353 | + [style.color]="demoService.config.textColor" |
| 354 | + fontIcon="mdi-palette" |
| 355 | + fontSet="mdi" |
| 356 | + ></mat-icon> |
| 357 | + </button> |
| 358 | + </div> |
314 | 359 | </mat-form-field> |
315 | 360 | </div> |
316 | 361 | <!-- Background }}}--> |
317 | | - <div fxFlex="100" fxLayout="row wrap" fxLayoutAlign="center"> |
| 362 | + <div fxFlex="100" fxLayout="row wrap" fxLayoutAlign="center" fxLayoutGap="12px"> |
318 | 363 | <button mat-raised-button color="accent" (click)="reset()"> |
319 | 364 | Reset Configuration |
320 | 365 | </button> |
|
0 commit comments