Set "Current Time" toolbar item to use MonospacedDigitTextFieldCell.

This commit is contained in:
Jan Weiß 2021-05-05 12:07:30 +02:00
parent 056b1f569d
commit 22dc76c159
2 changed files with 1 additions and 7 deletions

View file

@ -414,7 +414,7 @@
<textField key="view" verticalHuggingPriority="750" id="1566" customClass="TimeField">
<rect key="frame" x="8" y="14" width="61" height="22"/>
<autoresizingMask key="autoresizingMask"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" borderStyle="bezel" alignment="center" title="0:00" usesSingleLineMode="YES" bezelStyle="round" id="1567">
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" borderStyle="bezel" alignment="center" title="0:00" usesSingleLineMode="YES" bezelStyle="round" id="1567" customClass="MonospacedDigitTextFieldCell">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>

View file

@ -66,12 +66,6 @@ NSString * timeStringForTimeInterval(NSTimeInterval timeInterval, BOOL enforceMi
- (void)awakeFromNib
{
showTimeRemaining = [[NSUserDefaults standardUserDefaults] boolForKey:kTimerModeKey];
if (@available(macOS 10.11, *)) {
fontAttributes =
@{NSFontAttributeName : [NSFont monospacedDigitSystemFontOfSize:13
weight:NSFontWeightRegular]};
[self update];
}
}
- (void)update