Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to show "New Private Tab" button after "New Tab" button #90

Closed
Infocatcher opened this issue Aug 9, 2013 · 2 comments
Closed

Comments

@Infocatcher
Copy link
Owner

Requested here: https://addons.mozilla.org/addon/private-tab/reviews/495488/

We can use additional button (just like for built-in "New Tab" button):
Screenshot: DOM nodes

and tricks like
chrome://browser/content/browser.css

#tabbrowser-tabs:not([overflow="true"]) ~ #alltabs-button,
#tabbrowser-tabs:not([overflow="true"]) + #new-tab-button,
#tabbrowser-tabs[overflow="true"] > .tabbrowser-arrowscrollbox > .tabs-newtab-button,
#TabsToolbar[currentset]:not([currentset*="tabbrowser-tabs,new-tab-button"]) > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .tabs-newtab-button,
#TabsToolbar[customizing="true"] > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .tabs-newtab-button {
  visibility: collapse;
}
@Infocatcher
Copy link
Owner Author

With d6e3449 commit supported following:
[Tabs][New Tab][New Private Tab]
and
[Tabs][New Private Tab]

Unfortunately there is no easy way to support [Tabs][New Private Tab][New Tab] too.
So now we have following:

 Tabs area                                                                    Customizable toolbar area
┌────────────────────────────────────────────────────────────────────────────┬────────────────────────────┐
│First tab] ... [Last tab][New Tab][New Private Tab][<-- flexible spacer -->]│[New Tab*][New Private Tab*]│
└────────────────────────────────────────────────────────────────────────────┴────────────────────────────┘
 * – real toolbar buttons

And buttons after last tab are visible only until all tabs are visible too (and then becomes visible real buttons).

@Infocatcher
Copy link
Owner Author

Test version: private_tab-0.1.4pre7-fx-sm.xpi (source).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant