Skip to content

Open source CapCut alternative.

TypeScript

fix(app): render the Record Screen menu glyph white, not red [rebuild]

David Le8f36ff8f8048
diff --git a/apps/Donkey/Sources/Donkey/DonkeyStatusItemController.swift b/apps/Donkey/Sources/Donkey/DonkeyStatusItemController.swift
index 1b0a2693..e09b68b8 100644
--- a/apps/Donkey/Sources/Donkey/DonkeyStatusItemController.swift
+++ b/apps/Donkey/Sources/Donkey/DonkeyStatusItemController.swift
@@ -101,13 +101,13 @@ final class DonkeyStatusItemController: NSObject, NSMenuDelegate {
return glyph
}
- /// A red record/stop SF Symbol for the "Record Screen" row. Not a template, so the red shows.
+ /// A record/stop SF Symbol for the "Record Screen" row, as a template so the menu draws it white
+ /// on the dark menu (and black on light) like the other rows, rather than a standout red.
private static func recordMenuIcon(symbolName: String) -> NSImage? {
let configuration = NSImage.SymbolConfiguration(pointSize: 13, weight: .regular)
- .applying(NSImage.SymbolConfiguration(paletteColors: [.systemRed]))
let image = NSImage(systemSymbolName: symbolName, accessibilityDescription: nil)?
.withSymbolConfiguration(configuration)
- image?.isTemplate = false
+ image?.isTemplate = true
return image
}