Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

943 B
Raw Blame
// SPDX-License-Identifier: FSL-1.1-MIT
// Copyright (c) 2026 Cua AI, Inc.

import AppKit
import Foundation

/// The Cua key: the app icon's keycap with the Cua mark, on its own
/// (apps/cua-spaces-macos/scripts/dmg-art/key.html). The icon of Cua's own
/// notifications, in place of a colored tile; unread stays with the text.
public enum CuaKey {
    public static let image: NSImage? = {
        guard let url = url else { return nil }
        return NSImage(contentsOf: url)
    }()

    /// The key's PNG in the module's resources.
    public static var url: URL? { ModuleResources.url(forResource: "cua-key", withExtension: "png") }
}

/// The stacked Cua mark (generated by apps/cua-spaces/scripts/icons).
public enum StackMark {
    public static let image: NSImage? = {
        guard let url = ModuleResources.url(forResource: "stack-mark", withExtension: "svg") else { return nil }
        return NSImage(contentsOf: url)
    }()
}