Add Pixel eye logic. Can comparison with 2 image and monitor

This commit is contained in:
Siyi Guo committed 2023-04-12 20:13:37 +08:00
1 parent da7cb5ea23
commit e8bd345be6
22 files changed
+993 -73

No files matched your search

+17
View File
@@ -2,12 +2,29 @@ import Cocoa
import FlutterMacOS
class MainFlutterWindow: NSWindow {
//
// override init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool) {
// super.init(contentRect: contentRect, styleMask: style, backing: backingStoreType, defer: flag)
//
//
// self.isOpaque = false
// self.hasShadow = false
// self.backgroundColor = NSColor(red: 1, green: 0.5, blue: 0.5, alpha: 0.5)
// // Change the title bar appereance
// self.title = "My Custom Title"
// //self.titleVisibility = .hidden
// self.titlebarAppearsTransparent = true
//
// }
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
let windowFrame = self.frame
// self.isOpaque = false
// self.backgroundColor = NSColor(red: 1, green: 0.5, blue: 0.5, alpha: 0.5)
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
RegisterGeneratedPlugins(registry: flutterViewController)
super.awakeFromNib()