You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
To set an icon, use i.e. `buttonName.setFAIcon(FAType.FAGithub)`
*/
func setFAIcon(icon: FAType) {
FontLoader.loadFontIfNeeded()
let font = NSFont(name: FAStruct.FontName, size: FAFontSize())
assert(font != nil, FAStruct.ErrorAnnounce)
self.title = icon.text!
(self.cell as! NSButtonCell).font = font!
}
}
public extension NSSegmentedControl {
public func setFAIcon(icon: FAType, forSegmentAtIndex segment: Int) {
FontLoader.loadFontIfNeeded()
let font = NSFont(name: FAStruct.FontName, size: FAFontSize())
assert(font != nil, FAStruct.ErrorAnnounce)
self.font = font
setLabel(icon.text!, forSegment: segment)
}
Any reason this doesn't support OS X apps?
The text was updated successfully, but these errors were encountered: