From ff63e31f4c9fd164dbf8357749e9904761d6ba8e Mon Sep 17 00:00:00 2001 From: igor Date: Sun, 18 Jan 2026 09:35:16 -0800 Subject: [PATCH] Search now adds a background highlight to searched items. --- src/ProgramsTable.swift | 2 +- src/SearchViewController.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ProgramsTable.swift b/src/ProgramsTable.swift index eeec391..b7cf361 100644 --- a/src/ProgramsTable.swift +++ b/src/ProgramsTable.swift @@ -54,7 +54,7 @@ class ProgramsTableViewCell: NSTableCellView { field.isBordered = false field.drawsBackground = false field.lineBreakMode = .byTruncatingTail - field.textColor = NSColor.secondaryLabelColor + field.textColor = NSColor.textColor field.translatesAutoresizingMaskIntoConstraints = false return field }() diff --git a/src/SearchViewController.swift b/src/SearchViewController.swift index b0c6f21..9e6ff6b 100644 --- a/src/SearchViewController.swift +++ b/src/SearchViewController.swift @@ -480,9 +480,9 @@ class SearchViewController: NSViewController, NSTextFieldDelegate, ) let attributedString = NSMutableAttributedString(string: app) attributedString - .addAttributes([.foregroundColor: NSColor.labelColor], - range: rangeToHighlight) - + .addAttributes([.backgroundColor: + NSColor.systemYellow.withAlphaComponent(0.5)], + range: rangeToHighlight) cell.titleField.attributedStringValue = attributedString cell.progPathLabel.stringValue = program.path cell.appIconImage.image = program.img