Skip to content

Commit

Permalink
Update icon to monochrome design to match Safari styles
Browse files Browse the repository at this point in the history
  • Loading branch information
workwithnano committed Feb 22, 2024
1 parent b786c19 commit bc6448d
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 5 deletions.
8 changes: 5 additions & 3 deletions safari/Universal/Kagi Search.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
3E1A51362B1734B70010A4C4 /* Kagi Search Extension iOS.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 3ED5D48F2B0DE087009DDDAD /* Kagi Search Extension iOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
3E1A513B2B180B890010A4C4 /* UpgradeChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E1A513A2B180B890010A4C4 /* UpgradeChecker.swift */; };
3E1A513C2B180CBE0010A4C4 /* UpgradeChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E1A513A2B180B890010A4C4 /* UpgradeChecker.swift */; };
3E7B281A2B86D220005EB620 /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 3E7B28192B86D220005EB620 /* manifest.json */; };
3E9DF5082B3E3E70005DF2C3 /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 3ED5D55B2B0DE720009DDDAD /* manifest.json */; };
3E9DF5092B3E3E71005DF2C3 /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 3ED5D55B2B0DE720009DDDAD /* manifest.json */; };
3EB8FA422B61F6740052E8D4 /* Deeplinks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3EB8FA412B61F6740052E8D4 /* Deeplinks.swift */; };
3EB8FA432B61F6740052E8D4 /* Deeplinks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3EB8FA412B61F6740052E8D4 /* Deeplinks.swift */; };
3EB8FA472B6231DC0052E8D4 /* Settings_Animation_dark.gif in Resources */ = {isa = PBXBuildFile; fileRef = 3EB8FA452B6231DB0052E8D4 /* Settings_Animation_dark.gif */; };
Expand Down Expand Up @@ -133,6 +133,7 @@

/* Begin PBXFileReference section */
3E1A513A2B180B890010A4C4 /* UpgradeChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpgradeChecker.swift; sourceTree = "<group>"; };
3E7B28192B86D220005EB620 /* manifest.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = manifest.json; sourceTree = "<group>"; };
3EB8FA412B61F6740052E8D4 /* Deeplinks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Deeplinks.swift; sourceTree = "<group>"; };
3EB8FA452B6231DB0052E8D4 /* Settings_Animation_dark.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = Settings_Animation_dark.gif; sourceTree = "<group>"; };
3EB8FA462B6231DB0052E8D4 /* Settings_Animation_light.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = Settings_Animation_light.gif; sourceTree = "<group>"; };
Expand Down Expand Up @@ -341,7 +342,6 @@
3ED5D5552B0DE720009DDDAD /* popup.js */,
3ED5D5562B0DE720009DDDAD /* background.js */,
3ED5D55A2B0DE720009DDDAD /* popup.html */,
3ED5D55B2B0DE720009DDDAD /* manifest.json */,
3ED5D55C2B0DE720009DDDAD /* popup.css */,
);
path = Resources;
Expand All @@ -350,6 +350,7 @@
3ED5D5772B0DE75F009DDDAD /* iOS (Extension) */ = {
isa = PBXGroup;
children = (
3ED5D55B2B0DE720009DDDAD /* manifest.json */,
3ED5D4C92B0DE324009DDDAD /* Kagi Search Extension (iOS).entitlements */,
3ED5D5782B0DE75F009DDDAD /* Info.plist */,
);
Expand All @@ -359,6 +360,7 @@
3ED5D5792B0DE75F009DDDAD /* macOS (Extension) */ = {
isa = PBXGroup;
children = (
3E7B28192B86D220005EB620 /* manifest.json */,
3ED5D57A2B0DE75F009DDDAD /* Kagi Search Extension (macOS).entitlements */,
3ED5D57B2B0DE75F009DDDAD /* Info.plist */,
3E1A513A2B180B890010A4C4 /* UpgradeChecker.swift */,
Expand Down Expand Up @@ -599,9 +601,9 @@
buildActionMask = 2147483647;
files = (
3ED5D5722B0DE720009DDDAD /* popup.css in Resources */,
3E9DF5092B3E3E71005DF2C3 /* manifest.json in Resources */,
3ED5D58F2B0DFC34009DDDAD /* _locales in Resources */,
3ED5D56E2B0DE720009DDDAD /* popup.html in Resources */,
3E7B281A2B86D220005EB620 /* manifest.json in Resources */,
3ED5D5682B0DE720009DDDAD /* background.js in Resources */,
3ED5D5922B0DFC81009DDDAD /* images in Resources */,
3ED5D5662B0DE720009DDDAD /* popup.js in Resources */,
Expand Down
4 changes: 2 additions & 2 deletions safari/Universal/Shared (Extension)/Resources/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,12 @@ function getPreferencesFromStorage(callback) {
browser.storage.local.get(["kagiPrivateSessionLink","kagiEngineToRedirect"], function(value) {
// Private session link
var link = value.kagiPrivateSessionLink;
if (typeof (link) !== "undefined") {
if (typeof (link) == "string") {
updatePrivateSessionLink(link);
}
// Engine to redirect
var engine = value.kagiEngineToRedirect;
if (typeof (engine) !== "undefined") {
if (typeof (engine) == "string") {
if (engine == "All" || supportedEngineNames.indexOf(engine) < 0) {
currentEngine = defaultEngineToRedirect; // default to redirecting Google
} else {
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions safari/Universal/macOS (Extension)/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"manifest_version": 2,
"default_locale": "en",

"name": "__MSG_extension_name__",
"description": "__MSG_extension_description__",
"version": "2.2.2",

"icons": {
"512": "images/Icon.png"
},

"background": {
"scripts": [
"background.js"
],
"persistent": false
},

"browser_action": {
"default_popup": "popup.html",
"default_icon": {
"128": "images/ToolbarItemIcon.pdf"
}
},

"permissions": [
"nativeMessaging",
"webNavigation",
"storage"
],

"optional_permissions": []
}

0 comments on commit bc6448d

Please sign in to comment.