Skip to content

Commit

Permalink
Change the chrome namespace from verticaltabs to tabcenter.
Browse files Browse the repository at this point in the history
Fixes #49.
  • Loading branch information
bwinton committed Apr 14, 2016
1 parent d911c4f commit 2a9dca6
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This Firefox add-on arranges tabs in a vertical rather than horizontal
fashion. It is heavily inspired by and borrows ideas from the excellent
Tree Style Tab add-on.

Download & Install: http://people.mozilla.org/~rcampbell/VerticalTabs.xpi
Download & Install: https://people.mozilla.org/~bwinton/TabCenter/tab-center.xpi

Goals:

Expand Down
4 changes: 2 additions & 2 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const {classes: Cc, interfaces: Ci, utils: Cu} = Components;

Cu.import("resource://gre/modules/Services.jsm");

const RESOURCE_HOST = "verticaltabs";
const RESOURCE_HOST = "tabcenter";
const PREF_BRANCH = "extensions.verticaltabs.";
const DEFAULT_PREFS = {
"extensions.verticaltabs.width": 250,
Expand Down Expand Up @@ -108,7 +108,7 @@ function startup(data, reason) {
});

// Initialize VerticalTabs object for each window.
Cu.import("resource://verticaltabs/verticaltabs.jsm");
Cu.import("resource://tabcenter/verticaltabs.jsm");
watchWindows(function(window) {
let vt = new VerticalTabs(window);
unload(vt.unload.bind(vt), window);
Expand Down
2 changes: 1 addition & 1 deletion chrome.manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
content verticaltabs vertical-tabbrowser.xml
content tabcenter vertical-tabbrowser.xml
6 changes: 3 additions & 3 deletions groups.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
*/

const EXPORTED_SYMBOLS = ["VTGroups"];
Components.utils.import("resource://verticaltabs/tabdatastore.jsm");
Components.utils.import("resource://tabcenter/tabdatastore.jsm");

const TAB_DROP_TYPE = "application/x-moz-tabbrowser-tab";

Expand Down Expand Up @@ -125,7 +125,7 @@ VTGroups.prototype = {
* applied to the group. Otherwise the label will be made
* editable.
*/
addGroup: function(aLabel) {
addGroup: function(aLabel) {
let group = this.tabs.tabbrowser.addTab();
VTTabDataStore.setTabValue(group, this.kGroup, "true");

Expand Down Expand Up @@ -198,7 +198,7 @@ VTGroups.prototype = {
// Apply the group's collapsed state to the tab
let collapsed = (VTTabDataStore.getTabValue(aGroup, this.kCollapsed)
== "true");
this._tabCollapseExpand(aTab, collapsed);
this._tabCollapseExpand(aTab, collapsed);
},

addChildren: function(aGroup, aTabs) {
Expand Down
4 changes: 2 additions & 2 deletions override-bindings.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.tabbrowser-tabs[vertical="true"] {
-moz-binding: url("chrome://verticaltabs/content/vertical-tabbrowser.xml#tabbrowser-tabs") ! important;
-moz-binding: url("chrome://tabcenter/content/vertical-tabbrowser.xml#tabbrowser-tabs") ! important;
}

.tabbrowser-arrowscrollbox[vertical="true"] {
-moz-binding: url("chrome://verticaltabs/content/vertical-tabbrowser.xml#tabbrowser-arrowscrollbox") ! important;
-moz-binding: url("chrome://tabcenter/content/vertical-tabbrowser.xml#tabbrowser-arrowscrollbox") ! important;
}
2 changes: 1 addition & 1 deletion skin/bindings.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.tabbrowser-tab[verticaltabs-group] {
-moz-binding: url("resource://verticaltabs/skin/groups.xml");
-moz-binding: url("resource://tabcenter/skin/groups.xml");
}
10 changes: 5 additions & 5 deletions skin/light/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#verticaltabs-box:hover .tabbrowser-arrowscrollbox > scrollbox,
#verticaltabs-box[pinned="true"] .tabbrowser-arrowscrollbox > scrollbox {
overflow-y: auto !important;
}}
}

#tabbrowser-tabs::before,
#tabbrowser-tabs + hbox,
Expand Down Expand Up @@ -79,15 +79,15 @@
}

#pin-button {
background: no-repeat center/16px url("resource://verticaltabs/skin/pin.png");
background: no-repeat center/16px url("resource://tabcenter/skin/pin.png");
border: none !important;
margin: 0 !important;
-moz-appearance: none !important;
width: 40px;
}

#verticaltabs-box[pinned="true"] #pin-button {
background-image: url("resource://verticaltabs/skin/pin-hover.png");
background-image: url("resource://tabcenter/skin/pin-hover.png");
background-color: #808080 !important;
}

Expand Down Expand Up @@ -179,14 +179,14 @@
/* Keep the close button at a safe distance from the tab label. */
.tab-close-button {
display: -moz-box !important;
background: no-repeat center/16px url("resource://verticaltabs/skin/stop.svg") !important;
background: no-repeat center/16px url("resource://tabcenter/skin/stop.svg") !important;
margin: 0 0 0 3px !important;
width: 40px;
height: 40px;
}

.tab-close-button:hover {
background: no-repeat center/16px url("resource://verticaltabs/skin/stop-hover.svg") !important;
background: no-repeat center/16px url("resource://tabcenter/skin/stop-hover.svg") !important;
background-color: #d94141 !important;
}

Expand Down
8 changes: 4 additions & 4 deletions skin/osx/osx.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
display: -moz-box;
margin-left: 3px;
margin-top: 1px;
background-image: url("resource://verticaltabs/skin/osx/closetab.svg") !important;
background-image: url("resource://tabcenter/skin/osx/closetab.svg") !important;
background-position: center right;
background-size: contain;
background-repeat: no-repeat;
Expand All @@ -138,7 +138,7 @@
}
.tabbrowser-tab[selected="true"] .tab-close-button,
.tabbrowser-tab[multiselect="true"] .tab-close-button {
background-image: url("resource://verticaltabs/skin/osx/closetab-white.svg");
background-image: url("resource://tabcenter/skin/osx/closetab-white.svg");
opacity: 0.8;
}

Expand Down Expand Up @@ -204,7 +204,7 @@

/* Drop indicator for drag'n'drop of tabs */
.tab-drop-indicator {
list-style-image: url("resource://verticaltabs/skin/osx/dropmarker.png");
list-style-image: url("resource://tabcenter/skin/osx/dropmarker.png");
margin-top: -12px !important; /* height of the above image */
margin-bottom: 0 !important;
}
Expand Down Expand Up @@ -313,7 +313,7 @@
}

.verticaltabs-twisty {
list-style-image: url("resource://verticaltabs/skin/osx/twisty.png");
list-style-image: url("resource://tabcenter/skin/osx/twisty.png");
opacity: 0.38;
-moz-transition-property: -moz-transform;
-moz-transition-duration: .1s;
Expand Down
6 changes: 3 additions & 3 deletions skin/win7/win7.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

/* Drop indicator for drag'n'drop of tabs */
.tab-drop-indicator {
list-style-image: url("resource://verticaltabs/skin/win7/dropmarker.png");
list-style-image: url("resource://tabcenter/skin/win7/dropmarker.png");
margin-top: -13px !important; /* height of the above image */
margin-bottom: 0 !important;
}
Expand Down Expand Up @@ -226,10 +226,10 @@ margin-bottom: 23px !important;
cursor: default !important;
margin-left: 1px !important;
margin-right: 2px !important;
list-style-image: url("resource://verticaltabs/skin/win7/twisty.png");
list-style-image: url("resource://tabcenter/skin/win7/twisty.png");
}
.tabbrowser-tab[verticaltabs-collapsed="true"] .verticaltabs-twisty {
list-style-image: url("resource://verticaltabs/skin/win7/twisty-collapsed.png");
list-style-image: url("resource://tabcenter/skin/win7/twisty-collapsed.png");
}


Expand Down
28 changes: 14 additions & 14 deletions verticaltabs.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
* ***** END LICENSE BLOCK ***** */

Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://verticaltabs/tabdatastore.jsm");
Components.utils.import("resource://verticaltabs/multiselect.jsm");
Components.utils.import("resource://verticaltabs/groups.jsm");
Components.utils.import("resource://tabcenter/tabdatastore.jsm");
Components.utils.import("resource://tabcenter/multiselect.jsm");
Components.utils.import("resource://tabcenter/groups.jsm");

let console = (Components.utils.import("resource://gre/modules/devtools/Console.jsm", {})).console;

Expand Down Expand Up @@ -71,9 +71,9 @@ VerticalTabs.prototype = {
this.ios = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);

this.installStylesheet("resource://verticaltabs/override-bindings.css");
this.installStylesheet("resource://verticaltabs/skin/bindings.css");
this.installStylesheet("resource://verticaltabs/skin/base.css");
this.installStylesheet("resource://tabcenter/override-bindings.css");
this.installStylesheet("resource://tabcenter/skin/bindings.css");
this.installStylesheet("resource://tabcenter/skin/base.css");
this.applyThemeStylesheet();
this.unloaders.push(this.removeThemeStylesheet);

Expand Down Expand Up @@ -112,9 +112,9 @@ VerticalTabs.prototype = {
this.unloaders.push(function() {
this.tabIDs.unload();
this.tabObserver.disconnect();
this.removeStylesheet("resource://verticaltabs/override-bindings.css");
this.removeStylesheet("resource://verticaltabs/skin/bindings.css");
this.removeStylesheet("resource://verticaltabs/skin/base.css");
this.removeStylesheet("resource://tabcenter/override-bindings.css");
this.removeStylesheet("resource://tabcenter/skin/bindings.css");
this.removeStylesheet("resource://tabcenter/skin/base.css");
});
},

Expand Down Expand Up @@ -144,21 +144,21 @@ VerticalTabs.prototype = {
case "default":
switch(Services.appinfo.OS) {
case "WINNT":
stylesheet = "resource://verticaltabs/skin/win7/win7.css";
stylesheet = "resource://tabcenter/skin/win7/win7.css";
break;
case "Darwin":
stylesheet = "resource://verticaltabs/skin/osx/osx.css";
stylesheet = "resource://tabcenter/skin/osx/osx.css";
break;
case "Linux":
stylesheet = "resource://verticaltabs/skin/linux/linux.css";
stylesheet = "resource://tabcenter/skin/linux/linux.css";
break;
}
break;
case "dark":
stylesheet = "resource://verticaltabs/skin/dark/dark.css";
stylesheet = "resource://tabcenter/skin/dark/dark.css";
break;
case "light":
stylesheet = "resource://verticaltabs/skin/light/light.css";
stylesheet = "resource://tabcenter/skin/light/light.css";
break;
}

Expand Down

0 comments on commit 2a9dca6

Please sign in to comment.