Skip to content

Commit 8c16f07

Browse files
committed
added iconSize to additional preset options
1 parent 382088a commit 8c16f07

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

ui/src/app/sections/effects/equalizers/presets/equalizer-presets.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<div class="button-container" *ngIf="additionalLeftOption">
55
<eqm-button
6-
size="square" [height]="20" [width]="20" [disabled]="disabled"
6+
size="square" [height]="additionalLeftOption.iconSize || 20" [width]="additionalLeftOption.iconSize || 20" [disabled]="disabled"
77
(pressed)="additionalLeftOption.action()"
88
[eqmTooltip]="additionalLeftOption.tooltip">
99
<eqm-icon [name]="additionalLeftOption.icon" [width]="10" [height]="10" [stroke]="2"></eqm-icon>
@@ -38,7 +38,7 @@
3838

3939
<div class="button-container" *ngIf="additionalRightOption">
4040
<eqm-button
41-
size="square" [height]="20" [width]="20" [disabled]="disabled"
41+
size="square" [height]="additionalRightOption.iconSize || 20" [width]="additionalRightOption.iconSize || 20" [disabled]="disabled"
4242
(pressed)="additionalRightOption.action()"
4343
[eqmTooltip]="additionalRightOption.tooltip">
4444
<eqm-icon [name]="additionalRightOption.icon" [width]="10" [height]="10" [stroke]="2"></eqm-icon>

ui/src/app/sections/effects/equalizers/presets/equalizer-presets.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export interface EqualizerPreset {
1313
export interface AdditionalPresetOption {
1414
tooltip: string
1515
icon: IconName
16+
iconSize?: number
1617
action: () => void | Promise<void>
1718
}
1819

0 commit comments

Comments
 (0)