Browsers which allow the address bar to be placed above the tabs

Page 2 of 8 FirstFirst 1234 ... LastLast

  1. SPB
    Posts : 78
    Windows 10 Home 22H2 x64
       #11

    Bert Coules said:
    Am I wrong then in thinking that your code snippet is part of your userchrome file? If it isn't, where and how do you apply it?
    Well it is only a small part of my userChrome tweaks.
    In order to keep the Windows buttons in the upper right corner, some more changes are necessary.
    I forgot to mention that in my first post. Let me redo it.
    Code:
    /* --------------------------------------------- */
    /*    TABS below navigation area                 */
    /* --------------------------------------------- */
    
    /*  (1) navigation area, URL bar, search bar ... */
    #nav-bar {order: 1 !important;}
    
    /*  (2) favorites  */
    #PersonalToolbar {order: 2 !important;}
    
    /*  (3) file menu and tabs  */
    #titlebar {order: 3 !important;}
    
    
    /* ----------------------------------------------------------- */
    /*  Windows Min/Max/X buttons in the top right corner          */
    /* ----------------------------------------------------------- */
    
    .titlebar-buttonbox-container {
       position: fixed  !important;
       display: block !important;
       top: 0px !important; /* distance to upper edge */
       right: 0px !important; /* distance to right edge */
    }
    
    #nav-bar {
        padding-right: 120px !important; /* move right edge of navigation bar by 120 pixels to the left to give sufficient space to the 3 Windows buttons */
    }
    
    /* ---------------------------------------------------------------- */
    /*  adjust Windows Min/Max/X buttons size (height, width)           */
    /* ---------------------------------------------------------------- */
    
    .titlebar-buttonbox-container .titlebar-button {
       padding: 7px 13px !important; /* height 7, width 13 */
    }
    The code above should give you the result shown below:
    Browsers which allow the address bar to be placed above the tabs-image-001-2024-02-19.png


    If you want the Windows buttons in high contrast mode, add the following
    Code:
    /* ---------------------------------------------------------------- */
    /*  Windows Min/Max/X Button Icons with high contrast               */
    /* ---------------------------------------------------------------- */
    
    /* Button Icons and their background */
    .titlebar-min {
       list-style-image: url(chrome://browser/skin/window-controls/minimize-highcontrast.svg) !important;
       color: black !important;
    }
    
    .titlebar-max {
       list-style-image: url(chrome://browser/skin/window-controls/maximize-highcontrast.svg) !important;
       color: Black !important;
    }
    
    .titlebar-restore {
       list-style-image: url(chrome://browser/skin/window-controls/restore-highcontrast.svg) !important; 
       color: Black !important;
    }
    
    .titlebar-close {
       list-style-image: url(chrome://browser/skin/window-controls/close-highcontrast.svg) !important;
       color: Black !important;
    }
    
    
    /* Hover colors */
    .titlebar-min:hover{
       color: White !important;
       list-style-image: url(chrome://browser/skin/window-controls/minimize-highcontrast.svg) !important;
       background: rgba(164,154,144,1.0) !important;
    } 
    
    .titlebar-max:hover{
       list-style-image: url(chrome://browser/skin/window-controls/maximize-highcontrast.svg) !important;
       color: White !important;
       background: rgba(164,154,144,1.0) !important;
    } 
    
    .titlebar-restore:hover{
       color: White !important;
       list-style-image: url(chrome://browser/skin/window-controls/restore-highcontrast.svg) !important;
       background: rgba(164,154,144,1.0) !important;
    } 
    
    .titlebar-close:hover{background: rgba(232,17,35,1.00) !important;}
    Browsers which allow the address bar to be placed above the tabs-windows-buttons-high-contrast.png
    Last edited by SPB; 19 Feb 2024 at 02:34.
      My Computer


  2. Posts : 65
    Windows 10
    Thread Starter
       #12

    SPB said:
    Well it is only a small part of my userChrome tweaks.
    In order to keep the Windows buttons in the upper right corner, some more changes are necessary.
    I forgot to mention that in my first post. Let me redo it.
    Thanks, that's interesting. But for me it would simply duplicate the X which is directly above it in the File, Edit... bar which I want to retain.

    I'll have a play around with this and other suggestions this morning.
      My Computer


  3. SPB
    Posts : 78
    Windows 10 Home 22H2 x64
       #13

    Bert Coules said:
    But for me it would simply duplicate the X which is directly above it in the File, Edit... bar which I want to retain.
    No, it will not duplicate the X because the file menu would be below the address (URL) bar and the Windows buttons (minimize, restore, maximize, X) would be below the address (URL) bar as well.

    Browsers which allow the address bar to be placed above the tabs-windows-buttons-below-address-bar.png

    Browsers which allow the address bar to be placed above the tabs-windows-buttons-below-address-bar-file-menu-visible.png
    Last edited by SPB; 19 Feb 2024 at 04:28.
      My Computer


  4. Posts : 65
    Windows 10
    Thread Starter
       #14

    SPB said:
    No, it will not duplicate the X because the file menu would be be below the address (URL) bar and the Windows buttons (minimize, restore, maximize, X) would be below the address (URL) bar as well.
    Ah. I thought you had simply cropped out the file menu bar (with the Windows buttons) in your screen shot. The layout I'm after preserves it at the top of the window, as shown in the image I posted yesterday.
      My Computer


  5. SPB
    Posts : 78
    Windows 10 Home 22H2 x64
       #15

    I added two screenshots to post #13 while you replied.
    They show the windows buttons when my related changes as per post #11 are not being made.
    If you want to keep the file menu at the top, then my 'sorting order' tweak will not work.
    #toolbar-menubar is the identifier of the file menu ...
      My Computer


  6. Posts : 65
    Windows 10
    Thread Starter
       #16

    SPB said:
    If you want to keep the file menu at the top, then my 'sorting order' tweak will not work.
    #toolbar-menubar is the identifier of the file menu ...
    Thanks. This is the layout I'm after:

    Browsers which allow the address bar to be placed above the tabs-firefox.png
      My Computer


  7. SPB
    Posts : 78
    Windows 10 Home 22H2 x64
       #17

    OK, I see.
    #titlebar is the container or box that contains both the file menu and the tab-bar (or tab-container).
    And unfortunately
    Code:
    /*  (3) file menu and tabs  */
    #titlebar {order: 3 !important;}
    puts them both in the 3rd sorting order. They are treated as one bloc.
    So the file menu and the tabs need to be taken care of individually ... to get your desired result.
    (1) file menu (without the tabs)
    (2) navigation area, URL bar, search bar ...
    (3) tabs
    ...
    (I may reply later in the evening, if I find a fix)
      My Computer


  8. Posts : 65
    Windows 10
    Thread Starter
       #18

    SPB said:
    (I may reply later in the evening, if I find a fix)
    I'd certainly appreciate that; thanks for looking into it.
      My Computer


  9. SPB
    Posts : 78
    Windows 10 Home 22H2 x64
       #19

    The identifier of the tab bar is #TabsToolbar, but it won't 'cooperate' with my simple sorting code.

    Just try the following code.
    It is made by aris-t2, I think @Ghot probably uses this as his browser looks similar to what you would like to have.
    Today is a public holiday in the USA, let's see what @Ghot advises.
    Code:
    /* Firefox userChrome.css tweaks ********************************************************/
    /* Github: https://github.com/aris-t2/customcssforfx ************************************/
    /****************************************************************************************/
    
    
    :root {
      --tabs_toolbar_color_tabs_not_on_top: linear-gradient(#f9f9fa,#f9f9fa);
      --tab-min-height_tnot: 32px;
      --tab_below_navigation_toolbar_bottom_padding: calc( var(--tab-min-height_tnot) + 5px );
    }
    
    #TabsToolbar {
      position: absolute;
      display: block;
      bottom: 0;
      width: 100vw;
      background-clip: padding-box;
      color: var(--toolbar-color);
      z-index: 2;
    }
    
    /* overrides other settings too */
    #main-window:not(:-moz-lwtheme) #navigator-toolbox #TabsToolbar:not(:-moz-lwtheme){
      appearance: none;
      background-image: var(--tabs_toolbar_color_tabs_not_on_top) !important;
    }
    
    #main-window:not([tabsintitlebar]) #TabsToolbar:not(:-moz-lwtheme){
      appearance: none !important;
    }
    
    #tabbrowser-tabs {
      width: 100%;
    }
    
    #navigator-toolbox {
      position: relative;
      padding-bottom: var(--tab_below_navigation_toolbar_bottom_padding);
    }
    
    #main-window[tabsintitlebar]:not([inDOMFullscreen="true"]) #titlebar,
    #main-window[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen="true"]) #titlebar {
      height: 26px;
    }
    
    /* prevent possible item overlapping with caption buttons */
    #main-window[tabsintitlebar] #toolbar-menubar {
      padding-inline-end: 140px;
    }
    
    /* move caption buttons to windows top right position */
    .titlebar-buttonbox-container {
      position: fixed;
      right: 0;
      visibility: visible;
      display: block;
    }
    
    #TabsToolbar .titlebar-buttonbox-container,
    #TabsToolbar .private-browsing-indicator,
    #TabsToolbar #window-controls,
    #TabsToolbar *[type="caption-buttons"],
    #TabsToolbar *[type="pre-tabs"],
    #TabsToolbar *[type="post-tabs"] {
      display: none;
    }
    
    /* lw themes support */
    #nav-bar {
      box-shadow: unset !important;
    }
    
    /* remove color overlay for lw-themes */
    #main-window[style*='--lwt-header-image'] :is(#nav-bar,#PersonalToolbar,#TabsToolbar):-moz-lwtheme{
      background: unset !important;
    }
    
    /* adjust background color */
    #main-window:not([style*='--lwt-header-image']) #TabsToolbar:-moz-lwtheme {
      appearance: none !important;
      background-image: linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)) !important;
    }
    
    /* Fixes for projects other settings */
    /* remove application/hamburger button in titlebar and tab toolbars start padding */
    #main-window[tabsintitlebar][sizemode="fullscreen"] #navigator-toolbox #PanelUI-button {
      visibility: collapse;
    }
    
    /* override code inside appbutton in titlebar code */
    #main-window[tabsintitlebar] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar,
    #main-window[tabsintitlebar][sizemode="maximized"] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar,
    #main-window[tabsintitlebar][sizemode="fullscreen"] #TabsToolbar,
    #main-window[uidensity=compact][tabsintitlebar] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar,
    #main-window[uidensity=compact][tabsintitlebar][sizemode="maximized"] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar,
    #main-window[tabsintitlebar]:is([sizemode="normal"],[sizemode="maximized"],[sizemode="fullscreen"]) #navigator-toolbox #TabsToolbar {
      padding-inline-start: 0px !important;
      margin-inline-start: 0px !important;
    }
    
    /* remove restored border between navigation toolbar and tabs toolbar */
    #nav-bar:not(:-moz-lwtheme) {
      box-shadow: unset !important;
    }
    
    /* notification position */
    #tab-notification-deck {
      position: absolute;
      display: block;
      bottom: calc( -2 * var(--tab_below_navigation_toolbar_bottom_padding) + 8px );
      width: 100vw;
    }
    /*
    #TabsToolbar #tabbrowser-arrowscrollbox {
      margin-top: 1px !important;
      margin-bottom: -1px !important;
    }
    */
    
    /* Fx 105+ */
    :root:not([privatebrowsingmode=temporary]) :is(toolbarbutton, toolbarpaletteitem) + #tabbrowser-tabs,
    :root[privatebrowsingmode=temporary] :is(toolbarbutton:not(#firefox-view-button), toolbarpaletteitem:not(#wrapper-firefox-view-button)) + #tabbrowser-tabs {
      border-inline-start: 0px solid color-mix(in srgb, currentColor 25%, transparent) !important;
    }
    
    :root:not([privatebrowsingmode=temporary]):not([firefoxviewhidden]) :is(#firefox-view-button, #wrapper-firefox-view-button) + #tabbrowser-tabs:not([overflow="true"]) {
      padding-inline-start: 0 !important;
      margin-inline-start: 0 !important;
    }
    
    /* Fx 106+ */					
    #private-browsing-indicator-with-label {
      display: none !important;
    }
    This is what I get

    Browsers which allow the address bar to be placed above the tabs-aris-t2-tabs.png

    1) file menu #toolbar-menubar
    2) navigation menu #nav-bar
    3) bookmarks #PersonalToolbar (can be toggled on/off with CTRL Shift B)
    4) tabs #TabsToolbar

      My Computer


  10. Posts : 65
    Windows 10
    Thread Starter
       #20

    SPB said:
    Just try the following code.
    Thanks for that. As you might have seen @Ghot did point me to the thread with that code in it.

    Forgive this very basic question but what exactly do I do with it? Should I save your code as a text file then place it in a new folder called userchrome.css? And then put that folder to another new folder called Chrome, which I must add to

    C:\Users\xxxx\AppData\Local\Mozilla\Firefox\Profiles\ ?

    If that's right, should I also add it to

    C:\Users\xxxx\AppData\Roaming\Mozilla\Firefox\Profiles\ ?

    Many thanks.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:48.
Find Us




Windows 10 Forums