//
//  NSTextField+Extension.swift
//  PrismUI
//
//  Created by Erik Bautista on 8/14/20.
//  Copyright © 2020 ErrorErrorError. All rights reserved.
//

import Cocoa

extension NSTextField {

    func setupTextField() {
        self.drawsBackground = false
        self.isEditable = true
        self.isBordered = false
        self.isBezeled = false
        self.font = NSFont.boldSystemFont(ofSize: 14)
        self.refusesFirstResponder = true
        self.setContentHuggingPriority(.defaultHigh, for: .horizontal)
    }

    func setupLabel() {
        self.textColor = NSColor.secondaryLabelColor
        self.font = NSFont.systemFont(ofSize: 14)
        self.setContentHuggingPriority(.defaultHigh, for: .horizontal)
    }
}
