From 57c3c64e71ae156855f8b6c84cd71d7d692a8b0a Mon Sep 17 00:00:00 2001 From: Mike Vink <59492084+ivi-vink@users.noreply.github.com> Date: Mon, 20 Jan 2025 20:45:21 +0100 Subject: Squashed 'mut/keuze/' content from commit 720bb27 git-subtree-dir: mut/keuze git-subtree-split: 720bb270aeb006ec2f3ca1104e78785de31f2630 --- kies/PromptText.swift | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 kies/PromptText.swift (limited to 'kies/PromptText.swift') 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") + } +} -- cgit v1.2.3