Help with OSX - draw in titlebar

Discuss application theming and theme development.
Post Reply
User avatar
Zigboom
Posts: 475
Joined: April 22nd, 2009, 5:09 am

Help with OSX - draw in titlebar

Post by Zigboom »

Hi Guys,
I received a support request from an OSX user and since I don't have an OSX machine, I could use some help.
The issue is with the titlebar - on Windows my themes draw in it and everything is fine. The user showed a screenshot with the titlebar staying native OSX.
Could anyone please test and let me know what is wrong and how to correct the theme so it will look as close to the Windows version?
All my themes use the same CSS so please try any theme (LavaFox or BlackFox).
It used to be fine until recently (I guess because there were no bug reports), may be an OSX update or FF update that messed things up.
Any help appreciated, thanks in advance.
Last edited by Zigboom on July 1st, 2013, 10:04 am, edited 1 time in total.
-=# LavaFox & Black Fox - Dark & hot themes for Firefox #=-
https://addons.mozilla.org/en-US/firefox/user/4710003/
User avatar
David.Vincent
Posts: 213
Joined: June 17th, 2011, 10:11 pm

Re: Hekp with OSX - draw in titlebar

Post by David.Vincent »

Hello Zigboom,

I don't know if the bug is this one:

Image

You can solve this with the following code :

Code: Select all

#titlebar-buttonbox-container,
#main-window:not([drawintitlebar=true]) > #titlebar {
  display: none;
}

#titlebar {
  height: 22px;
}



Image

I use this code with my theme. I have found it into the default Firefox theme for Mac.
User avatar
David.Vincent
Posts: 213
Joined: June 17th, 2011, 10:11 pm

Re: Hekp with OSX - draw in titlebar

Post by David.Vincent »

This code must be written into browser.css only for Mac.

So you must change your chrome.manifest and add a new folder (os_target/mac):

Code: Select all

skin    browser       LavaFox_V1 jar:chrome/Lfox.jar!/browser/
skin    communicator  LavaFox_V1 jar:chrome/Lfox.jar!/communicator/
skin    global        LavaFox_V1 jar:chrome/Lfox.jar!/global/
skin    mozapps       LavaFox_V1 jar:chrome/Lfox.jar!/mozapps/

skin    os_target       LavaFox_V1 jar:chrome/Lfox.jar!/os_target/common/
skin    os_target       LavaFox_V1 jar:chrome/Lfox.jar!/os_target/linux/ os=Linux
skin    os_target       LavaFox_V1 jar:chrome/Lfox.jar!/os_target/mac/ os=Darwin

skin   app_version     LavaFox_V1 jar:chrome/Lfox.jar!/app_version/3/ appversion<4.0b7
skin   app_version     LavaFox_V1 jar:chrome/Lfox.jar!/app_version/4/ appversion>4.0b6
skin   app_version     LavaFox_V1 jar:chrome/Lfox.jar!/app_version/6/ appversion>=5.0

skin  os_target LavaFox_V1 jar:chrome/Lfox.jar!/os_target/XP/ os=WINNT osversion<6
skin  os_target LavaFox_V1 jar:chrome/Lfox.jar!/os_target/Win7/ os=WINNT osversion>=6
User avatar
Zigboom
Posts: 475
Joined: April 22nd, 2009, 5:09 am

Re: Hekp with OSX - draw in titlebar

Post by Zigboom »

Thanks very much for the code David!
Could you please let me know if it is possible on OSX to get rid of the silver titlebar (the one with the 3 buttons) when the window is maximized and use the theme's buttons instead ?
(so the theme will behave exactly like on the Windows version).

I think my themes used to do it and it stopped at some point - does it make sense?

Anyway, if you're able to see how the theme behave on Windows when the window is maximized - that's exactly what I would like to achieve if it's possible.
-=# LavaFox & Black Fox - Dark & hot themes for Firefox #=-
https://addons.mozilla.org/en-US/firefox/user/4710003/
User avatar
Zigboom
Posts: 475
Joined: April 22nd, 2009, 5:09 am

Re: Help with OSX - draw in titlebar

Post by Zigboom »

Here's how it looks like on my Windows PC:

Regular window:

Image

Maximized window:

Image

Is it possible to have similar behavior on OSX?
-=# LavaFox & Black Fox - Dark & hot themes for Firefox #=-
https://addons.mozilla.org/en-US/firefox/user/4710003/
User avatar
Paenglab
Posts: 206
Joined: December 30th, 2006, 2:20 am
Location: Switzerland

Re: Help with OSX - draw in titlebar

Post by Paenglab »

Draw in titlebar isn't enabled on OS X, so it's not possible now. You could use the unified toolbar but this would look weird because this bar is system grey and you have a dark theme.
Nuvola theme for Firefox and Thunderbird
User avatar
Zigboom
Posts: 475
Joined: April 22nd, 2009, 5:09 am

Re: Help with OSX - draw in titlebar

Post by Zigboom »

Hi Paenglab:)
Good to see you here! Thanks for the info!
So, is there anything I can do to make it look better? (or we'll just have to live with the system-grey toolbar)?
-=# LavaFox & Black Fox - Dark & hot themes for Firefox #=-
https://addons.mozilla.org/en-US/firefox/user/4710003/
User avatar
Paenglab
Posts: 206
Joined: December 30th, 2006, 2:20 am
Location: Switzerland

Re: Help with OSX - draw in titlebar

Post by Paenglab »

You could change your themes to system-grey ;). Your themes are looking since beginning on OS X like this. This is also the case on Linux where also no draw in titlebar is possible. On Linux you can use a dark window theme to look better but on OS X I know of no possibility to change to a dark window titlebar.
Nuvola theme for Firefox and Thunderbird
User avatar
Zigboom
Posts: 475
Joined: April 22nd, 2009, 5:09 am

Re: Help with OSX - draw in titlebar

Post by Zigboom »

I understand now where the confusion came from. The user that reported this bug saw "normal" themes (Personas) that can draw in the titlebar.
Strangely it's possible for them to draw in the titlebar ..
Well - not going to make a pale version of LavaFox anytime soon :-)
I guess Mac users are already used to the fact that nothing can be customized so it won't be very traumatic :p
Thanks again :)
-=# LavaFox & Black Fox - Dark & hot themes for Firefox #=-
https://addons.mozilla.org/en-US/firefox/user/4710003/
User avatar
David.Vincent
Posts: 213
Joined: June 17th, 2011, 10:11 pm

Re: Help with OSX - draw in titlebar

Post by David.Vincent »

Hello Zigboom, I was on holidays...
I don't know if it is possible to skin all Firefox for Mac with a theme.
You are right with Personas : titlebar is skinned on Mac. So there is no reason to not skin the titlebar with our themes.
I will see this later.
User avatar
Zigboom
Posts: 475
Joined: April 22nd, 2009, 5:09 am

Re: Help with OSX - draw in titlebar

Post by Zigboom »

Hi David,
Yes, I think we found an interesting point ..
Thanks for checking it out ..
-=# LavaFox & Black Fox - Dark & hot themes for Firefox #=-
https://addons.mozilla.org/en-US/firefox/user/4710003/
Post Reply