Skip to content

Commit

Permalink
[e10s] underline for remote tab title
Browse files Browse the repository at this point in the history
  • Loading branch information
gomita committed Oct 16, 2014
1 parent bf76bd5 commit 1e86f25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chrome/content/tabscope/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ var TabScope = {
this.log("update title"); // #debug
var label = document.getElementById("tabscope-title");
label.value = this._tab.label;
label.setAttribute("remote", this._tab.hasAttribute("remote").toString());
var uri = this._tab.linkedBrowser.currentURI.spec;
label.setAttribute("tooltiptext", label.value + "\n" + uri);
label.style.width = this._branch.getIntPref("preview_width").toString() + "px";
Expand All @@ -654,6 +655,7 @@ var TabScope = {
_resetTitle: function() {
var label = document.getElementById("tabscope-title");
label.value = "";
label.removeAttribute("remote");
label.removeAttribute("tooltiptext");
label.style.width = "0px";
},
Expand Down
6 changes: 6 additions & 0 deletions chrome/skin/classic/tabscope/overlay.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@
rgba(0,255,0,.2));
}

/* ::::: title ::::: */

#tabscope-title[remote="true"] {
text-decoration: underline;
}

/* ::::: dark style ::::: */

#tabscope-popup[_style="dark"] {
Expand Down

0 comments on commit 1e86f25

Please sign in to comment.