mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 11:35:35 +03:00
GH-222 Use constants of PrefStore
This commit is contained in:
parent
9f40b738f0
commit
56002e1600
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user