Page 1 of 2

Coming soon - Firefox Client Side Decoration

Posted: Sat Nov 25, 2017 3:53 am
by Lucap
http://www.omgubuntu.co.uk/2017/08/fire ... oming-soon

https://www.reddit.com/r/linux/comments ... n_firefox/

Apparently Fedora is already experimenting with it and it should be available to the rest of us by Firefox 59 going by the reddit link.

Though it's somewhat confusing as the pictures shown in the omgubuntu link looks like genuine client side decoration as the tabs go all the way to the top of the screen yet if you look at the Fedora link they still don't and just look like the title bar has been reduced slightly?

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Nov 25, 2017 3:58 am
by JosephM
Yeah, by the screenshot it looks like there is actually very little difference.

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 3:48 am
by Lucap
Lets hope there is something something wrong with Fedora's implementation as it does seem like a pointless exercise for a couple more pixels.

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 4:39 am
by Moem
Who knows, we may even be able to get the tabs back below the address bar, where they belong. :wink:

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 7:06 am
by aes2011
Lucap wrote:Lets hope there is something something wrong with Fedora's implementation as it does seem like a pointless exercise for a couple more pixels.
Seems to work "partially" for users of kwin or xfwm4 :(

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 9:19 am
by Lucap
Moem wrote:Who knows, we may even be able to get the tabs back below the address bar, where they belong. :wink:
I'm slightly concerned you may also move the bottom task bar to the top as well. :P :wink:

aes2011 wrote:Seems to work "partially" for users of kwin or xfwm4 :(
I'm starting to wonder if it will make FF 59 considering they have been at it for ages and it was supposed to have been release ready for FF 57

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 9:24 am
by Pepi
Moem wrote:Who knows, we may even be able to get the tabs back below the address bar, where they belong. :wink:
I think I've read where this can be done by using the 'userChrome.css file in your profile. I added this file to get a little folder color back and it worked

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 9:24 am
by Moem
Lucap wrote:I'm slightly concerned you may also move the bottom task bar to the top as well. :P :wink:
Sorry, what's a bottom task bar? I looked at my bottom in the mirror but it doesn't appear to have a task bar. 8)

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 9:31 am
by aes2011
Moem wrote:Who knows, we may even be able to get the tabs back below the address bar, where they belong. :wink:
Eminently doable: https://github.com/Aris-t2/CustomCSSforFx/releases/ for that and much, much more!

But a clean version is right here: viewtopic.php?f=47&t=257605

Back to CSD. In the current Firefox 59 CSD still has far to go. Several pointless pixels above the tabs and an empty square at the left end of the tab bar. As things stand now, in KDE at least, it's easy to make a window-specific rule to cleanly lose the title bar. Min/max and close are also taken out but there's always the keyboard for that.

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 9:56 am
by Lucap
* Insert twerking gif *
Moem wrote:Sorry, what's a bottom task bar? I looked at my bottom in the mirror but it doesn't appear to have a task bar. 8)
Try twerking the settings. :D

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 11:47 am
by Flemur
I don't get it - is it a big deal to remove the titlebar (I do that with fluxbox) or move a menu bar somewhere else (can probably do that with userChrome.css) ?

If they want users to be able to customize a program's GUI they should emulate foobar - or just copy it because the guy designed and implemented it so well.

Re: Coming soon - Firefox Client Side Decoration

Posted: Sat Dec 02, 2017 7:27 pm
by Lucap
Flemur wrote:I don't get it - is it a big deal to remove the titlebar (I do that with fluxbox) or move a menu bar somewhere else (can probably do that with userChrome.css) ?

If they want users to be able to customize a program's GUI they should emulate foobar - or just copy it because the guy designed and implemented it so well.
https://addons.mozilla.org/en-GB/firefox/addon/htitle/

Apparently you have to be careful with layout.css.devPixelsPerPx with editing userChrome.css and alike otherwise there is scaling problems that the font rendering can look fuzzy in relation to the viewable screen?

Re: Coming soon - Firefox Client Side Decoration

Posted: Sun Dec 03, 2017 6:48 am
by aes2011
In Firefox 59, chrome://browser/skin/browser.css has

Code: Select all


:root {
  /* Note: Setting this to 0 (without px) breaks CSS calculations for OSX. */
  --space-above-tabbar: 0px;
}

:root[extradragspace][tabsintitlebar]:not([inFullscreen]) {
  --space-above-tabbar: 8px;
}

/* Toolbar / content area border */
but adding that code to userChrome.css and reducing the px values does nothing for me even after adding "!important". There's still the ~8px dead space above the tab bar.

Re: Coming soon - Firefox Client Side Decoration

Posted: Mon Dec 04, 2017 1:49 pm
by H.Remedy
aes2011 wrote:As things stand now, in KDE at least, it's easy to make a window-specific rule to cleanly lose the title bar. Min/max and close are also taken out but there's always the keyboard for that.
I've accomplished the same in Xfce by installing a package called devilspie (instructions: https://serge-m.github.io/how-to-hide-f ... nsion.html) and using it to hide the Firefox titlebar.

As you say, removing the titlebar also removes the maximize/minimize/close icons. But you can get those back with the following Firefox extensions:
https://addons.mozilla.org/en-US/firefo ... he-window/
https://addons.mozilla.org/en-US/firefo ... he-window/
https://addons.mozilla.org/en-US/firefo ... he-window/

The end result is quite nice:
Image

Re: Coming soon - Firefox Client Side Decoration

Posted: Mon Dec 04, 2017 10:34 pm
by aes2011
H.Remedy wrote:...
I've accomplished the same in Xfce by installing a package called devilspie (instructions: https://serge-m.github.io/how-to-hide-f ... nsion.html) and using it to hide the Firefox titlebar.

As you say, removing the titlebar also removes the maximize/minimize/close icons. But you can get those back with the following Firefox extensions:
https://addons.mozilla.org/en-US/firefo ... he-window/
https://addons.mozilla.org/en-US/firefo ... he-window/
https://addons.mozilla.org/en-US/firefo ... he-window/

The end result is quite nice:
Image
Thanks for the idea of putting back the icons. And devilspie is great for Xfce users who want to script window management.

Re: Coming soon - Firefox Client Side Decoration

Posted: Tue Dec 05, 2017 4:54 am
by Lucap
I can't remember the exact reason why ( it might have been the developer of Htitle that said it? ) but a few years back i vaguely remember there was a problem with devilspie and the developer vanished and then someone forked it into devilspie2.

I think it was something to do with the way it changed the pixel layout or something so it might be worth looking into if it can be done with devilspie2 until Firefox implements their own changes?

Re: Coming soon - Firefox Client Side Decoration

Posted: Wed Dec 06, 2017 9:11 pm
by H.Remedy
Lucap wrote:I think it was something to do with the way it changed the pixel layout
Thanks for the tip about devilspie2. It turns out the first version was just not being maintained anymore, so someone forked it. The fork is not compatible with the original. However, for my very simple need, the original version is fine.

Here's a link to the newer project for anyone interested: http://www.nongnu.org/devilspie2/. Amusingly enough, there's a big notice at the top asking for a new maintainer. :)

Re: Coming soon - Firefox Client Side Decoration

Posted: Wed Dec 06, 2017 10:19 pm
by aes2011
H.Remedy wrote:
Lucap wrote:I think it was something to do with the way it changed the pixel layout
Thanks for the tip about devilspie2. ...
Here's a link to the newer project for anyone interested: http://www.nongnu.org/devilspie2/. Amusingly enough, there's a big notice at the top asking for a new maintainer. :)
@Lucap, @H.Remedy, thanks for the updates. I wonder if Wayland on the horizon is inducing a sense of "what's the use ..." ?

Re: Coming soon - Firefox Client Side Decoration

Posted: Thu Dec 07, 2017 2:54 am
by InkKnife
I hope this won't mean that Firefox will start ignoring user set window widget placement like Chrome does.

Re: Coming soon - Firefox Client Side Decoration

Posted: Thu Feb 15, 2018 1:53 am
by Lucap
Image

I just tried firefox 60 nightly and it now has the above customise option to hide the title bar and it worked just like the old htitle addon. :)