style: use emoji icons for Notes and Translate

This commit is contained in:
2026-10-17 21:15:02 +02:00
parent 378cad4bf1
commit b847a483f0
3 changed files with 15 additions and 10 deletions
+3 -2
View File
@@ -2,13 +2,14 @@ import AppKit
import Testing
@testable import Conjure
@Test @MainActor func emojiCommandArtworkHasBalancedVisiblePadding() throws {
@Test(arguments: ["emoji", "notes", "translate"])
@MainActor func commandArtworkHasBalancedVisiblePadding(query: String) throws {
_ = NSApplication.shared
let launcher = LauncherWindowController()
func descendants(_ view: NSView) -> [NSView] { [view] + view.subviews.flatMap(descendants) }
let views = descendants(try #require(launcher.window?.contentView))
let search = try #require(views.compactMap { $0 as? NSSearchField }.first)
search.stringValue = "emoji"
search.stringValue = query
launcher.controlTextDidChange(Notification(name: NSControl.textDidChangeNotification, object: search))
let table = try #require(views.compactMap { $0 as? NSTableView }.first)
let cell = try #require(launcher.tableView(table, viewFor: nil, row: 0) as? ApplicationCell)