summaryrefslogtreecommitdiff
path: root/kies/PromptText.swift
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-20 20:45:21 +0100
committerMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-20 20:45:21 +0100
commit57c3c64e71ae156855f8b6c84cd71d7d692a8b0a (patch)
treee3b25d811a89570b6a3ef880aa0e8992069c5773 /kies/PromptText.swift
Squashed 'mut/keuze/' content from commit 720bb27
git-subtree-dir: mut/keuze git-subtree-split: 720bb270aeb006ec2f3ca1104e78785de31f2630
Diffstat (limited to 'kies/PromptText.swift')
-rw-r--r--kies/PromptText.swift28
1 files changed, 28 insertions, 0 deletions
diff --git a/kies/PromptText.swift b/kies/PromptText.swift
new file mode 100644
index 0000000..7cd6750
--- /dev/null
+++ b/kies/PromptText.swift
@@ -0,0 +1,28 @@
+//
+// KiesPromptText.swift
+// kies
+//
+// Created by Thomas Billiet on 08/04/2019.
+// Copyright © 2019 Thomas Billiet. All rights reserved.
+//
+
+import Foundation
+import Cocoa
+
+class PromptText: NSTextField {
+ init(text: String) {
+ super.init(frame: layouts.promptRect)
+ stringValue = text
+ isEditable = false
+ drawsBackground = false
+ isSelectable = false
+ bezelStyle = .squareBezel
+ font = settings.font
+ isBordered = false
+ autoresizingMask = [NSView.AutoresizingMask.width]
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+}