Skip to content

Commit

Permalink
Fixed bug where chat bubbles would remain white in dark mode (#8)
Browse files Browse the repository at this point in the history
* Fixed bug where chat bubbles would remain white in dark mode

* Updated xcode compatibility to 13
  • Loading branch information
ryanmohta authored Mar 20, 2022
1 parent 1831484 commit 11f4023
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
2 changes: 2 additions & 0 deletions chrome/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ function scheduledTimer(startTimeHour, startTimeMinute, endTimeHour, endTimeMinu

function enableDarkMode() {
document.documentElement.classList.add("__fb-dark-mode");
document.documentElement.classList.remove("__fb-light-mode");
}

function disableDarkMode() {
document.documentElement.classList.remove("__fb-dark-mode");
document.documentElement.classList.add("__fb-light-mode");
}
20 changes: 10 additions & 10 deletions safari/Messenger Black.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objectVersion = 55;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -221,7 +221,7 @@
};
};
buildConfigurationList = 11C639BC20F5FE3C0020D4A3 /* Build configuration list for PBXProject "Messenger Black" */;
compatibilityVersion = "Xcode 12.0";
compatibilityVersion = "Xcode 13.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand Down Expand Up @@ -427,14 +427,14 @@
CODE_SIGN_ENTITLEMENTS = "app/Messenger Black.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = XX2UC95MTQ;
INFOPLIST_FILE = app/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.3.3;
MARKETING_VERSION = 1.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.ryanmohta.Messenger-Black";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -449,14 +449,14 @@
CODE_SIGN_ENTITLEMENTS = "app/Messenger Black.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = XX2UC95MTQ;
INFOPLIST_FILE = app/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.3.3;
MARKETING_VERSION = 1.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.ryanmohta.Messenger-Black";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -468,15 +468,15 @@
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "extension/Messenger Black for Safari.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = XX2UC95MTQ;
INFOPLIST_FILE = extension/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
MARKETING_VERSION = 1.3.3;
MARKETING_VERSION = 1.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.ryanmohta.Messenger-Black.Messenger-Black-for-Safari";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -489,15 +489,15 @@
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "extension/Messenger Black for Safari.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = XX2UC95MTQ;
INFOPLIST_FILE = extension/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
MARKETING_VERSION = 1.3.3;
MARKETING_VERSION = 1.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.ryanmohta.Messenger-Black.Messenger-Black-for-Safari";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
2 changes: 2 additions & 0 deletions safari/extension/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ function scheduledTimer(startTimeHour, startTimeMinute, endTimeHour, endTimeMinu

function enableDarkMode() {
document.documentElement.classList.add("__fb-dark-mode");
document.documentElement.classList.remove("__fb-light-mode");
}

function disableDarkMode() {
document.documentElement.classList.remove("__fb-dark-mode");
document.documentElement.classList.add("__fb-light-mode");
}
1 change: 1 addition & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
html.__fb-dark-mode .hop1g133 .hybvsw6c, html.__fb-dark-mode .nred35xi {
--surface-background: #18191A !important;
--messenger-card-background: #18191A !important;
--wash: #3E4042 !important;
}

html.__fb-dark-mode .oo9gr5id {
Expand Down

0 comments on commit 11f4023

Please sign in to comment.