-
Notifications
You must be signed in to change notification settings - Fork 20
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
"New Private Tab" button in tab-bar eats "New Tab" button space (Australis) #137
Comments
Oh, I see, this is .tabbrowser-tab {
pointer-events: none;
}
.tab-background-middle,
.tabs-newtab-button,
.tab-close-button {
pointer-events: auto;
} trick for tabs (and "curves" of tabs isn't accessible). .tabs-newtab-button {
pointer-events: none;
-moz-binding: url("override.xml#toolbarbutton");
}
.tabs-newtab-button > .toolbarbutton-icon {
pointer-events: auto;
padding: 5px 12px;
} with <?xml version="1.0"?>
<bindings id="toolbarbuttonBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="toolbarbutton" display="xul:hbox" role="xul:toolbarbutton"
extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton" />
</bindings> But only one extension may override binding. So, this will break all extensions, that wants to use similar trick. :( |
to override autodetected padding (#137)
I used generated binding that extends current one, but this may break anyway (e.g. if you disable another restartless extension with similar trick). Also added two hidden preferences:
And for added user styles (Stylish) and extensions like Classic Theme Restorer Private Tab styles aren't updated automatically (and you should re-enable extension). Test version: private_tab-0.1.7.1pre2-fx-sm.xpi ( |
It works perfectly now! If you need some advanced testing tell me. Do you think we could create a Firefox bug for a better / no-conflict fix? Thx! |
(for better compatibility with other themes and extensions like Tree Style Tab) (#137)
May be, but how many extensions have buttons after last tab? I know only about Tab Mix Plus, but with only some GUI settings for New Tab button placement. Also I corrected code to better resize button's icon, now should work better with other themes/extensions (e.g. with Tree Style Tab). |
Agree, solved! :D |
(we correct accessibility using CSS, but still can click or right edge of rightmost button) (#137)
(Tree Style Tab or similar extensions) (#137)
Previous implementation works wrong with button's padding (and introduces horizontal overflow in Tree Style Tab) (#137, piroor/treestyletab#684)
http://i.imgur.com/ffgPrLt.png
As you can see in the capture, putting the "New Private Tab" button next to the core "New Tab" button isn't accurate and when you want to click the core button the "New Private Tab" button is activated instead.
The text was updated successfully, but these errors were encountered: