1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 08:43:26 +03:00

GH-222 Use constants of PrefStore

This commit is contained in:
Tae Won Ha 2016-07-28 19:41:55 +02:00
parent 9f40b738f0
commit 56002e1600
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -83,13 +83,15 @@ extension MainWindowComponent {
@IBAction func makeFontBigger(sender: AnyObject!) {
let curFont = self.neoVimView.font
let font = self.fontManager.convertFont(curFont, toSize: min(curFont.pointSize + 1, 128))
let font = self.fontManager.convertFont(curFont,
toSize: min(curFont.pointSize + 1, PrefStore.maximumEditorFontSize))
self.neoVimView.font = font
}
@IBAction func makeFontSmaller(sender: AnyObject!) {
let curFont = self.neoVimView.font
let font = self.fontManager.convertFont(curFont, toSize: max(curFont.pointSize - 1, 4))
let font = self.fontManager.convertFont(curFont,
toSize: max(curFont.pointSize - 1, PrefStore.minimumEditorFontSize))
self.neoVimView.font = font
}
}