Commit 355b6bf0 authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

[Mac Task Manager] Force tasks to be in black.

Bug: 1018333
Change-Id: I862c55482fabcdb1e8618f316969937957f1e9b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1880546
Auto-Submit: Avi Drissman <avi@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Reviewed-by: default avatarLeonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709661}
parent d0b28f37
...@@ -555,11 +555,14 @@ bool ShouldUseViewsTaskManager() { ...@@ -555,11 +555,14 @@ bool ShouldUseViewsTaskManager() {
NSButtonCell* buttonCell = static_cast<NSButtonCell*>(cell); NSButtonCell* buttonCell = static_cast<NSButtonCell*>(cell);
NSString* title = [self modelTextForRow:rowIndex NSString* title = [self modelTextForRow:rowIndex
column:[[tableColumn identifier] intValue]]; column:[[tableColumn identifier] intValue]];
[buttonCell setTitle:title]; buttonCell.attributedTitle = [[[NSAttributedString alloc]
[buttonCell initWithString:title
setImage:taskManagerMac_->GetImageForRow(viewToModelMap_[rowIndex])]; attributes:@{NSForegroundColorAttributeName : [NSColor blackColor]}]
[buttonCell setRefusesFirstResponder:YES]; // Don't push in like a button. autorelease];
[buttonCell setHighlightsBy:NSNoCellMask]; buttonCell.image =
taskManagerMac_->GetImageForRow(viewToModelMap_[rowIndex]);
buttonCell.refusesFirstResponder = YES; // Don't push in like a button.
buttonCell.highlightsBy = NSNoCellMask;
} }
return cell; return cell;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment