touch-bar-simulator/Touch Bar Simulator/Constants.swift
2019-03-06 14:41:36 +07:00

13 lines
469 B
Swift

import Foundation
import Defaults
struct Constants {
static let windowAutosaveName = "TouchBarWindow"
}
extension Defaults.Keys {
static let windowTransparency = Key<Double>("windowTransparency", default: 0.75)
static let windowDocking = Key<TouchBarWindow.Docking>("windowDocking", default: .floating)
static let showOnAllDesktops = Key<Bool>("showOnAllDesktops", default: false)
static let lastFloatingPosition = OptionalKey<CGPoint>("lastFloatingPosition")
}