|
@@ -55,6 +55,8 @@ final class DrawPrintOverlayView: NSView, AppearanceRefreshable {
|
|
|
|
|
|
|
|
var onDismiss: (() -> Void)?
|
|
var onDismiss: (() -> Void)?
|
|
|
|
|
|
|
|
|
|
+ override var mouseDownCanMoveWindow: Bool { false }
|
|
|
|
|
+
|
|
|
private let backButton = DrawPrintToolbarButton(symbolName: "chevron.left", accessibilityLabel: "Back")
|
|
private let backButton = DrawPrintToolbarButton(symbolName: "chevron.left", accessibilityLabel: "Back")
|
|
|
private let titleLabel = NSTextField(labelWithString: "Blank Canvas")
|
|
private let titleLabel = NSTextField(labelWithString: "Blank Canvas")
|
|
|
private let canvasContainer = NSView()
|
|
private let canvasContainer = NSView()
|
|
@@ -247,6 +249,9 @@ final class DrawPrintOverlayView: NSView, AppearanceRefreshable {
|
|
|
// MARK: - Canvas View
|
|
// MARK: - Canvas View
|
|
|
|
|
|
|
|
final class BlankCanvasView: NSView, AppearanceRefreshable {
|
|
final class BlankCanvasView: NSView, AppearanceRefreshable {
|
|
|
|
|
+ override var isOpaque: Bool { true }
|
|
|
|
|
+ override var mouseDownCanMoveWindow: Bool { false }
|
|
|
|
|
+
|
|
|
var activeTool: CanvasTool = .draw {
|
|
var activeTool: CanvasTool = .draw {
|
|
|
didSet { needsDisplay = true }
|
|
didSet { needsDisplay = true }
|
|
|
}
|
|
}
|