Panel similar to Opera Reborn's

  • Just in case I'm not the only one who really likes the way Opera's new panel merges with the application icon when it's active, here's some simple css to make Vivaldi's panel do the same thing:

    /* move addressbar to the right */
    .toolbar-addressbar.toolbar {margin-left: 34px;}
    /* create illusion of panel merging into address bar by making panel same color as browser background */
    #switch {background: var(--colorBg);}
    /* move panel buttons down just a tad */
    .bookmarks {margin-top: 1px;}

    But this is only css, so it's not quite as dynamic as Opera's. If you ever disable your panel, your address bar will not compensate. I was unable to figure out how to fix that using just css, but I'm sure it would be possible with some additional javascript.

  • @Tiamarth Nice hack 🙂

  • Yeah, I don't think you can control the margin of the toolbar with the panel state in css, since the hidden panel simply has a width of zero and no special id/class. Nice idea in any case!

  • @QuHno Ah, no, I forgot that was even a feature. I don't use it. Here's some css that takes both the panel toggle and the bookmark bar into account, customize as needed:

    /* move addressbar and bookmarks  to the right */
    .toolbar-addressbar.toolbar,.bookmark-bar {margin-left: 34px;} /* if you use panel toggle, make this 44 */
    /* create illusion of panel merging into address bar by making panel same color as browser background */
    #switch {background: var(--colorBg);}
    /* move panel buttons down just a tad */
    .bookmarks {margin-top: 1px;} /* if you use the bookmarks bar, make this -1 */

    @luetage It does! The panel toggled off on the left is #panels-container.left.switcher, toggled on is #panels-container.left.icons. The problem is that the panel is not a child of the address bar, so I can't dynamically adjust them based on each others' states with just css. But this works for my personal needs because I only rarely disable my panel.

  • Give me this color theme settings 😀

  • @Mioni See "Arc Darker" in the OP of this thread:

  • I had a go at this, because I'm on osx and wanted to keep my legacy panel setup, I took a different approach.


    alt text) {
    	width: 34px;
            background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAIAAAC1JZyVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4Onhtc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HwhBFXamu/TTpVKi5RJJHLyX0Ho+XFZNLIGBqyMgkdZgIzao7FMv7b13NuC4WFQZQsiY6xEQXDqJWKJDGSh4krJqJ5niGJwhgnfytlmOjMT//T0jApyg8BBgAa3WuedPhBDQAAAABJRU5ErkJggg==);

    There is only one Problem, I don't know how to color/get rid of the bottom border in the :before content, because it's just the same border as the rest of the address bar. Anyone got a brilliant idea? 😃

  • @luetage That css doesn't actually appear to do anything for me. But to remove the address bar's bottom border, you could just .toolbar-addressbar.toolbar:after {display: none;} ?

  • This works of course, but i like the border 😕
    I also tried changing its color to the same black, which let's it disappear too in the panel, but it doesn't look right.

    Strange the css doesn't work for you btw, I wonder why.

  • @luetage Ah, I was just now able to get it working by changing to .toolbar-addressbar.toolbar:before.

    Which allowed me to actually see the issue. You can just give the after pseudo element a margin: .toolbar-addressbar.toolbar:after {margin-left: 34px;}

    Though I will say I do currently prefer my method, as the icon provided in your css isn't actually a menu 😉

  • Brilliant, and so simple..... I have much to learn lol

    And yeah, this solution is for osx. On osx there exists no Vivaldi menu, therefore there is also no Vivaldi icon anywhere on the browser. I thought it would be nice to introduce it this way, and just having blank space up there looks kinda silly anyway.

    Btw., is the image in my first post not visible to you? I hid it in a quote to save space.

  • @luetage Oh I see, I didn't realize that was the case for osx. I'm guessing that's because window menus on Mac are in the panel? Ubuntu does something similar with its window menus, I wonder if they considered that for Linux as well, as Ubuntu is what everyone targets when building for Linux.

    I can see the image, yes, it allowed me to see the issue but not to inspect it 😉


Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.