Skip to content

Commit 9ca4f58

Browse files
committed
Fix the message sheet text being black on a dark-ish background
1 parent 181b14c commit 9ca4f58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Classes/Views/PBGitXMessageSheet.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ - (void)beginMessageSheetWithMessageText:(NSString *)message
128128

129129
- (void)setInfoString:(NSString *)info
130130
{
131-
NSDictionary *attributes = [NSDictionary dictionaryWithObject:[NSFont labelFontOfSize:[NSFont smallSystemFontSize]]
132-
forKey:NSFontAttributeName];
131+
NSDictionary *attributes = @{NSFontAttributeName: [NSFont labelFontOfSize:[NSFont smallSystemFontSize]],
132+
NSForegroundColorAttributeName: [NSColor textColor],
133+
};
133134
NSAttributedString *attributedInfoString = [[NSAttributedString alloc] initWithString:info attributes:attributes];
134135
[[self.infoView textStorage] setAttributedString:attributedInfoString];
135136
}

0 commit comments

Comments
 (0)