style: use moon emoji for system theme command
This commit is contained in:
@@ -45,6 +45,7 @@ final class LauncherWindowController: NSWindowController, NSWindowDelegate, NSSe
|
||||
private static let emojiIcon = makeEmojiIcon("🤔")
|
||||
private static let notesIcon = makeEmojiIcon("📔")
|
||||
private static let translateIcon = makeEmojiIcon("🌏")
|
||||
private static let themeIcon = makeEmojiIcon("🌗")
|
||||
|
||||
private static func makeEmojiIcon(_ emoji: String) -> NSImage {
|
||||
let text = NSAttributedString(string: emoji, attributes: [.font: NSFont.systemFont(ofSize: 28)])
|
||||
@@ -566,13 +567,13 @@ final class LauncherWindowController: NSWindowController, NSWindowDelegate, NSSe
|
||||
cell.imageView?.image = Self.notesIcon
|
||||
cell.toolTip = "Write notes with Markdown and images"
|
||||
case .toggleTheme:
|
||||
cell.imageView?.image = NSImage(systemSymbolName: "circle.lefthalf.filled", accessibilityDescription: nil)
|
||||
cell.imageView?.image = Self.themeIcon
|
||||
cell.toolTip = "Switch macOS between light and dark appearance"
|
||||
default:
|
||||
cell.imageView?.image = Self.translateIcon
|
||||
cell.toolTip = "Translate English to Japanese"
|
||||
}
|
||||
cell.imageView?.contentTintColor = entry.command == .toggleTheme ? SunsetPalette.accent : nil
|
||||
cell.imageView?.contentTintColor = nil
|
||||
} else {
|
||||
let application = results[row]
|
||||
cell.textField?.stringValue = application.name
|
||||
|
||||
Reference in New Issue
Block a user