Skip to content

Commit ad534e8

Browse files
committed
Fixed an issue where the font size would change on the analytics link
1 parent f623a4b commit ad534e8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Simplenote/Preferences.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19455" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19162"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19455"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<scenes>

Simplenote/PreferencesViewController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,11 @@ private struct Strings {
320320
static let linkText = NSLocalizedString("About Analytics and Privacy", comment: "A link to more information about our privacy policy")
321321
static func privacyLink() -> NSMutableAttributedString {
322322
let link = NSMutableAttributedString(string: linkText)
323-
link.addAttribute(.link, value: "https://automattic.com/privacy/", range: link.fullRange)
323+
324+
link.addAttributes([
325+
.link : "https://automattic.com/privacy/",
326+
.font : NSFont.systemFont(ofSize: 13)
327+
], range: link.fullRange)
324328

325329
return link
326330
}

0 commit comments

Comments
 (0)