From dede8d3fb55693170402ff38c284d4a3d6456280 Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Thu, 30 Apr 2026 02:38:02 +0700 Subject: [PATCH] fix(datagrid): use SF Symbol for sort chevron --- TablePro/Views/Results/SortableHeaderCell.swift | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/TablePro/Views/Results/SortableHeaderCell.swift b/TablePro/Views/Results/SortableHeaderCell.swift index d6460b26a..0cd235051 100644 --- a/TablePro/Views/Results/SortableHeaderCell.swift +++ b/TablePro/Views/Results/SortableHeaderCell.swift @@ -79,12 +79,11 @@ final class SortableHeaderCell: NSTableHeaderCell { } private static func indicatorImage(for direction: SortDirection) -> NSImage? { - switch direction { - case .ascending: - return NSImage(named: NSImage.Name("NSAscendingSortIndicator")) - case .descending: - return NSImage(named: NSImage.Name("NSDescendingSortIndicator")) - } + let symbolName = direction == .ascending ? "chevron.up" : "chevron.down" + let config = NSImage.SymbolConfiguration(pointSize: priorityFontSize, weight: .semibold) + .applying(.init(paletteColors: [.secondaryLabelColor])) + return NSImage(systemSymbolName: symbolName, accessibilityDescription: nil)? + .withSymbolConfiguration(config) } private static func drawTintedIndicator(image: NSImage?, in rect: NSRect) {