Skip to content

Commit

Permalink
- Fixes icons size on macOS 10.14
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed May 26, 2024
1 parent 1dc77b8 commit dba227a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions FSNotes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4556,7 +4556,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 623;
CURRENT_PROJECT_VERSION = 625;
DEVELOPMENT_TEAM = 866P6MTE92;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -4573,7 +4573,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 6.7.3;
MARKETING_VERSION = 6.8.0;
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = co.fluder.FSNotes;
PRODUCT_NAME = FSNotes;
Expand All @@ -4596,7 +4596,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 623;
CURRENT_PROJECT_VERSION = 625;
DEPLOYMENT_LOCATION = NO;
DEVELOPMENT_TEAM = 866P6MTE92;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
Expand All @@ -4614,7 +4614,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 6.7.3;
MARKETING_VERSION = 6.8.0;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = co.fluder.FSNotes;
PRODUCT_NAME = FSNotes;
Expand Down
6 changes: 3 additions & 3 deletions FSNotes/View/NoteCellView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class NoteCellView: NSTableCellView {
pin.image = NSImage(named: "web")
pin.image?.isTemplate = true
pin.contentTintColor = .controlAccentColor
pin.image?.size = NSSize(width: 14, height: 14)
pin.image?.size = NSSize(width: 20, height: 20)
}

pin.isHidden = false
Expand All @@ -210,7 +210,7 @@ class NoteCellView: NSTableCellView {
pin.image = NSImage(named: name)
pin.contentTintColor = .controlAccentColor
pin.image?.isTemplate = true
pin.image?.size = NSSize(width: 14, height: 14)
pin.image?.size = NSSize(width: 20, height: 20)
}
pin.isHidden = false
} else {
Expand All @@ -222,7 +222,7 @@ class NoteCellView: NSTableCellView {
pin.image = NSImage(named: "pin")
pin.image?.isTemplate = true
pin.contentTintColor = .controlAccentColor
pin.image?.size = NSSize(width: 14, height: 14)
pin.image?.size = NSSize(width: 20, height: 20)
}

pin.isHidden = !note.isPinned
Expand Down
2 changes: 1 addition & 1 deletion FSNotes/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class ViewController: EditorViewController,

newNoteButton.image = image?.withSymbolConfiguration(config)
} else {
newNoteButton.image = NSImage(imageLiteralResourceName: "new_note_button").resize(to: CGSize(width: 30, height: 30))
newNoteButton.image = NSImage(imageLiteralResourceName: "new_note_button").resize(to: CGSize(width: 20, height: 20))
}

storage.restoreUploadPaths()
Expand Down

0 comments on commit dba227a

Please sign in to comment.