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-ON BAR SUPPORT THREAD] - simulate 'add-on bar' by moving 'bookmarks toolbar' to windows bottom keeping bookmark items on top #73
Comments
So the Navigation toolbar can overflow onto a 2nd line? |
The trick is extending navigation toolbars bottom padding and moving bookmark items to navigation toolbar. Forcing bookmark items box to use an absolute position at navigation toolbars extended bottom area creates the effect of another bookmarks toolbar. |
Good to know the trick is already released. It is probably the first one providing a workaround. One thing I'm curious though. Why use a NOT selector? Isn't it more appropriate to show the toolbar at bottom even in customizing mode? |
The toolbar is technically always below navigation toolbar. Keeping it on bottom in customizing mode causes dragging/dropping items there not to always work properly. At least that happened in my tests. I found what was causing this issue. It will be fixed on next update. |
One thing we missed. Simply add the following lines to apply background color/image based on selected theme. File : "addonbar_move_bookmarks_toolbar_to_bottom.css" background-repeat: no-repeat !important;
background-position: bottom left !important;
background-color: var(--lwt-accent-color) !important;
background-image: var(--lwt-footer-image) !important; |
Thanks, I always forget the lw-theme stuff. ;-) Many lw-themes stopped offering a footer image after add-on bar deprecation in Firefox 29 and this is still the case. As a result bookmarks toolbar keeps its "grey" in those cases. Unfortunately text may change color and shadow independently causing the toolbar to look weird. I suggest to reuse the top image: ---> #browser-panel > #navigator-toolbox > #PersonalToolbar:-moz-lwtheme {
background-repeat: no-repeat !important;
background-position: bottom left !important;
background-color: var(--lwt-accent-color) !important;
background-image: var(--lwt-header-image) !important;
} |
I like having the additional Add-ons bar but don't use the bookmarks bar. I prefer the bookmarks side panel. My solutions was to empty the Bookmarks Toolbar folder and change the padding in line 12 to -1. The top Bookmarks toolbar then is no longer visable. The add-ons disappear when the bookmarks bar is toggled off but the bar remains. This may be able to be avoided if browser-bottombox is collapsed when bookmarks toolbar is toggled off. |
You are right, although the default code from browser.css is used:
I will replace EDIT |
Ooops, I'm too late? This is exactly why I used filter in the first place. I did some enhancement for reference. #main-window[lwthemetextcolor=bright] #browser-panel > #navigator-toolbox > #PersonalToolbar > .webextension-browser-action > .toolbarbutton-badge-stack {
filter: drop-shadow(1px 1px 0.5px #bbb) drop-shadow(-1px -1px 0.5px #bbb) drop-shadow(-1px 1px 0.5px #bbb) drop-shadow(1px -1px 0.5px #bbb);
}
#main-window[lwthemetextcolor=dark] #browser-panel > #navigator-toolbox > #PersonalToolbar > .webextension-browser-action > .toolbarbutton-badge-stack {
filter: drop-shadow(1px 1px 1px #222);
} I also noticed that the addon bar is visible in Javascript popup (window.open) with parameter "toolbar=no". It may affect the layout especially with small popup window. It can be fixed by updating css selectors. Now the addon bar will be hidden if "toolbar=no" is specified by web dev. Find these 2 selectors :
And replace with :
|
Thanks for the fix in chromehidden windows. I will add your filter tweaks to the file "optionally". |
[Win][Fxc59][Addon Bar][status] addonbar_status_inaddonbar.ccs does not take side panel into consideration. When the side panel is activated, status text moves to the right the width of the side panel. |
[Win][Fx59][Addon Bar][status] With both status and content on right activated, there is an empty space of 400px on the right side of the addon bar. |
I've replaced the current zip with a new one: https://github.com/Aris-t2/CustomCSSforFx/releases
|
Fast fix as usual. Thanks.... |
I was experimenting with "flexible spaces" on last update. Once you move a toolbar out of the top box, like happens with bookmarks/add-on bar here, it looses some to its default features. In this case flexible spaces always keep their minimum width and never go towards their maximum width. The experiment forces a higher minimum width once you place two or more flexible spaces in a row. The result is you don't have to add that many of them to get a bigger space. One big issue with the toolbar is the possibility of losing content once it extends full window width. |
Double clicking on the "addonbar"/bookmarksbar makes FxQ maximize/minimize. This can be turned off with |
Thanks. |
Hmm... 🤗 Before
|
CSS code in userChrome.css or called inside userChrome.css can not affect web content. |
Is it possible to disable the boxes around addon and back/forward icons so that they appear flat? |
Yes, unset What exactly has this navigation toolbar button change to do with simulated add-on bar. |
The issue is caused by the second bookmarks toolbar. I will add a workaround on next updte. /* fix for megabar */
#urlbar[breakout],
#urlbar[breakout][breakout-extend] {
top: 5px !important;
}
:root[uidensity="compact"] #urlbar[breakout],
:root[uidensity="compact"] #urlbar[breakout][breakout-extend] {
top: 3px !important;
}
:root[uidensity="touch"] #urlbar[breakout],
:root[uidensity="touch"] #urlbar[breakout][breakout-extend] {
top: 4px !important;
} |
Is there a way to horizontally center the bookmark items when |
That moves it vertically, but thanks for pointing out the right place to modify the values. I achieved a horizontal center by adding these lines in that block: left: 50% !important;
margin-left: -25% !important; Doesn't quite adjust correctly when the window isn't maximized, but oh well. |
Good day. Just started playing around with your archive Aris, and of course first thing I tried is the AddOn bar. Is there a way to have a border between the bar and the page? It normally isn't a problem with no border, most pages are a different color, but when you open the Findbar it kinda looks merged with the AddOn bar... EDIT: Strange, I had a look at the code, there IS a border, but it's not showing for me unless I add the following variable: --toolbox-border-bottom-color: rgb(204,204,204); Thanks. |
I'm not sure what below is doing inside the AddOnBar CSS, this should be its own file. The middle portion of it is also causing the tracking protection shield to go invisible instead of turning blue when stuff is blocked (I'm using FF77):
|
@B00ze64 The animation removal was required, because animation position altered after the simulated add-on bar was created. Instead of trying to find values to match the correct position for every ui config (compact, normal, touch) and every Firefox version, I just removed it. Edit: |
Hi Aris, I commented out the animation block and I do not see anything out of place, stuff animates correctly at the correct positions. I don't really care one way or another for the shield turning blue, but it disappearing is kinda annoying, lol. PS: While I'm not using a lot of the CSS in your package, you have some very nifty stuff in here, wow, thank you for all your work! My yellow folders in the bookmarks are back, woohoo! Still playing with it, gonna try content stuff today ;-) I'm upgrading from FF52 to FF77, LOTS of stuff to adjust and redo (they finally fixed AddOn CSP injection so now is the time to upgrade.) Best Regards, |
Is there any way to force display of the full url in the status bar? Longer urls get abbreviated with "..." in the middle, even though there's plenty of space in the status bar. I tried adjusting the width of |
@B00ze64 @kpedro88 new css/* Firefox Quantum userChrome.css tweaks ************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/
:root {
--status-width: 400px;
}
.browserContainer :-moz-any(statuspanel,#statuspanel) {
-moz-box-ordinal-group: 3 !important;
position: fixed !important;
display:block !important;
bottom: 2px !important;
z-index: 1001 !important
}
.browserContainer :-moz-any(statuspanel,#statuspanel):-moz-locale-dir(ltr) {
left: 0px;
}
.browserContainer :-moz-any(statuspanel,#statuspanel):-moz-locale-dir(rtl) {
right: 0px;
}
.browserContainer :-moz-any(statuspanel,#statuspanel) :-moz-any(#statuspanel-label,.statuspanel-label) {
-moz-appearance: none !important;
background: none !important;
border: 0 !important;
box-shadow: none !important;
pointer-events: none !important;
min-width: var(--status-width) !important;
width: var(--status-width) !important;
max-width: var(--status-width) !important;
color: black !important;
}
.browserContainer :-moz-any(statuspanel,#statuspanel):-moz-lwtheme-brighttext :-moz-any(#statuspanel-label,.statuspanel-label) {
color: white !important;
}
/* add space for status text on add-on bar */
#main-window:not([chromehidden*="toolbar"]) #navigator-toolbox > #PersonalToolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar) {
padding-left: var(--status-width) !important;
}
#main-window:not([chromehidden*="toolbar"]) #navigator-toolbox > #PersonalToolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):-moz-locale-dir(rtl) {
padding-right: var(--status-width) !important;
}
#statuspanel[mirror] {
inset-inline-start: unset !important;
inset-inline-end: unset !important;
}
#statuspanel[mirror] > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(ltr) {
margin-left: 0px !important;
}
#statuspanel[mirror] > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(rtl) {
margin-right: 0px !important;
} |
I'm having an issue with the addonbar in dev 89.0b8. The extra bar has moved up to below the bookmarks bar, and the spacing is weird on top of that. @import "./css/toolbars/addonbar_extra_bookmarks_toolbar_below_navbar_fx65.css"; |
Fixing autohide of the bookmarks toolbar on proton turned out to be easy. It was just changing two lines within this: #main-window[sizemode="fullscreen"]:not([inDOMFullscreen="true"]) #PersonalToolbar { These lines changed from 0 to 1: min-height: 1px !important; |
Thanks marty60. |
@Underx01 in #368 on 25th June:
… and on 30th June:
OK. I do not use this myself and did not test it, but looking into #navigator-toolbox > #PersonalToolbar:-moz-lwtheme {
background-color: fuchsia !important;
background-image: none !important;
} Instead of |
To set the background image for add-on bar as it was in themes before, using a custom theme, I'm using this code:
With |
@Speravir But got it working with the following code (within my_userChrome.css): #main-window:not([chromehidden*="toolbar"]) #navigator-toolbox > #PersonalToolbar {
background-repeat: no-repeat !important;
background-position: bottom left !important;
background-color: fuchsia !important;
/* background-image: url("./images/footer.png") !important; /**/
} Don't know why that works (I tried copying and pasting from addonbar_move_bookmarks_toolbar_to_bottom.css) but it works at least for my theme. |
I think this does not need an own discussion anymore. |
Discuss here everything related to v1.4.0+ versions feature to simulate an add-on bar on windows bottom.
The text was updated successfully, but these errors were encountered: