Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aeilot committed Aug 25, 2020
1 parent ac277d0 commit d8b5348
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

/* Class = "NSTextFieldCell"; title = "GitHubDarkMode Extension"; ObjectID = "2Ec-kd-q2K"; */
"2Ec-kd-q2K.title" = "GitHubDarkMode Extension";
7 changes: 7 additions & 0 deletions GitHubDarkMode.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
BF4F7E1224F4C33E009EF13B /* script.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = script.js; sourceTree = "<group>"; };
BF4F7E1424F4C33E009EF13B /* ToolbarItemIcon.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = ToolbarItemIcon.pdf; sourceTree = "<group>"; };
BF4F7E1624F4C33E009EF13B /* GitHubDarkMode_Extension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = GitHubDarkMode_Extension.entitlements; sourceTree = "<group>"; };
BFCCD0FE24F4CDA500826EBB /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Main.strings"; sourceTree = "<group>"; };
BFCCD0FF24F4CDA500826EBB /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/SafariExtensionViewController.strings"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -201,6 +203,7 @@
knownRegions = (
en,
Base,
"zh-Hans",
);
mainGroup = BF4F7DE624F4C33D009EF13B;
productRefGroup = BF4F7DF024F4C33D009EF13B /* Products */;
Expand Down Expand Up @@ -270,6 +273,7 @@
isa = PBXVariantGroup;
children = (
BF4F7DF724F4C33D009EF13B /* Base */,
BFCCD0FE24F4CDA500826EBB /* zh-Hans */,
);
name = Main.storyboard;
sourceTree = "<group>";
Expand All @@ -278,6 +282,7 @@
isa = PBXVariantGroup;
children = (
BF4F7E0F24F4C33E009EF13B /* Base */,
BFCCD0FF24F4CDA500826EBB /* zh-Hans */,
);
name = SafariExtensionViewController.xib;
sourceTree = "<group>";
Expand All @@ -289,6 +294,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
Expand Down Expand Up @@ -349,6 +355,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BF4F7E0124F4C33E009EF13B"
BuildableName = "GitHubDarkMode Extension.appex"
BlueprintName = "GitHubDarkMode Extension"
ReferencedContainer = "container:GitHubDarkMode.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BF4F7DEE24F4C33D009EF13B"
BuildableName = "GitHubDarkMode.app"
BlueprintName = "GitHubDarkMode"
ReferencedContainer = "container:GitHubDarkMode.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
askForAppToLaunch = "Yes"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<RemoteRunnable
runnableDebuggingMode = "0"
BundleIdentifier = "com.apple.Safari"
RemotePath = "/Applications/Safari.app">
</RemoteRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BF4F7DEE24F4C33D009EF13B"
BuildableName = "GitHubDarkMode.app"
BlueprintName = "GitHubDarkMode"
ReferencedContainer = "container:GitHubDarkMode.xcodeproj">
</BuildableReference>
</MacroExpansion>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BF4F7DEE24F4C33D009EF13B"
BuildableName = "GitHubDarkMode.app"
BlueprintName = "GitHubDarkMode"
ReferencedContainer = "container:GitHubDarkMode.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BF4F7DEE24F4C33D009EF13B"
BuildableName = "GitHubDarkMode.app"
BlueprintName = "GitHubDarkMode"
ReferencedContainer = "container:GitHubDarkMode.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BF4F7DEE24F4C33D009EF13B"
BuildableName = "GitHubDarkMode.app"
BlueprintName = "GitHubDarkMode"
ReferencedContainer = "container:GitHubDarkMode.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BF4F7DEE24F4C33D009EF13B"
BuildableName = "GitHubDarkMode.app"
BlueprintName = "GitHubDarkMode"
ReferencedContainer = "container:GitHubDarkMode.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
16 changes: 8 additions & 8 deletions GitHubDarkMode/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
<application id="hnw-xV-0zn" sceneMemberID="viewController">
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
<items>
<menuItem title="GitHubDarkMode" id="1Xt-HY-uBw">
<menuItem title="GitHub Dark Mode" id="1Xt-HY-uBw">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="GitHubDarkMode" systemMenu="apple" id="uQy-DD-JDr">
<menu key="submenu" title="GitHub Dark Mode" systemMenu="apple" id="uQy-DD-JDr">
<items>
<menuItem title="About GitHubDarkMode" id="5kV-Vb-QxS">
<menuItem title="About GitHub Dark Mode" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/>
<menuItem title="Hide GitHubDarkMode" keyEquivalent="h" id="Olw-nP-bQN">
<menuItem title="Hide GitHub Dark Mode" keyEquivalent="h" id="Olw-nP-bQN">
<connections>
<action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/>
</connections>
Expand All @@ -40,7 +40,7 @@
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
<menuItem title="Quit GitHubDarkMode" keyEquivalent="q" id="4sb-4s-VLi">
<menuItem title="Quit GitHub Dark Mode" keyEquivalent="q" id="4sb-4s-VLi">
<connections>
<action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/>
</connections>
Expand All @@ -52,7 +52,7 @@
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
<items>
<menuItem title="GitHubDarkMode Help" keyEquivalent="?" id="FKE-Sm-Kum">
<menuItem title="GitHub Dark Mode Help" keyEquivalent="?" id="FKE-Sm-Kum">
<connections>
<action selector="showHelp:" target="Ady-hI-5gd" id="y7X-2Q-9no"/>
</connections>
Expand Down Expand Up @@ -110,8 +110,8 @@
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" image="AppIcon" id="Hhb-TZ-Dhg"/>
</imageView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="EB0-ac-UZR">
<rect key="frame" x="206" y="63" width="68" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="App Name" id="S7v-7o-3vW">
<rect key="frame" x="182" y="63" width="117" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="GitHub Dark Mode" id="S7v-7o-3vW">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
Expand Down
45 changes: 45 additions & 0 deletions GitHubDarkMode/en.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

/* Class = "NSMenuItem"; title = "GitHub Dark Mode"; ObjectID = "1Xt-HY-uBw"; */
"1Xt-HY-uBw.title" = "GitHub Dark Mode";

/* Class = "NSMenuItem"; title = "Quit GitHub Dark Mode"; ObjectID = "4sb-4s-VLi"; */
"4sb-4s-VLi.title" = "Quit GitHub Dark Mode";

/* Class = "NSMenuItem"; title = "About GitHub Dark Mode"; ObjectID = "5kV-Vb-QxS"; */
"5kV-Vb-QxS.title" = "About GitHub Dark Mode";

/* Class = "NSMenu"; title = "Main Menu"; ObjectID = "AYu-sK-qS6"; */
"AYu-sK-qS6.title" = "Main Menu";

/* Class = "NSMenu"; title = "Help"; ObjectID = "F2S-fz-NVQ"; */
"F2S-fz-NVQ.title" = "Help";

/* Class = "NSMenuItem"; title = "GitHub Dark Mode Help"; ObjectID = "FKE-Sm-Kum"; */
"FKE-Sm-Kum.title" = "GitHub Dark Mode Help";

/* Class = "NSWindow"; title = "GitHub Dark Mode"; ObjectID = "IQv-IB-iLA"; */
"IQv-IB-iLA.title" = "GitHub Dark Mode";

/* Class = "NSMenuItem"; title = "Show All"; ObjectID = "Kd2-mp-pUS"; */
"Kd2-mp-pUS.title" = "Show All";

/* Class = "NSMenuItem"; title = "Hide GitHub Dark Mode"; ObjectID = "Olw-nP-bQN"; */
"Olw-nP-bQN.title" = "Hide GitHub Dark Mode";

/* Class = "NSTextFieldCell"; title = "GitHub Dark Mode"; ObjectID = "S7v-7o-3vW"; */
"S7v-7o-3vW.title" = "GitHub Dark Mode";

/* Class = "NSButtonCell"; alternateTitle = "Install"; ObjectID = "Srx-0j-A4D"; */
"Srx-0j-A4D.alternateTitle" = "Install";

/* Class = "NSButtonCell"; title = "Open in Safari Extensions Preferences…"; ObjectID = "Srx-0j-A4D"; */
"Srx-0j-A4D.title" = "Open in Safari Extensions Preferences…";

/* Class = "NSMenuItem"; title = "Hide Others"; ObjectID = "Vdr-fp-XzO"; */
"Vdr-fp-XzO.title" = "Hide Others";

/* Class = "NSMenu"; title = "GitHub Dark Mode"; ObjectID = "uQy-DD-JDr"; */
"uQy-DD-JDr.title" = "GitHub Dark Mode";

/* Class = "NSMenuItem"; title = "Help"; ObjectID = "wpr-3q-Mcd"; */
"wpr-3q-Mcd.title" = "Help";
39 changes: 39 additions & 0 deletions GitHubDarkMode/zh-Hans.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

/* Class = "NSMenuItem"; title = "GitHubDarkMode"; ObjectID = "1Xt-HY-uBw"; */
"1Xt-HY-uBw.title" = "GitHub 黑暗模式";

/* Class = "NSMenuItem"; title = "Quit GitHubDarkMode"; ObjectID = "4sb-4s-VLi"; */
"4sb-4s-VLi.title" = "退出 GitHub 黑暗模式";

/* Class = "NSMenuItem"; title = "About GitHubDarkMode"; ObjectID = "5kV-Vb-QxS"; */
"5kV-Vb-QxS.title" = "About GitHub 黑暗模式";

/* Class = "NSMenu"; title = "Help"; ObjectID = "F2S-fz-NVQ"; */
"F2S-fz-NVQ.title" = "帮助";

/* Class = "NSMenuItem"; title = "GitHubDarkMode Help"; ObjectID = "FKE-Sm-Kum"; */
"FKE-Sm-Kum.title" = "GitHub 黑暗模式 Help";

/* Class = "NSWindow"; title = "GitHub Dark Mode"; ObjectID = "IQv-IB-iLA"; */
"IQv-IB-iLA.title" = "GitHub 黑暗模式";

/* Class = "NSMenuItem"; title = "Show All"; ObjectID = "Kd2-mp-pUS"; */
"Kd2-mp-pUS.title" = "全部显示";

/* Class = "NSMenuItem"; title = "Hide GitHubDarkMode"; ObjectID = "Olw-nP-bQN"; */
"Olw-nP-bQN.title" = "Hide GitHub 黑暗模式";

/* Class = "NSButtonCell"; alternateTitle = "Install"; ObjectID = "Srx-0j-A4D"; */
"Srx-0j-A4D.alternateTitle" = "安装";

/* Class = "NSButtonCell"; title = "Open in Safari Extensions Preferences…"; ObjectID = "Srx-0j-A4D"; */
"Srx-0j-A4D.title" = "在 Safari 拓展设置中打开";

/* Class = "NSMenuItem"; title = "Hide Others"; ObjectID = "Vdr-fp-XzO"; */
"Vdr-fp-XzO.title" = "隐藏其他";

/* Class = "NSMenu"; title = "GitHubDarkMode"; ObjectID = "uQy-DD-JDr"; */
"uQy-DD-JDr.title" = "GitHub 黑暗模式";

/* Class = "NSMenuItem"; title = "Help"; ObjectID = "wpr-3q-Mcd"; */
"wpr-3q-Mcd.title" = "帮助";

0 comments on commit d8b5348

Please sign in to comment.