Skip to content

Commit

Permalink
Add AppIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
yihyunjoon committed Jan 9, 2023
1 parent 69d1e9c commit 1c741b2
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 29 deletions.
18 changes: 12 additions & 6 deletions Click to Look Up.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
objects = {

/* Begin PBXBuildFile section */
D30F3F9D296C2A030001DA1F /* Credits.html in Resources */ = {isa = PBXBuildFile; fileRef = D30F3F9C296C2A030001DA1F /* Credits.html */; };
D3DF77632968B5F400BB4289 /* LaunchAtLogin in Frameworks */ = {isa = PBXBuildFile; productRef = D3DF77622968B5F400BB4289 /* LaunchAtLogin */; };
D3DF77652968BCD700BB4289 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3DF77642968BCD700BB4289 /* SettingsView.swift */; };
D3FF8D8D2967E3EE00097EB6 /* ClickToLookUpApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3FF8D8C2967E3EE00097EB6 /* ClickToLookUpApp.swift */; };
D3FF8D8F2967E3EE00097EB6 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3FF8D8E2967E3EE00097EB6 /* ContentView.swift */; };
D3FF8D912967E3EF00097EB6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D3FF8D902967E3EF00097EB6 /* Assets.xcassets */; };
D3FF8D942967E3EF00097EB6 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D3FF8D932967E3EF00097EB6 /* Preview Assets.xcassets */; };
D3FF8D9C2968599F00097EB6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3FF8D9B2968599F00097EB6 /* AppDelegate.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
D30F3F9C296C2A030001DA1F /* Credits.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = Credits.html; sourceTree = "<group>"; };
D3DF77642968BCD700BB4289 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
D3FF8D892967E3EE00097EB6 /* Click to Look Up.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Click to Look Up.app"; sourceTree = BUILT_PRODUCTS_DIR; };
D3FF8D8C2967E3EE00097EB6 /* ClickToLookUpApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClickToLookUpApp.swift; sourceTree = "<group>"; };
D3FF8D8E2967E3EE00097EB6 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
D3FF8D902967E3EF00097EB6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
D3FF8D932967E3EF00097EB6 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
D3FF8D952967E3EF00097EB6 /* ClickToLookUp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ClickToLookUp.entitlements; sourceTree = "<group>"; };
Expand Down Expand Up @@ -61,10 +61,10 @@
D3DF77642968BCD700BB4289 /* SettingsView.swift */,
D3FF8D9B2968599F00097EB6 /* AppDelegate.swift */,
D3FF8D8C2967E3EE00097EB6 /* ClickToLookUpApp.swift */,
D3FF8D8E2967E3EE00097EB6 /* ContentView.swift */,
D3FF8D902967E3EF00097EB6 /* Assets.xcassets */,
D3FF8D952967E3EF00097EB6 /* ClickToLookUp.entitlements */,
D3FF8D922967E3EF00097EB6 /* Preview Content */,
D30F3F9C296C2A030001DA1F /* Credits.html */,
);
path = ClickToLookUp;
sourceTree = "<group>";
Expand Down Expand Up @@ -142,6 +142,7 @@
buildActionMask = 2147483647;
files = (
D3FF8D942967E3EF00097EB6 /* Preview Assets.xcassets in Resources */,
D30F3F9D296C2A030001DA1F /* Credits.html in Resources */,
D3FF8D912967E3EF00097EB6 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -155,7 +156,6 @@
files = (
D3FF8D9C2968599F00097EB6 /* AppDelegate.swift in Sources */,
D3DF77652968BCD700BB4289 /* SettingsView.swift in Sources */,
D3FF8D8F2967E3EE00097EB6 /* ContentView.swift in Sources */,
D3FF8D8D2967E3EE00097EB6 /* ClickToLookUpApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -213,7 +213,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 13.1;
MACOSX_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -267,7 +267,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 13.1;
MACOSX_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
Expand All @@ -281,7 +281,9 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_ENTITLEMENTS = ClickToLookUp/ClickToLookUp.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
Expand All @@ -291,6 +293,7 @@
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = "Click to Look Up";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -310,7 +313,9 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_ENTITLEMENTS = ClickToLookUp/ClickToLookUp.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
Expand All @@ -320,6 +325,7 @@
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = "Click to Look Up";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions ClickToLookUp/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,61 @@
{
"images" : [
{
"filename" : "ClickToLookUp-16.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "ClickToLookUp-32.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "ClickToLookUp-32.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "ClickToLookUp-64.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "ClickToLookUp-128.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "ClickToLookUp-256.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "ClickToLookUp-256.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "ClickToLookUp-512.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "ClickToLookUp-512.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "ClickToLookUp-1024.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
Expand Down
9 changes: 7 additions & 2 deletions ClickToLookUp/ClickToLookUpApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@ import Cocoa
@main
struct ClickToLookUpApp: App {
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
let appName = "Click to Look Up"

var body: some Scene {
MenuBarExtra("Click to Look Up App", systemImage: "character.book.closed.fill") {
MenuBarExtra("\(appName) App", systemImage: "character.book.closed.fill") {
Button("About \(appName)") {
NSApp.orderFrontStandardAboutPanel()
NSApp.activate(ignoringOtherApps: true)
}
Button("Settings...") {
NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil)
NSApp.activate(ignoringOtherApps: true)
}.keyboardShortcut(",")
Divider()
Button("Quit Click to Look Up") {
Button("Quit") {
NSApplication.shared.terminate(nil)
}.keyboardShortcut("q")
}
Expand Down
21 changes: 0 additions & 21 deletions ClickToLookUp/ContentView.swift

This file was deleted.

8 changes: 8 additions & 0 deletions ClickToLookUp/Credits.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div style="font-family: sans-serif; text-align: center;">
<a href="https://github.com/tobark/Click-to-Look-Up">code</a>
<br />
<br />
<div style ="font-size: small;">
Yi Hyunjoon
</div>
</div>

0 comments on commit 1c741b2

Please sign in to comment.