Skip to content

Commit

Permalink
Change chrome url
Browse files Browse the repository at this point in the history
  • Loading branch information
conema committed Sep 12, 2020
1 parent 1ad2938 commit 4c92f9b
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 35 deletions.
16 changes: 8 additions & 8 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
messenger.WindowListener.registerChromeUrl([
["content", "MonterailOverlay", "content/"]
["content", "MonterailFDOverlay", "content/"]
]);

messenger.WindowListener.registerWindow(
"chrome://messenger/content/addressbook/addressbook.xhtml",
"chrome://MonterailOverlay/content/scripts/loadAddressbook.js");
"chrome://MonterailFDOverlay/content/scripts/loadAddressbook.js");

messenger.WindowListener.registerWindow(
"chrome://messenger/content/addressbook/abContactsPanel.xhtml",
"chrome://MonterailOverlay/content/scripts/loadAddressbook.js");
"chrome://MonterailFDOverlay/content/scripts/loadAddressbook.js");

messenger.WindowListener.registerWindow(
"chrome://messenger/content/messengercompose/messengercompose.xhtml",
"chrome://MonterailOverlay/content/scripts/loadCompose.js");
"chrome://MonterailFDOverlay/content/scripts/loadCompose.js");

messenger.WindowListener.registerWindow(
"chrome://messenger/content/messenger.xhtml",
"chrome://MonterailOverlay/content/scripts/loadMessenger.js");
"chrome://MonterailFDOverlay/content/scripts/loadMessenger.js");

messenger.WindowListener.registerWindow(
"chrome://messenger/content/messageWindow.xhtml",
"chrome://MonterailOverlay/content/scripts/loadMessenger.js");
"chrome://MonterailFDOverlay/content/scripts/loadMessenger.js");

messenger.WindowListener.registerWindow(
"chrome://messenger/content/customizeToolbar.xhtml",
"chrome://MonterailOverlay/content/scripts/loadMessenger.js");
"chrome://MonterailFDOverlay/content/scripts/loadMessenger.js");

messenger.WindowListener.registerWindow(
"chrome://messenger/content/glodaFacetView.xhtml",
"chrome://MonterailOverlay/content/scripts/loadSearch.js");
"chrome://MonterailFDOverlay/content/scripts/loadSearch.js");

messenger.WindowListener.startListening();
8 changes: 4 additions & 4 deletions content/scripts/loadAddressbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const fileName = "addressbook.css";

function onLoad(activatedWhileWindowOpen) {
WL.injectCSS("chrome://MonterailOverlay/content/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/" + fileName);


if (Services.appinfo.OS == "WINNT") {
WL.injectCSS("chrome://MonterailOverlay/content/skin/win/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/win/skin/" + fileName);
} else if (Services.appinfo.OS == "Linux") {
WL.injectCSS("chrome://MonterailOverlay/content/skin/linux/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/linux/skin/" + fileName);
} else if (Services.appinfo.OS == "Darwin") {
WL.injectCSS("chrome://MonterailOverlay/content/skin/mac/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/mac/skin/" + fileName);
}
}

Expand Down
8 changes: 4 additions & 4 deletions content/scripts/loadCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const fileName = "compose.css";

function onLoad(activatedWhileWindowOpen) {
WL.injectCSS("chrome://MonterailOverlay/content/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/" + fileName);


if (Services.appinfo.OS == "WINNT") {
WL.injectCSS("chrome://MonterailOverlay/content/skin/win/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/win/skin/" + fileName);
} else if (Services.appinfo.OS == "Linux") {
WL.injectCSS("chrome://MonterailOverlay/content/skin/linux/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/linux/skin/" + fileName);
} else if (Services.appinfo.OS == "Darwin") {
WL.injectCSS("chrome://MonterailOverlay/content/skin/mac/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/mac/skin/" + fileName);
}
}

Expand Down
8 changes: 4 additions & 4 deletions content/scripts/loadMessenger.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const fileName = "messenger.css";

function onLoad(activatedWhileWindowOpen) {
WL.injectCSS("chrome://MonterailOverlay/content/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/" + fileName);


if (Services.appinfo.OS == "WINNT") {
WL.injectCSS("chrome://MonterailOverlay/content/skin/win/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/win/skin/" + fileName);
} else if (Services.appinfo.OS == "Linux") {
WL.injectCSS("chrome://MonterailOverlay/content/skin/linux/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/linux/skin/" + fileName);
} else if (Services.appinfo.OS == "Darwin") {
WL.injectCSS("chrome://MonterailOverlay/content/skin/mac/skin/" + fileName);
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/mac/skin/" + fileName);
}
}

Expand Down
2 changes: 1 addition & 1 deletion content/scripts/loadSearch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function onLoad(activatedWhileWindowOpen) {
WL.injectCSS("chrome://MonterailOverlay/content/skin/searchWindow.css");
WL.injectCSS("chrome://MonterailFDOverlay/content/skin/searchWindow.css");
}

function onUnload(deactivatedWhileWindowOpen) {
Expand Down
4 changes: 2 additions & 2 deletions content/skin/addressbook.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url(chrome://MonterailOverlay/content/skin/root.css);
@import url(chrome://MonterailOverlay/content/skin/icons/css/adressbook.css);
@import url(chrome://MonterailFDOverlay/content/skin/root.css);
@import url(chrome://MonterailFDOverlay/content/skin/icons/css/adressbook.css);

#ab-toolbox > #addrbook-toolbar-menubar2, #ab-toolbox > #ab-bar2 {
background-color: var(--background-color) !important;
Expand Down
4 changes: 2 additions & 2 deletions content/skin/compose.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url(chrome://MonterailOverlay/content/skin/root.css);
@import url(chrome://MonterailOverlay/content/skin/icons/css/compose.css);
@import url(chrome://MonterailFDOverlay/content/skin/root.css);
@import url(chrome://MonterailFDOverlay/content/skin/icons/css/compose.css);

#msgIdentity,
textbox.textbox-addressingWidget,
Expand Down
4 changes: 2 additions & 2 deletions content/skin/lightning.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url(chrome://MonterailOverlay/content/skin/root.css);
@import url(chrome://MonterailOverlay/content/skin/icons/css/lightning.css);
@import url(chrome://MonterailFDOverlay/content/skin/root.css);
@import url(chrome://MonterailFDOverlay/content/skin/icons/css/lightning.css);

.toolbarbutton-menubutton-button>.toolbarbutton-icon,
.toolbarbutton-1 .toolbarbutton-icon {
Expand Down
2 changes: 1 addition & 1 deletion content/skin/messenger.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* :::: Credit where credit is due :::: */
/* Sharebird: light-weight theme idea */

@import url(chrome://MonterailOverlay/content/skin/root.css);
@import url(chrome://MonterailFDOverlay/content/skin/root.css);

#tabbar-toolbar .toolbarbutton-icon,
#header-view-toolbox .toolbarbutton-icon {
Expand Down
6 changes: 3 additions & 3 deletions content/skin/multiMessage.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url(chrome://MonterailOverlay/content/skin/root.css);
@import url(chrome://MonterailFDOverlay/content/skin/root.css);

#heading_wrapper {
color: #fff;
Expand All @@ -17,9 +17,9 @@
}

#hdrArchiveButton {
list-style-image: url("chrome://monterailoverlay/content/skin/icons/archive.svg");
list-style-image: url("chrome://MonterailFDOverlay/content/skin/icons/archive.svg");
}

#hdrTrashButton {
list-style-image: url("chrome://monterailoverlay/content/skin/icons/delete.svg");
list-style-image: url("chrome://MonterailFDOverlay/content/skin/icons/delete.svg");
}
4 changes: 2 additions & 2 deletions content/skin/root.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url(chrome://MonterailOverlay/content/skin/icons/css/messenger.css);
@import url(chrome://MonterailOverlay/content/skin/icons/css/folder.css);
@import url(chrome://MonterailFDOverlay/content/skin/icons/css/messenger.css);
@import url(chrome://MonterailFDOverlay/content/skin/icons/css/folder.css);

@font-face {
font-family: 'LightSans';
Expand Down
2 changes: 1 addition & 1 deletion content/skin/searchWindow.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*@import url(chrome://messenger/skin/glodaFacetView.css);*/
@import url(chrome://MonterailOverlay/content/skin/root.css);
@import url(chrome://MonterailFDOverlay/content/skin/root.css);

#main-column, .message, .results-message-header {
background: var(--thread-background-color);
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Monterail Full Dark, a Thunderbird theme inspired by the mockup of Monterail",
"version": "3.0",
"author": "Emanuele Concas",
"homepage_url": "https://addons.thunderbird.net/en-US/thunderbird/addon/monterail-fulldark/",
"homepage_url": "https://addons.thunderbird.net/en-US/thunderbird/addon/monterail-full-dark-2/",
"applications": {
"gecko": {
"id": "MonterailFullDark2@conema.me",
Expand Down

0 comments on commit 4c92f9b

Please sign in to comment.