mirror of
https://github.com/bitgapp/eqMac.git
synced 2024-11-29 18:41:21 +03:00
Frequency labels are editabled - fixed
This commit is contained in:
parent
f21ee5c0fc
commit
c13a959e12
2
eqMac2/Source/EQViewController/EQViewController.mm
Normal file → Executable file
2
eqMac2/Source/EQViewController/EQViewController.mm
Normal file → Executable file
@ -117,6 +117,7 @@ CGFloat originalHeight;
|
||||
[label setAlignment: NSCenterTextAlignment];
|
||||
CGFloat fontSize = bandMode.intValue == 10 ? 9 : 7;
|
||||
[label setFont: [NSFont systemFontOfSize: fontSize]];
|
||||
[label setEditable:NO];
|
||||
[_bandFrequencyLabelsView addSubview:label];
|
||||
}
|
||||
}
|
||||
@ -138,6 +139,7 @@ CGFloat originalHeight;
|
||||
CGFloat gain = round([Utilities mapValue:[[gains objectAtIndex: index] floatValue] withInMin:-1 InMax:1 OutMin:-24 OutMax:24]);
|
||||
[label setStringValue: [NSString stringWithFormat:@"%@%.0f", gain > 0 ? @"+": @"", gain]];
|
||||
[label setAlignment: NSCenterTextAlignment];
|
||||
[label setEditable:NO];
|
||||
CGFloat fontSize = bandMode.intValue == 10 ? 9 : 7;
|
||||
[label setFont: [NSFont systemFontOfSize: fontSize]];
|
||||
[_bandGainLabelsView addSubview:label];
|
||||
|
Loading…
Reference in New Issue
Block a user